CVEfocus › CVE database › CVE-2022-41716

CVE-2022-41716Unsanitized NUL in environment variables on Windows in syscall and os/exec

CVSS 6.3 MediumEPSS 0.9% (higher than 60% of CVEs)Published 2022-11-02Updated 2024-10-30Assigner: Go

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

What to do

Fixed builds are available from Debian, Go: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
20Fix pending
3Under investigation

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04golang-1.13Fix pendingUBUNTU-CVE-2022-41716
Ubuntu 22.04golang-1.17Under investigationUBUNTU-CVE-2022-41716
Ubuntu 22.04golang-1.18Under investigationUBUNTU-CVE-2022-41716
Ubuntu 22.04golang-1.20Under investigationUBUNTU-CVE-2022-41716
Ubuntu 20.04golang-1.13Fix pendingUBUNTU-CVE-2022-41716
Ubuntu 20.04golang-1.14Fix pendingUBUNTU-CVE-2022-41716
Ubuntu 20.04golang-1.16Fix pendingUBUNTU-CVE-2022-41716
Ubuntu 20.04golang-1.18Fix pendingUBUNTU-CVE-2022-41716
Ubuntu 20.04golang-1.20Fix pendingUBUNTU-CVE-2022-41716
Ubuntu 18.04golang-1.10Fix pendingUBUNTU-CVE-2022-41716
Ubuntu 18.04golang-1.13Fix pendingUBUNTU-CVE-2022-41716
Ubuntu 18.04golang-1.16Fix pendingUBUNTU-CVE-2022-41716
Ubuntu 18.04golang-1.18Fix pendingUBUNTU-CVE-2022-41716
Ubuntu 18.04golang-1.8Fix pendingUBUNTU-CVE-2022-41716
Ubuntu 18.04golang-1.9Fix pendingUBUNTU-CVE-2022-41716
Ubuntu 16.04golangFix pending
Ubuntu 16.04golang-1.10Fix pendingUBUNTU-CVE-2022-41716
Ubuntu 16.04golang-1.13Fix pendingUBUNTU-CVE-2022-41716
Ubuntu 16.04golang-1.18Fix pendingUBUNTU-CVE-2022-41716
Ubuntu 16.04golang-1.6Fix pendingUBUNTU-CVE-2022-41716
Ubuntu 14.04golangFix pending
Ubuntu 14.04golang-1.10Fix pendingUBUNTU-CVE-2022-41716
Ubuntu 14.04golang-1.6Fix pending
Debian 12golang-1.19Fixed1.19.3-1DEBIAN-CVE-2022-41716
Go librarystdlibFixed1.19.3GO-2022-1095

What the vendor says

As published in the CVE record by Go, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.