CVE-2022-41716
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/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Golang | Go | < 1.18.8 |
| Golang | Go | >= 1.19.0, < 1.19.3 |
References
- https://go.dev/cl/446916Patch, Vendor Advisory
- https://go.dev/issue/56284Issue Tracking, Patch, Vendor Advisory
- https://groups.google.com/g/golang-announce/c/mbHY1UY3BaM/m/hSpmRzk-AgAJPatch, Release Notes, Vendor Advisory
- https://pkg.go.dev/vuln/GO-2022-1095Vendor Advisory
- https://go.dev/cl/446916Patch, Vendor Advisory
- https://go.dev/issue/56284Issue Tracking, Patch, Vendor Advisory
- https://groups.google.com/g/golang-announce/c/mbHY1UY3BaM/m/hSpmRzk-AgAJPatch, Release Notes, Vendor Advisory
- https://pkg.go.dev/vuln/GO-2022-1095Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2022-41716?
How severe is CVE-2022-41716?
How do I fix CVE-2022-41716?
Are you affected by CVE-2022-41716?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
