Go Vulnerability Database
GO-2026-5972
Enforce maximum recursion depth in encoding/asn1
Details
Enforce a recursion limit in Unmarshal to prevent stack exhaustion when parsing deeply-nested, recursive structures.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | stdlib | All versions before 1.25.13 (fixed in 1.25.13) From 1.26.0-0 before 1.26.6 (fixed in 1.26.6) From 1.27.0-0 before 1.27.0-rc.3 (fixed in 1.27.0-rc.3) |