Advisory

GO-2023-1702

Also known as: BIT-golang-2023-24537, CVE-2023-24537

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.

Severity

Not rated by the source.

Dates

Published
2023-04-05 21:05 UTC
Modified
2026-02-04 03:43 UTC

Affected packages and fixes

stdlib

Go · All systems

Affected

  • introduced 0, fixed 1.19.8, introduced 1.20.0-0, fixed 1.20.3 (semver)

Fixed versions

1.19.8, 1.20.3

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences