CVE-2022-1962

MEDIUM5.5EPSS 0.01%

Stack exhaustion due to deeply nested types in go/parser

Published: 7/20/2022Modified: 4/28/2026

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 packages (4)

CVSS scores

SourceVersionSeverityVector
osvCVSS 3.1MEDIUM5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

References (7)