{"id":"GO-2023-1702","summary":"Infinite loop in parsing in go/scanner","details":"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.","aliases":["BIT-golang-2023-24537","CVE-2023-24537"],"modified":"2026-02-04T03:43:08.732164Z","published":"2023-04-05T21:05:07Z","related":["CGA-4p6j-82v6-hj8v"],"database_specific":{"url":"https://pkg.go.dev/vuln/GO-2023-1702","review_status":"REVIEWED"},"references":[{"type":"REPORT","url":"https://go.dev/issue/59180"},{"type":"FIX","url":"https://go.dev/cl/482078"},{"type":"WEB","url":"https://groups.google.com/g/golang-announce/c/Xdv6JL9ENs8"}],"affected":[{"package":{"name":"stdlib","ecosystem":"Go","purl":"pkg:golang/stdlib"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.19.8"},{"introduced":"1.20.0-0"},{"fixed":"1.20.3"}]}],"ecosystem_specific":{"imports":[{"symbols":["Scanner.Scan","Scanner.updateLineInfo"],"path":"go/scanner"}]},"database_specific":{"source":"https://vuln.go.dev/ID/GO-2023-1702.json"}}],"schema_version":"1.7.3","credits":[{"name":"Philippe Antoine (Catena cyber)"}]}