Stack-based buffer overflow in libtASN1 - CVE-2025-13151

 

Stack-based buffer overflow in libtASN1 - CVE-2025-13151

Published: January 12, 2026


Vulnerability identifier: #VU121181
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2025-13151
CWE-ID: CWE-121
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: GNU
Affected software:
libtASN1

Detailed vulnerability description

The vulnerability allows a remote attacker to perform a denial of service attack.

The vulnerability exists due to a boundary error within the asn1_expend_octet_string() function. A remote attacker can pass specially crafted certificate to the application, trigger a stack-based buffer overflow and perform a denial of service attack..



How to mitigate CVE-2025-13151

Install updates from vendor's website.

Sources