Live threats

All CVEs / Golang

CVE-2022-41716Golang Go

High 7.5 No auth needed

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".

Original NVD text.

What to do

  1. Apply the vendor's security update for Go.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
golanggo< 1.18.8
golanggo≥ 1.19.0 < 1.19.3

Official sources

References

Links published by the sources. Open them with care.