CVE-2022-1962: Stack exhaustion due to deeply nested types in go/parser
Vulnerability summary
CVE-2022-1962 is a medium (CVSS 5.5) Uncontrolled Recursion vulnerability in go standard library go/parser. EPSS estimates a 0.92% chance of exploitation in the next 30 days, higher than 60.2% of scored vulnerabilities. 1 public exploit is recorded.
Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 19 · Related 6Timeline
- 09-08-2022PublishedVulnerability first disclosed.
- 06-03-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- NVDNIST5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · AlpineEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.92%
Chance of exploitation in the next 30 days
Percentile
60%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.92% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundExploit Reference (go.dev)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Alpine1 product
- go≥ 1.18.0, < 1.18.4-r0
Debian1 product
- golang-1.19< 1.19~rc2-1
Go1 product
- stdlib≥ 1.18.0-0, < 1.18.4
Go standard library1 product
- go/parser< 1.17.12 | ≥ 1.18.0-0, < 1.18.4
Golang1 product
- go< 1.17.12 | ≥ 1.18.0, < 1.18.4
Opensuse1 product
- velero&distro=openSUSE Tumbleweed< 1.9.2-1.1
Ubuntu1 product
- golang-1.18< 1.18.1-1ubuntu1~18.04.4 | < 1.18.1-1ubuntu1~20.04.2 | < 1.18.1-1ubuntu1.1
7 vendors · 7 products
References
13 links- pkg.go.dev/vuln/GO-2022-0515Vendor Advisory