GO-2023-1702

Infinite loop in parsing in go/scanner

At a glance

Published
Updated
CVE
CVE-2023-24537
Aliases
BIT-golang-2023-24537

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.

Affected packages

PackageVersions
Go · stdlibintroduced 0, fixed 1.19.8, introduced 1.20.0-0, fixed 1.20.3

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — Go Vulnerability Database