CVE-2022-41716

HIGH

Windows - Environment Variable Manipulation

Title source: llm
STIX 2.1

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

References (5)

Core 5
Core References
Patch, Vendor Advisory
https://go.dev/cl/446916
Issue Tracking, Patch, Vendor Advisory
https://go.dev/issue/56284

Scores

CVSS v3 7.5
EPSS 0.0001
EPSS Percentile 2.5%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

Status published
Products (1)
golang/go < 1.18.8
Published Nov 02, 2022
Tracked Since Feb 18, 2026