CVE-2022-1962

Stack exhaustion due to deeply nested types in go/parser

State
Published
Severity
5.5 Medium
Published
Aug 9, 2022
Updated
Mar 6, 2026
Reserved
May 31, 2022

Read the record on cve.org

Description

Uncontrolled recursion in the Parse functions in go/parser before Go 1.17.12 and Go 1.18.4 allow an attacker to cause a panic due to stack exhaustion via deeply nested types or declarations.

Scores

CVSSScoreVectorSource
3.15.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
go/parserGo standard library
  • before 1.17.12Affected
  • 1.18.0-0 to before 1.18.4Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.