Stack-based Buffer Overflow Affecting libtasn1 package, versions [,4.21.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.13% (64th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-LIBTASN1-14912639
  • published11 Jan 2026
  • disclosed7 Jan 2026
  • creditBenny Zelster

Introduced: 7 Jan 2026

CVE-2025-13151  (opens in a new tab)
CWE-121  (opens in a new tab)

How to fix?

Upgrade libtasn1 to version 4.21.0 or higher.

Overview

Affected versions of this package are vulnerable to Stack-based Buffer Overflow via the asn1_expend_octet_string function. An attacker can cause by supplying specially crafted input data that exceeds the expected buffer size.

CVSS Base Scores

version 4.0
version 3.1