CVE-2022-41716Golang Go
High 7.5 No auth needed
Follow: this CVE · Golang · Golang Go We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 0.9% probability of exploitation in 30 days · percentile 60
- Auth required
- No
- Published
- Nov 2, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
What happens
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".
What to do
- Apply the vendor's security update for Go.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | stdlib |
< 1.18.8 |
1.18.8 |
go get stdlib@v1.18.8 |
| Go | stdlib |
≥ 1.19.0-0 < 1.19.3 |
1.19.3 |
go get stdlib@v1.19.3 |
Per OSV / GitHub Advisories (GO-2022-1095). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| golang | go | < 1.18.8 |
| golang | go | ≥ 1.19.0 < 1.19.3 |
Official sources
References
Links published by the sources. Open them with care.
- go.dev Patch Vendor Advisory
- go.dev Issue Tracking Patch Vendor Advisory
- groups.google.com Patch Release Notes Vendor Advisory
- pkg.go.dev Vendor Advisory
- security.netapp.com