Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2025-13151

Stack-based buffer overflow in libtasn1 version: v4.20.0. The function fails to validate the size of input data resulting in a buffer overflow in asn1_expend_octet_string.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-13151
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 18:26 UTC · Revision 1

Source evidence

CVE-2025-13151

core-osv · Original source

Published 7 Jan 2026, 21:14 UTC

Stack-based buffer overflow in libtasn1 version: v4.20.0. The function fails to validate the size of input data resulting in a buffer overflow in asn1_expend_octet_string.

osv:CVE-2025-13151
Complete source record
{
  "id": "4f585fe4ac682cdd5b6dd748ec4abc57ad640ea7051acff6ac4636ed6935ba9e",
  "url": "https://osv.dev/vulnerability/CVE-2025-13151",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2025-13151",
    "summary": "Stack-based buffer overflow in libtasn1 version: v4.20.0. The function fails to validate the size of input data resulting in a buffer overflow in asn1_expend_octet_string.",
    "evidence": "osv:CVE-2025-13151",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-13151",
      "aliases": [
        "CVE-2025-13151"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://gitlab.com/gnutls/libtasn1",
              "type": "GIT",
              "events": [
                {
                  "introduced": "6b45b25e94ea538192cc0f97e9ad57171d1c6374"
                },
                {
                  "last_affected": "6b45b25e94ea538192cc0f97e9ad57171d1c6374"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "4.20.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "cpe": "cpe:2.3:a:gnu:libtasn1:4.20.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.20.0"
                      },
                      {
                        "last_affected": "4.20.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "4.20.0",
            "v4.20.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-13151.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:38.180199503Z",
      "provider": "osv",
      "references": [
        "https://www.kb.cert.org/vuls/id/271649",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/13xxx/CVE-2025-13151.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-13151",
        "https://gitlab.com/gnutls/libtasn1/-/merge_requests/121",
        "https://gitlab.com/gnutls/libtasn1"
      ],
      "provider_metadata": {
        "cna_assigner": "certcc",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/13xxx/CVE-2025-13151.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-13151",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 505652,
  "published_at": "2026-01-07T21:14:05.223+00:00"
}