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".
Published · last modified .
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.
EPSS exploit prediction
EPSS: 0.008 (56.1th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 56th percentile — 56.1% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.008 · newest: 0.008 · change: +0.000
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
- go.dev/issue/56284 (Patch, Issue Tracking, Vendor Advisory)
- go.dev/cl/446916 (Patch, Vendor Advisory)
- groups.google.com/g/golang-announce/c/mbHY1UY3BaM/m/hSpmRzk-AgAJ (Patch, Release Notes, Vendor Advisory)
- pkg.go.dev/vuln/GO-2022-1095 (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.