CVE-2025-13151 CVE-2025-13151
A stack-based buffer overflow in libtasn1 allows attackers to execute arbitrary code or cause denial of service via malformed ASN.1 data.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-13151?
CVE-2025-13151 is a high-severity memory corruption vulnerability in GnuTLS libtasn1, published on 7 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-787
Which versions are affected by CVE-2025-13151?
It affects 1 product.
Linux distribution packages (40)
libtasn1 AlmaLinux:10 | All versions | 4.20.0-5.el10_2 |
libtasn1-devel AlmaLinux:10 | All versions | 4.20.0-5.el10_2 |
libtasn1-tools AlmaLinux:10 | All versions | 4.20.0-5.el10_2 |
libtasn1 AlmaLinux:8 | All versions | 4.13-6.el8_10 |
libtasn1-devel AlmaLinux:8 | All versions | 4.13-6.el8_10 |
libtasn1-tools AlmaLinux:8 | All versions | 4.13-6.el8_10 |
libtasn1 AlmaLinux:9 | All versions | 4.16.0-10.el9_8 |
libtasn1-devel AlmaLinux:9 | All versions | 4.16.0-10.el9_8 |
libtasn1-tools AlmaLinux:9 | All versions | 4.16.0-10.el9_8 |
libtasn1 Red Hat:enterprise_linux:10.2 | All versions | 0:4.20.0-5.el10_2 |
libtasn1-debuginfo Red Hat:enterprise_linux:10.2 | All versions | 0:4.20.0-5.el10_2 |
libtasn1-debugsource Red Hat:enterprise_linux:10.2 | All versions | 0:4.20.0-5.el10_2 |
libtasn1-devel Red Hat:enterprise_linux:10.2 | All versions | 0:4.20.0-5.el10_2 |
libtasn1-tools Red Hat:enterprise_linux:10.2 | All versions | 0:4.20.0-5.el10_2 |
libtasn1-tools-debuginfo Red Hat:enterprise_linux:10.2 | All versions | 0:4.20.0-5.el10_2 |
libtasn1-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 0:4.13-6.el8_10 |
libtasn1-debugsource Red Hat:enterprise_linux:8::appstream | All versions | 0:4.13-6.el8_10 |
libtasn1-devel Red Hat:enterprise_linux:8::appstream | All versions | 0:4.13-6.el8_10 |
libtasn1-tools Red Hat:enterprise_linux:8::appstream | All versions | 0:4.13-6.el8_10 |
libtasn1-tools-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 0:4.13-6.el8_10 |
libtasn1 Red Hat:enterprise_linux:8::baseos | All versions | 0:4.13-6.el8_10 |
libtasn1-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:4.13-6.el8_10 |
libtasn1-debugsource Red Hat:enterprise_linux:8::baseos | All versions | 0:4.13-6.el8_10 |
libtasn1-tools-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:4.13-6.el8_10 |
libtasn1-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:4.16.0-10.el9_8 |
libtasn1-debugsource Red Hat:enterprise_linux:9::appstream | All versions | 0:4.16.0-10.el9_8 |
libtasn1-devel Red Hat:enterprise_linux:9::appstream | All versions | 0:4.16.0-10.el9_8 |
libtasn1-tools Red Hat:enterprise_linux:9::appstream | All versions | 0:4.16.0-10.el9_8 |
libtasn1-tools-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:4.16.0-10.el9_8 |
libtasn1 Red Hat:enterprise_linux:9::baseos | All versions | 0:4.16.0-10.el9_8 |
libtasn1-debuginfo Red Hat:enterprise_linux:9::baseos | All versions | 0:4.16.0-10.el9_8 |
libtasn1-debugsource Red Hat:enterprise_linux:9::baseos | All versions | 0:4.16.0-10.el9_8 |
libtasn1-tools-debuginfo Red Hat:enterprise_linux:9::baseos | All versions | 0:4.16.0-10.el9_8 |
libtasn1 Red Hat:hummingbird:1 | All versions | 0:4.21.0-1.1.hum1 |
libtasn1-devel Red Hat:hummingbird:1 | All versions | 0:4.21.0-1.1.hum1 |
libtasn1-tools Red Hat:hummingbird:1 | All versions | 0:4.21.0-1.1.hum1 |
libtasn1 Rocky Linux:10 | All versions | 0:4.20.0-5.el10_2 |
libtasn1 Rocky Linux:8 | All versions | 0:4.13-6.el8_10 |
libtasn1 Rocky Linux:9 | All versions | 0:4.16.0-10.el9_8 |
libtasn1 SUSE:Linux Enterprise Micro 5.2 | All versions | 4.13-150000.4.14.1 |
Products include Gnu Libtasn1.
How do I fix CVE-2025-13151?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2025-13151 being exploited?
There is no known exploitation of CVE-2025-13151 in the wild and no public exploit code.
Other vulnerabilities in GnuTLS libtasn1
Sources
Also known as ALPINE-CVE-2025-13151, ALSA-2026:28235, ALSA-2026:28253, ALSA-2026:36728, AZL-73664, AZL-74006 and 36 more.