4.3Medium

CVE-2024-34155Stack exhaustion in all Parse functions in go/parser

Go standard library go/parser Published: (2 years ago)

Description

Calling any of the Parse functions on Go source code which contains deeply nested literals can cause a panic due to stack exhaustion.

Weakness (CWE): CWE-674

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
Go standard library go/parser < 1.22.7, 1.23.0-0 – < 1.23.1

References and patches