7.5High

CVE-2023-24537Infinite loop in parsing in go/scanner

Go standard library go/scanner Published: (3 years ago)

Description

Calling any of the Parse functions on Go source code which contains //line directives with very large line numbers can cause an infinite loop due to integer overflow.

Weakness (CWE): CWE-835CWE-190

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/scanner < 1.19.8, 1.20.0-0 – < 1.20.3

References and patches