cvedb.io
CVE-2022-41716
HIGH · CVSS 7.5
EPSS exploitation probability: 0%
Published 2022-11-02T16:15:11.150 · Last modified 2026-06-17T05:03:41.997

Summary

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

Affected products

golang — go

Does this affect you?

Add your gear to cvedb and we'll alert you only when golang ships something exploited.

Check my exposure →

References

This product uses data from the NVD API but is not endorsed or certified by the NVD. Informational only; not professional security advice.