What’s Vulnerable › Vulnerabilities
CVE-2023-24537: Infinite loop in parsing in go/scanner
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2023-04-06 · updated 2026-06-17
- Weakness: CWE-190
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 products
- Go: before 1.19.8; from 1.20.0 before 1.20.3 — fixed in 1.19.8, 1.20.3
How to fix
Upgrade to a fixed version: Go 1.19.8, 1.20.3. Check the vendor advisory for mitigations.
References
- https://go.dev/cl/482078
- https://go.dev/issue/59180
- https://groups.google.com/g/golang-announce/c/Xdv6JL9ENs8
- https://pkg.go.dev/vuln/GO-2023-1702
- https://security.gentoo.org/glsa/202311-09
- https://go.dev/cl/482078
- https://go.dev/issue/59180
- https://groups.google.com/g/golang-announce/c/Xdv6JL9ENs8
- https://pkg.go.dev/vuln/GO-2023-1702
- https://security.gentoo.org/glsa/202311-09
- https://security.netapp.com/advisory/ntap-20241129-0004/
Get alerted when CVE-2023-24537 or the next vulnerability affects your stack