golang/encoding/asn1
cpe:2.3:a:golang:go:*:*:*:*:*:*:*
- < go1.24.8
- >= go1.25.0, < go1.25.2
A vulnerability exists in the Go programming language's standard library, specifically in the encoding/asn1 package, prior to version 1.24.8 and in version 1.25.0 prior to 1.25.2. The issue arises when the library parses DER (Distinguished Encoding Rules) payloads. The parsing process allocates memory before fully validating the payloads, allowing an attacker to create a large, empty DER payload that can lead to memory exhaustion. This vulnerability affects functions such as asn1.Unmarshal, x509.ParseCertificateRequest, and ocsp.ParseResponse.
Exploitation of this vulnerability can cause memory exhaustion, leading to increased memory usage and potential application crashes.
Users can upgrade to Go versions 1.25.2 or 1.24.8 to address this vulnerability.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.