# CVE-2022-41716: golang-1.19: Due to unsanitized NUL values, attackers may be able to maliciously set environment variables on Windows

CVE-2022-41716 is fixed in 14 products on 1 platform, first by DEBIAN-CVE-2022-41716, released November 2, 2022. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2022-41716
- Priority: High
- CVSS: 7.5 (high)
- EPSS: 0.0103
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Nov 2, 2022

## Description

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

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | delve ol 8 | 0:1.9.1-1.0.1.module+el8.7.0+20922+47ac84ba | [ELSA-2023-18908](https://patchblox.com/security/data/fix/linux/elsa-2023-18908.md) | Mar 7, 2023 |
| Linux | go-toolset ol 8 | 0:1.19.4-1.module+el8.7.0+20922+47ac84ba | [ELSA-2023-18908](https://patchblox.com/security/data/fix/linux/elsa-2023-18908.md) | Mar 7, 2023 |
| Linux | golang amzn 2023 | 1.19.3-2.amzn2023.0.2 | [ALAS2023-2023-048](https://patchblox.com/security/data/fix/linux/alas2023-2023-048.md) | Feb 17, 2023 |
| Linux | golang ol 8 | 0:1.19.4-2.0.1.module+el8.7.0+20922+47ac84ba | [ELSA-2023-18908](https://patchblox.com/security/data/fix/linux/elsa-2023-18908.md) | Mar 7, 2023 |
| Linux | golang-1.19 Debian 12.15 (bookworm) | 1.19.3-1 | [DEBIAN-CVE-2022-41716](https://patchblox.com/security/data/fix/linux/debian-cve-2022-41716.md) | Nov 2, 2022 |
| Linux | golang-bin amzn 2023 | 1.19.3-2.amzn2023.0.2 | [ALAS2023-2023-048](https://patchblox.com/security/data/fix/linux/alas2023-2023-048.md) | Feb 17, 2023 |
| Linux | golang-bin ol 8 | 0:1.19.4-2.0.1.module+el8.7.0+20922+47ac84ba | [ELSA-2023-18908](https://patchblox.com/security/data/fix/linux/elsa-2023-18908.md) | Mar 7, 2023 |
| Linux | golang-docs amzn 2023 | 1.19.3-2.amzn2023.0.2 | [ALAS2023-2023-048](https://patchblox.com/security/data/fix/linux/alas2023-2023-048.md) | Feb 17, 2023 |
| Linux | golang-docs ol 8 | 0:1.19.4-2.0.1.module+el8.7.0+20922+47ac84ba | [ELSA-2023-18908](https://patchblox.com/security/data/fix/linux/elsa-2023-18908.md) | Mar 7, 2023 |
| Linux | golang-misc amzn 2023 | 1.19.3-2.amzn2023.0.2 | [ALAS2023-2023-048](https://patchblox.com/security/data/fix/linux/alas2023-2023-048.md) | Feb 17, 2023 |
| Linux | golang-misc ol 8 | 0:1.19.4-2.0.1.module+el8.7.0+20922+47ac84ba | [ELSA-2023-18908](https://patchblox.com/security/data/fix/linux/elsa-2023-18908.md) | Mar 7, 2023 |
| Linux | golang-race amzn 2023 | 1.19.3-2.amzn2023.0.2 | [ALAS2023-2023-048](https://patchblox.com/security/data/fix/linux/alas2023-2023-048.md) | Feb 17, 2023 |
| Linux | golang-race ol 8 | 0:1.19.4-2.0.1.module+el8.7.0+20922+47ac84ba | [ELSA-2023-18908](https://patchblox.com/security/data/fix/linux/elsa-2023-18908.md) | Mar 7, 2023 |
| Linux | golang-shared amzn 2023 | 1.19.3-2.amzn2023.0.2 | [ALAS2023-2023-048](https://patchblox.com/security/data/fix/linux/alas2023-2023-048.md) | Feb 17, 2023 |
| Linux | golang-src amzn 2023 | 1.19.3-2.amzn2023.0.2 | [ALAS2023-2023-048](https://patchblox.com/security/data/fix/linux/alas2023-2023-048.md) | Feb 17, 2023 |
| Linux | golang-src ol 8 | 0:1.19.4-2.0.1.module+el8.7.0+20922+47ac84ba | [ELSA-2023-18908](https://patchblox.com/security/data/fix/linux/elsa-2023-18908.md) | Mar 7, 2023 |
| Linux | golang-tests amzn 2023 | 1.19.3-2.amzn2023.0.2 | [ALAS2023-2023-048](https://patchblox.com/security/data/fix/linux/alas2023-2023-048.md) | Feb 17, 2023 |
| Linux | golang-tests ol 8 | 0:1.19.4-2.0.1.module+el8.7.0+20922+47ac84ba | [ELSA-2023-18908](https://patchblox.com/security/data/fix/linux/elsa-2023-18908.md) | Mar 7, 2023 |
| Linux | golist amzn 2023 | 0.10.1-11.amzn2023.0.3 | [ALAS2023-2023-046](https://patchblox.com/security/data/fix/linux/alas2023-2023-046.md) | Feb 17, 2023 |
| Linux | golist-debuginfo amzn 2023 | 0.10.1-11.amzn2023.0.3 | [ALAS2023-2023-046](https://patchblox.com/security/data/fix/linux/alas2023-2023-046.md) | Feb 17, 2023 |
| Linux | golist-debugsource amzn 2023 | 0.10.1-11.amzn2023.0.3 | [ALAS2023-2023-046](https://patchblox.com/security/data/fix/linux/alas2023-2023-046.md) | Feb 17, 2023 |

---

Data as of 2026-11-08T06:59:42Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
