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

Published Apr 4, 2023
·
Updated

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 Software

12 affected componentsFixes available
debian/golang-1.15<=1.15.15-1~deb11u4
debian/golang-1.19
1.19.8-2
Golang Go<1.19.8
Golang Go>=1.20.0<1.20.3
redhat/golang<1.20.3
1.20.3
redhat/golang<1.19.8
1.19.8
Microsoft azl3 golang 1.20.7-1<1.20.7-1
1.20.7-1
Microsoft cbl2 golang 1.20.7-1<1.20.7-1
1.20.7-1
Microsoft cbl2 msft-golang 1.20.11-1<1.20.11-1
1.20.11-1
Microsoft cbl2 golang 1.21.6-1<1.21.6-1
1.21.6-1
Microsoft cbl2 golang 1.17.13-2
Microsoft cbl2 golang 1.18.8-7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/golang-1.19 to a version that resolves this vulnerability.

    Fixed in 1.19.8-2
  2. Upgrade

    Upgrade redhat/golang to a version that resolves this vulnerability.

    Fixed in 1.20.3
  3. Upgrade

    Upgrade redhat/golang to a version that resolves this vulnerability.

    Fixed in 1.19.8
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.20.7-1
  5. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.20.11-1
  6. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.21.6-1

Event History

Apr 4, 2023
Data Sourced
via Red Hat·08:26 PM
DescriptionSeverityAffected Software
Apr 6, 2023
CVE Published
via MITRE·03:50 PM
Data Sourced
via MITRE·03:50 PM
DescriptionWeakness
Oct 10, 2024
Data Sourced
via Ubuntu·01:15 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Launchpad·01:16 PM
Description
Sep 4, 2025
Data Sourced
via Microsoft·09:29 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·09:29 AM
Affected Software
Updated
via Microsoft·09:29 AM
DescriptionSeverity

Frequently Asked Questions

1

What is the vulnerability ID?

CVE-2023-24537

2

What is the severity of CVE-2023-24537?

The severity of CVE-2023-24537 is high with a score of 7.5.

3

Which software packages are affected by CVE-2023-24537?

CVE-2023-24537 affects the following software packages: golang (version up to 1.19.8) and golang (version up to 1.20.3).

4

How can I fix CVE-2023-24537?

To fix CVE-2023-24537, update your golang package to version 1.19.8 or version 1.20.3 depending on your current version.

5

Are there any references related to CVE-2023-24537?

Yes, you can find more information about CVE-2023-24537 at the following references: [Link 1](https://go.dev/cl/482078), [Link 2](https://go.dev/issue/59180), [Link 3](https://groups.google.com/g/golang-announce/c/Xdv6JL9ENs8).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203