CVE-2023-24537

Infinite loop in parsing in go/scanner

State
Published
Severity
7.5 High
Published
Apr 6, 2023
Updated
Feb 13, 2025
Reserved
Jan 25, 2023

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

  • CWE-190 Integer Overflow or Wraparound

Affected Products

ProductVersions
go/scannerGo standard library
  • before 1.19.8Affected
  • 1.20.0-0 to before 1.20.3Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.