CVE-2025-13151 CVE-2025-13151

High 7.5 Published Updated

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:10All versions4.20.0-5.el10_2
libtasn1-devel AlmaLinux:10All versions4.20.0-5.el10_2
libtasn1-tools AlmaLinux:10All versions4.20.0-5.el10_2
libtasn1 AlmaLinux:8All versions4.13-6.el8_10
libtasn1-devel AlmaLinux:8All versions4.13-6.el8_10
libtasn1-tools AlmaLinux:8All versions4.13-6.el8_10
libtasn1 AlmaLinux:9All versions4.16.0-10.el9_8
libtasn1-devel AlmaLinux:9All versions4.16.0-10.el9_8
libtasn1-tools AlmaLinux:9All versions4.16.0-10.el9_8
libtasn1 Red Hat:enterprise_linux:10.2All versions0:4.20.0-5.el10_2
libtasn1-debuginfo Red Hat:enterprise_linux:10.2All versions0:4.20.0-5.el10_2
libtasn1-debugsource Red Hat:enterprise_linux:10.2All versions0:4.20.0-5.el10_2
libtasn1-devel Red Hat:enterprise_linux:10.2All versions0:4.20.0-5.el10_2
libtasn1-tools Red Hat:enterprise_linux:10.2All versions0:4.20.0-5.el10_2
libtasn1-tools-debuginfo Red Hat:enterprise_linux:10.2All versions0:4.20.0-5.el10_2
libtasn1-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:4.13-6.el8_10
libtasn1-debugsource Red Hat:enterprise_linux:8::appstreamAll versions0:4.13-6.el8_10
libtasn1-devel Red Hat:enterprise_linux:8::appstreamAll versions0:4.13-6.el8_10
libtasn1-tools Red Hat:enterprise_linux:8::appstreamAll versions0:4.13-6.el8_10
libtasn1-tools-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:4.13-6.el8_10
libtasn1 Red Hat:enterprise_linux:8::baseosAll versions0:4.13-6.el8_10
libtasn1-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:4.13-6.el8_10
libtasn1-debugsource Red Hat:enterprise_linux:8::baseosAll versions0:4.13-6.el8_10
libtasn1-tools-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:4.13-6.el8_10
libtasn1-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:4.16.0-10.el9_8
libtasn1-debugsource Red Hat:enterprise_linux:9::appstreamAll versions0:4.16.0-10.el9_8
libtasn1-devel Red Hat:enterprise_linux:9::appstreamAll versions0:4.16.0-10.el9_8
libtasn1-tools Red Hat:enterprise_linux:9::appstreamAll versions0:4.16.0-10.el9_8
libtasn1-tools-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:4.16.0-10.el9_8
libtasn1 Red Hat:enterprise_linux:9::baseosAll versions0:4.16.0-10.el9_8
libtasn1-debuginfo Red Hat:enterprise_linux:9::baseosAll versions0:4.16.0-10.el9_8
libtasn1-debugsource Red Hat:enterprise_linux:9::baseosAll versions0:4.16.0-10.el9_8
libtasn1-tools-debuginfo Red Hat:enterprise_linux:9::baseosAll versions0:4.16.0-10.el9_8
libtasn1 Red Hat:hummingbird:1All versions0:4.21.0-1.1.hum1
libtasn1-devel Red Hat:hummingbird:1All versions0:4.21.0-1.1.hum1
libtasn1-tools Red Hat:hummingbird:1All versions0:4.21.0-1.1.hum1
libtasn1 Rocky Linux:10All versions0:4.20.0-5.el10_2
libtasn1 Rocky Linux:8All versions0:4.13-6.el8_10
libtasn1 Rocky Linux:9All versions0:4.16.0-10.el9_8
libtasn1 SUSE:Linux Enterprise Micro 5.2All versions4.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.

Sources

Also known as ALPINE-CVE-2025-13151, ALSA-2026:28235, ALSA-2026:28253, ALSA-2026:36728, AZL-73664, AZL-74006 and 36 more.

Is CVE-2025-13151 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free