CVE-2022-41716

HIGHCVSS 7.5/10EPSS 0.78%

Last modified

CVE-2022-41716 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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. EPSS estimates a 0.78% chance of exploitation in the next 30 days.

Description

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".

Metrics

CVSS 3.1
7.5/10

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

EPSS Probability
0.78%

51.2th percentile

Probability of exploitation in the next 30 days. Learn more

Affected Software

VendorProductVersions
GolangGo< 1.18.8
GolangGo>= 1.19.0, < 1.19.3

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2022-41716?
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".
How severe is CVE-2022-41716?
CVE-2022-41716 has a CVSS score of 7.5/10 (HIGH severity). The EPSS model estimates a 0.78% probability of exploitation in the next 30 days.
How do I fix CVE-2022-41716?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2022-41716?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST