VDB

CVE-2022-41716

CVE-2022-41716 PUBLISHED CVSS 6.3 MEDIUM

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

Reported by go · Published November 2, 2022

syscall is fixed in 1.19.3 and 1.18.8 (Go Modules)

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

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
syscallGo Modules1.19.3, 1.18.8
os/execGo Modules1.19.3, 1.18.8
stdlibGo Modules1.19.3, 1.18.8
golang-srcAmazon Linux1.19.3-2.amzn2023.0.2
golang-binAmazon Linux1.19.3-2.amzn2023.0.2
golangBitnami1.19.3, 1.18.8
kubeflow-katibWolfi0.19.0-r40, 0.19.0-r31
golistAmazon Linux0.10.1-11.amzn2023.0.3
golang-raceAmazon Linux1.19.3-2.amzn2023.0.2
golang-sharedAmazon Linux1.19.3-2.amzn2023.0.2
golangAmazon Linux1.19.3-2.amzn2023.0.2
golang-miscAmazon Linux1.19.3-2.amzn2023.0.2

5 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
6.3
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

Affected products

VendorProductVersions
Go standard librarysyscall0, 1.19.0-0
Go standard libraryos/exec0, 1.19.0-0
Go standard librarysyscall0, 1.19.0-0
amazon:2023golang-src0
amazon:2023golang-bin0
Go standard libraryos/exec0, 1.19.0-0
alpinego*
wolfikubeflow-katib0, 0
amazon:2023golist0
chainguardgo-1.19*
amazon:2023golang-race0
amazon:2023golang-shared0
amazon:2023golang0
amazon:2023golang-misc0
wolfigo-1.19*
amazon:2023golang-docs0
amazon:2023golang-tests0
chainguardkubeflow-katib0, 0

Timeline

  • Nov 1, 2022 CVE Published
  • Nov 3, 2022 EPSS Score (30 in total, the first dated here)
  • Feb 4, 2026 CVE Updated
  • Mar 21, 2026 Security Advisory (4 in total, the first dated here)
  • Jun 15, 2026 Coalition ESS Score
  • Jul 2, 2026 Distribution Patch

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-41716
vulnetix vdb fixes CVE-2022-41716

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-41716/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›