CVE-2022-1962

published 9 Aug 2022 · updated 16 Nov 2026

Stack exhaustion due to deeply nested types in go/parser

5.5MediumCVSS 5.5EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 1.17.12 and 1.18.4.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Go standard library<1.17.12, >=1.18.0-0 <1.18.41.17.12, 1.18.4

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-1962 severity on Zeptric[![CVE-2022-1962](https://zeptric.io/badge/cve/CVE-2022-1962.svg)](https://zeptric.io/cve/CVE-2022-1962)