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
| Package | Versions |
|---|---|
| Go · stdlib | introduced 0, fixed 1.19.8, introduced 1.20.0-0, fixed 1.20.3 |
References
- https://go.dev/issue/59180 REPORT
- https://go.dev/cl/482078 FIX
- https://groups.google.com/g/golang-announce/c/Xdv6JL9ENs8 WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — Go Vulnerability Database |