CWE
94
Advisory Published
CVE Published
Updated

CVE-2023-39323: Arbitrary code execution during build via line directives in cmd/go

First published: Thu Oct 05 2023(Updated: )

Last updated 14 November 2024

Credit: security@golang.org security@golang.org security@golang.org

Affected SoftwareAffected VersionHow to fix
Golang Go<1.20.9
Golang Go>=1.21.0<1.21.2
Fedoraproject Fedora=37
Fedoraproject Fedora=38
Fedoraproject Fedora=39
debian/golang-1.15<=1.15.15-1~deb11u4
debian/golang-1.19<=1.19.8-2

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the vulnerability ID for this issue?

    The vulnerability ID for this issue is CVE-2023-39323.

  • What is the severity level of CVE-2023-39323?

    CVE-2023-39323 has a severity level of critical.

  • How can line directives be used to bypass restrictions on go:cgo_ directives?

    Line directives ("//line") can be used to bypass the restrictions on "//go:cgo_" directives by allowing blocked linker and compiler flags to be passed during compilation.

  • What software is affected by CVE-2023-39323?

    Golang Go versions up to and including 1.20.9, as well as version 1.21.0 up to but excluding 1.21.2, are affected by CVE-2023-39323.

  • How can I fix CVE-2023-39323?

    To fix CVE-2023-39323, it is recommended to update Golang Go to a version that is not affected by the vulnerability.

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.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203