Infinite loop Affecting std/go/scanner package, versions <1.19.8>=1.20.0-0 <1.20.3


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.41% (70th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-STDGOSCANNER-14550550
  • published6 Jan 2026
  • disclosed5 Apr 2023
  • creditPhilippe Antoine

Introduced: 5 Apr 2023

CVE-2023-24537  (opens in a new tab)
CWE-835  (opens in a new tab)

How to fix?

Upgrade std/go/scanner to version 1.19.8, 1.20.3 or higher.

Overview

std/go/scanner is a Go standard library package std/go/scanner

Affected versions of this package are vulnerable to Infinite loop.

Go Vulnerability Report:
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.

CVSS Base Scores

version 4.0
version 3.1