You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
encoding/asn1: pre-allocating memory when parsing DER payload can cause memory exhaustion (CVE-2025-58185) #75671
When parsing DER payloads, memories were being allocated prior to fully validating the payloads.
This permits an attacker to craft a big empty DER payload to cause memory exhaustion in functions such as asn1.Unmarshal, x509.ParseCertificateRequest, and ocsp.ParseResponse.
Change https://go.dev/cl/709841 mentions this issue: [release-branch.go1.24] encoding/asn1: prevent memory exhaustion when parsing using internal/saferio
Change https://go.dev/cl/709850 mentions this issue: [release-branch.go1.25] encoding/asn1: prevent memory exhaustion when parsing using internal/saferio
changed the title [-]security: fix CVE-2025-58185[/-][+]encoding/asn1: pre-allocating memory when parsing DER payload can cause memory exhaustion (CVE-2025-58185)[/+]on Oct 7, 2025
Activity
neild commentedon Oct 1, 2025
@gopherbot please open backport issues for this security fix
gopherbot commentedon Oct 1, 2025
Backport issue(s) opened: #75704 (for 1.24), #75705 (for 1.25).
Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://go.dev/wiki/MinorReleases.
gopherbot commentedon Oct 7, 2025
Change https://go.dev/cl/709841 mentions this issue:
[release-branch.go1.24] encoding/asn1: prevent memory exhaustion when parsing using internal/saferiogopherbot commentedon Oct 7, 2025
Change https://go.dev/cl/709856 mentions this issue:
encoding/asn1: prevent memory exhaustion when parsing using internal/saferiogopherbot commentedon Oct 7, 2025
Change https://go.dev/cl/709850 mentions this issue:
[release-branch.go1.25] encoding/asn1: prevent memory exhaustion when parsing using internal/saferio[release-branch.go1.24] encoding/asn1: prevent memory exhaustion when…
[release-branch.go1.25] encoding/asn1: prevent memory exhaustion when…
encoding/asn1: prevent memory exhaustion when parsing using internal/…
[-]security: fix CVE-2025-58185[/-][+]encoding/asn1: pre-allocating memory when parsing DER payload can cause memory exhaustion (CVE-2025-58185)[/+][release-branch.go1.24] encoding/asn1: prevent memory exhaustion when…
[release-branch.go1.24] encoding/asn1: prevent memory exhaustion when…
[release-branch.go1.24] encoding/asn1: prevent memory exhaustion when…
[release-branch.go1.24] encoding/asn1: prevent memory exhaustion when…
[release-branch.go1.25] encoding/asn1: prevent memory exhaustion when…
[release-branch.go1.25] encoding/asn1: prevent memory exhaustion when…