CVE-2023-24537

published 6 Apr 2023 · updated 12 Nov 2026

Infinite loop in parsing in go/scanner

7.5HighCVSS 7.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.19.8 and 1.20.3.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Go standard library<1.19.8, >=1.20.0-0 <1.20.31.19.8, 1.20.3

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

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