7.5
CWE
158
Advisory Published
Updated

CVE-2022-41716: Unsanitized NUL in environment variables on Windows in syscall and os/exec

First published: Wed Nov 02 2022(Updated: )

Due to unsanitized NUL values, attackers may be able to maliciously set environment variables on Windows. In syscall.StartProcess and os/exec.Cmd, invalid environment variable values containing NUL values are not properly checked for. A malicious environment variable value can exploit this behavior to set a value for a different environment variable. For example, the environment variable string "A=B\x00C=D" sets the variables "A=B" and "C=D".

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

Affected SoftwareAffected VersionHow to fix
Golang Go<1.18.8
Golang Go>=1.19.0<1.19.3
Microsoft Windows
IBM Concert Software<=1.0.0 - 1.0.1
All of
Any of
Golang Go<1.18.8
Golang Go>=1.19.0<1.19.3
Microsoft Windows

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.

Parent vulnerabilities

(Appears in the following advisories)

Frequently Asked Questions

  • What is the vulnerability ID for this issue?

    The vulnerability ID is CVE-2022-41716.

  • What is the severity of CVE-2022-41716?

    The severity of CVE-2022-41716 is high with a score of 7.5.

  • How can a remote attacker exploit CVE-2022-41716?

    A remote attacker can exploit CVE-2022-41716 by maliciously setting environment variables on Windows.

  • Which versions of Golang Go are affected by CVE-2022-41716?

    Versions up to 1.18.8 and versions between 1.19.0 and 1.19.3 of Golang Go are affected by CVE-2022-41716.

  • Are there any patches or fixes available for CVE-2022-41716?

    Refer to the references for patches or fixes available for CVE-2022-41716.

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