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
- Golang Go
- Go Standard Library Os/exec — versions 0, 1.19.0-0
- Go Standard Library Syscall — versions 0, 1.19.0-0
- Microsoft Windows
Public proof-of-concept exploits
References
- security@golang.org (Patch, Issue Tracking, Vendor Advisory)
- security@golang.org (Patch, Vendor Advisory)
- security@golang.org (Patch, Release Notes, Vendor Advisory)
- security@golang.org (Vendor Advisory)
- af854a3a-2127-422b-91ae-364da2661108
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.