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?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2022
- CVE-2022-41710Markdownify version 1.4.1 allows an external attacker to rem…5.5
- CVE-2022-41711Badaso version 2.6.0 allows an unauthenticated remote attack…9.8
- CVE-2022-41712Frappe version 14.10.0 allows an external attacker to remote…6.5
- CVE-2022-41713deep-object-diff version 1.1.0 allows an external attacker t…5.3
- CVE-2022-41714fastest-json-copy version 1.0.1 allows an external attacker …5.3
- CVE-2022-41715Programs which compile regular expressions from untrusted so…7.5
- CVE-2022-41717An attacker can cause excessive memory growth in a Go server…5.3
- CVE-2022-41718Rejected reason: reserved but not needed
- CVE-2022-41719Unmarshal can panic on some inputs, possibly allowing for de…7.5
- CVE-2022-4172An integer overflow and buffer overflow issues were found in…6.5
- CVE-2022-41720On Windows, restricted files can be accessed via os.DirFS an…7.5
- CVE-2022-41721A request smuggling attack is possible when using MaxBytesHa…7.5
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
