CVE-2025-13151

7.5

GnuTLS · libtasn1

A stack-based buffer overflow in libtasn1 version 4.20.0 exists within the asn1_expend_octet_string function, potentially allowing for denial of service.

Executive summary

A stack-based buffer overflow in the libtasn1 library, specifically within the asn1_expend_octet_string function, presents a significant risk of service disruption.

Vulnerability

This is a stack-based buffer overflow (CWE-121) caused by the failure to validate the size of input data in the asn1_expend_octet_string function. The vulnerability is exploitable by an unauthenticated attacker via a network-accessible vector.

Business impact

The CVSS score of 7.5 indicates a high-severity vulnerability primarily impacting system availability. Successful exploitation of this buffer overflow could result in the crashing of applications relying on the libtasn1 library, leading to significant service downtime and operational instability.

Remediation

Immediate Action: Organizations should monitor the GnuTLS upstream repository for the release of a patched version of libtasn1 and apply the update immediately upon availability.

Proactive Monitoring: Security teams should review application logs for abnormal crashes or segmentation faults that may indicate attempts to trigger this buffer overflow.

Compensating Controls: Implementing robust input validation at the application layer or using memory-safe wrappers for ASN.1 parsing can provide temporary protection while waiting for a formal vendor patch.

Exploitation status

Public Exploit Available: No (exploit_available: false)

Analyst recommendation

Given the core nature of the libtasn1 library in cryptographic and network communications, this vulnerability carries substantial risk. Administrators must prioritize tracking the GnuTLS project for the official fix and ensure patching cycles are prepared for rapid deployment once the remediation code is verified and released.

More GnuTLS CVEs

Sources

Originally found and disclosed by This issue was reported Benny Zelster from Microsoft Security Research, per the CVE Program record.