CVE-2023-24537
HIGH7.5EPSS 0.02%Infinite loop in parsing in go/scanner
Published: 4/5/2023Modified: 4/28/2026
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 (4)
- Bitnami/golangfrom 0, < 1.19.8, >= 1.20.0, < 1.20.3
- Debian/golang-1.15from 0
- Debian/golang-1.19from 0, < 1.19.8-2
- Go/stdlibfrom 0, < 1.19.8, >= 1.20.0-0, < 1.20.3
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
References (8)
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2023-24537
- PATCHhttps://go.dev/cl/482078
- REPORThttps://go.dev/issue/59180
- WEBhttps://groups.google.com/g/golang-announce/c/Xdv6JL9ENs8
- WEBhttps://nvd.nist.gov/vuln/detail/CVE-2023-24537
- WEBhttps://pkg.go.dev/vuln/GO-2023-1702
- WEBhttps://security.gentoo.org/glsa/202311-09
- WEBhttps://security.netapp.com/advisory/ntap-20241129-0004/