Vulnerability in Golang Go

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

EPSS: 0.008 (52.1th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.

Affected products

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2022-41716?
CVE-2022-41716 is a high-severity vulnerability in Golang Go, classified under CWE-158: IMPROPER NEUTRALIZATION OF NULL BYTE OR NUL CHARACTER. CVSS score: 7.5/10. Published 2022-11-02.
How severe is CVE-2022-41716?
High severity. CVSS v3 base score is 7.5 out of 10.
Is CVE-2022-41716 known to be exploited?
9 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.