Infinite loop in parsing in go/scanner
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.
02 / AFFECTED SOFTWARE
Affected packages
152 explicit affected versions
03 / CONNECTIONS
Connected vulnerabilities
04 / EVIDENCE
Source records
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.
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.
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.
05 / REFERENCES
Further evidence
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/24xxx/CVE-2023-24537.json
- https://go.dev/cl/482078
- https://go.dev/issue/59180
- https://groups.google.com/g/golang-announce/c/Xdv6JL9ENs8
- https://nvd.nist.gov/vuln/detail/CVE-2023-24537
- https://pkg.go.dev
- https://pkg.go.dev/vuln/GO-2023-1702
- https://security.gentoo.org/glsa/202311-09
- https://security.netapp.com/advisory/ntap-20241129-0004/