Skip to content
CVE PROGRAM SOURCE RECORD5.5 Medium

CVE-2022-1962

Stack exhaustion due to deeply nested types in go/parser

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Go standard library go/parser

Default version status: unaffected

  • 0 to < 1.17.12affected
  • 1.18.0-0 to < 1.18.4affected

References