CVE-2022-41716

Unsanitized NUL in environment variables on Windows in syscall and os/exec

Medium · published November 2, 2022

CVSS v3.1
6.3
EPSS
1%
Percentile
57.9
In the wild
Unconfirmed
What it is

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

The record
Technical detail
CVSS v3.1
6.3 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
CVSS v4.0
Not supplied
EPSS
0.00853 · 57.9th percentile
Published
2022-11-02T15:28Z
EPSS history
Timeline
  • 02 NOV 15:28Z
    Unsanitized NUL in environment variables on Windows in syscall and os/exec
    cvelistv5