---
title: "CVE-2022-41716"
canonical_url: "https://pkgseek.com/security/CVE-2022-41716"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "high"
---

# CVE-2022-41716

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

CVE-2022-41716 is rated HIGH (7.5), with 13 indexed affected package builds across 1 distributions.

- **Severity / Score**: HIGH (7.5)
- **Affected builds**: 13
- **Affected distros**: 1
- **Distros with fixed_in**: None recorded in sample

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Ubuntu | focal | golang-1.13 | 1.13.8-1ubuntu1 | — |
| Ubuntu | focal | golang-1.13-doc | 1.13.8-1ubuntu1 | — |
| Ubuntu | focal | golang-1.13-go | 1.13.8-1ubuntu1 | — |
| Ubuntu | focal | golang-1.13-src | 1.13.8-1ubuntu1 | — |
| Ubuntu | focal | golang-1.14 | 1.14.2-1ubuntu1 | — |
| Ubuntu | focal | golang-1.14-doc | 1.14.2-1ubuntu1 | — |
| Ubuntu | focal | golang-1.14-go | 1.14.2-1ubuntu1 | — |
| Ubuntu | focal | golang-1.14-src | 1.14.2-1ubuntu1 | — |
| Ubuntu | jammy | golang-1.17-doc | 1.17.3-1ubuntu2 | — |
| Ubuntu | jammy | golang-1.18 | 1.18.1-1ubuntu1 | — |
| Ubuntu | jammy | golang-1.18-doc | 1.18.1-1ubuntu1 | — |
| Ubuntu | jammy | golang-1.18-go | 1.18.1-1ubuntu1 | — |
| Ubuntu | jammy | golang-1.18-src | 1.18.1-1ubuntu1 | — |
