CVE-2025-58185

NameCVE-2025-58185
Descriptionencoding/asn1: pre-allocating memory when parsing DER payload can cause memory exhaustion
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
golang-1.15 (PTS)bullseye1.15.15-1~deb11u4vulnerable
golang-1.19 (PTS)bookworm1.19.8-2vulnerable
golang-1.23 (PTS)sid1.23.10-1vulnerable
golang-1.24 (PTS)trixie1.24.4-1vulnerable
forky1.24.7-1vulnerable
sid1.24.8-1fixed
golang-1.25 (PTS)forky1.25.1-1vulnerable
sid1.25.2-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
golang-1.15source(unstable)(unfixed)
golang-1.19source(unstable)(unfixed)
golang-1.23source(unstable)(unfixed)
golang-1.24source(unstable)1.24.8-1
golang-1.25source(unstable)1.25.2-1

Notes

https://groups.google.com/g/golang-announce/c/4Emdl2iQ_bI/m/qZN5nc-mBgAJ
https://github.com/golang/go/issues/75671
https://github.com/golang/go/commit/e0f655bf3f96410f90756f49532bc6a1851855ca (go1.25.2)
https://github.com/golang/go/commit/5c3d61c886f7ecfce9a6d6d3c97e6d5a8afb17d1 (go1.24.8)

Search for package or bug name: Reporting problems