CVE-2022-41716

High

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

SeverityHigh
CVSS7.5
Exploit probability—
ProductGo
PublishedNov 2, 2022
First seenNov 2, 2022
Weakness typeCWE-158CWE-158

How to fix

Update
  • golang go1.18.8, 1.19.3 or later
  • stdlib1.18.8, 1.19.3 or later

Affected products

ProductAffected versionsFixed in
golang gov < 1.18.8, 1.19.0 ≤ v < 1.19.31.18.8, 1.19.3
stdlibGov < 1.18.8, 1.19.0-0 ≤ v < 1.19.31.18.8, 1.19.3

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2022-41716 · Go · Dark Radar