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.
Metrics
CVSS 3.1 7.5/10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| Go standard library | go/scanner | < 1.19.8; >= 1.20.0-0, < 1.20.3 |
References
- https://go.dev/cl/482078Issue Tracking, Patch
- https://go.dev/issue/59180Issue Tracking, Patch
- https://groups.google.com/g/golang-announce/c/Xdv6JL9ENs8Mailing List, Vendor Advisory
- https://pkg.go.dev/vuln/GO-2023-1702Vendor Advisory
- https://security.gentoo.org/glsa/202311-09
- https://go.dev/cl/482078Issue Tracking, Patch
- https://go.dev/issue/59180Issue Tracking, Patch
- https://groups.google.com/g/golang-announce/c/Xdv6JL9ENs8Mailing List, Vendor Advisory
- https://pkg.go.dev/vuln/GO-2023-1702Vendor Advisory
- https://security.gentoo.org/glsa/202311-09
- https://security.netapp.com/advisory/ntap-20241129-0004/
Timeline
- Published
- Apr 6, 2023
- Last modified
- Jun 17, 2026
- NVD status
- Modified