Vulnerability Details : 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".
Products affected by CVE-2022-41716
- cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
- cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-41716
0.10%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 42 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-41716
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
6.3
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
2.8
|
3.4
|
134c704f-9b21-4f2e-91b3-4a467353bcc0 | 2024-10-30 |
7.5
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
3.9
|
3.6
|
NIST |
References for CVE-2022-41716
-
https://pkg.go.dev/vuln/GO-2022-1095
GO-2022-1095 - Go PackagesVendor Advisory
-
https://groups.google.com/g/golang-announce/c/mbHY1UY3BaM/m/hSpmRzk-AgAJ
[security] Go 1.19.3 and Go 1.18.8 are releasedPatch;Release Notes;Vendor Advisory
-
https://go.dev/cl/446916
syscall, os/exec: reject environment variables containing NULs (I2950e2b0) · Gerrit Code ReviewPatch;Vendor Advisory
-
https://go.dev/issue/56284
syscall, os/exec: unsanitized NUL in environment variables · Issue #56284 · golang/go · GitHubIssue Tracking;Patch;Vendor Advisory
Jump to