CVE-2022-41716 in Golang Go and 1 more product
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 fo...
Affects 2 products from 2 vendors. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, full integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Golang | Go | < 1.18.8 ≥ 1.19.0, < 1.19.3 |
Platforms listed by the source (the vulnerable product runs on these; they are not themselves vulnerable): Microsoft Windows
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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".
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2022-41716 |
|---|---|
| BreachSpider ID | BS-2022-GLOBAL-064804-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| Published | 2022-11-02 |
| Last modified | 2026-06-17 |
| Source | NVD |
Analysis AI-written, not human-reviewed
CVE-2022-41716 involves unsanitized NUL values in environment variables on Windows, allowing attackers to set malicious environment variables through syscall.StartProcess and os/exec.Cmd.
Attackers can exploit this vulnerability by injecting NUL values into environment variables, which can lead to the unintended setting of other environment variables. This can be used to manipulate application behavior or execute arbitrary code.
Questions
What is CVE-2022-41716?
CVE-2022-41716 involves unsanitized NUL values in environment variables on Windows, allowing attackers to set malicious environment variables through syscall.StartProcess and os/exec.Cmd.
What is the CVSS score for CVE-2022-41716?
CVE-2022-41716 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N. EPSS: 0.9%.
Is CVE-2022-41716 actively exploited?
No confirmed active exploitation of CVE-2022-41716 as of 2026-09-25.
How do I remediate CVE-2022-41716?
Priority: MEDIUM. PSIRT: [email protected]
What systems are affected by CVE-2022-41716?
CVE-2022-41716 affects Golang Go.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Golang","product":"Go","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.