What’s Vulnerable › Vulnerabilities

CVE-2023-24537: Infinite loop in parsing in go/scanner

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.

Affected products

How to fix

Upgrade to a fixed version: Go 1.19.8, 1.20.3. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2023-24537 or the next vulnerability affects your stack