Go Vulnerability Database
GO-2023-1702
Infinite loop in parsing in go/scanner
Details
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
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | stdlib | All versions before 1.19.8 (fixed in 1.19.8) From 1.20.0-0 before 1.20.3 (fixed in 1.20.3) |