CVE-2022-41716
published medium CVSS 3.1 · 6.3Unsanitized NUL in environment variables on Windows in syscall and os/exec
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Go standard library | — | syscall0 to < 1.18.8 · 1.19.0-0 to < 1.19.3 · Other versions: unaffected · Platforms: windows | Affected | Not stated | Go |
| Go standard library | — | os/exec0 to < 1.18.8 · 1.19.0-0 to < 1.19.3 · Other versions: unaffected · Platforms: windows | Affected | Not stated | Go |
| Amazon Linux | AL2 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-046 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-048 | Fixed | Not stated | Amazon Linux assessment |
| Alpine Linux | edge | go | Fixed | 0 | Package fix record |
| Oracle Linux | 8 | delveaarch64 · go-toolset · ol8addon is enabled | Advisory build | 0:1.8.3-1.0.1.module+el8.7.0+20882+f24d347b | ELSA-2022-24267 |
| SUSE / openSUSE | SLE-15-SP3 | go1.18aarch64 | Advisory build | 1.18.8-150000.1.37.1 | SUSE-SU-2022:4055-1 |
Show 97 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.17 | go | Fixed | 0 | Package fix record |
| Alpine Linux | v3.18 | go | Fixed | 0 | Package fix record |
| Alpine Linux | v3.19 | go | Fixed | 0 | Package fix record |
| Alpine Linux | v3.20 | go | Fixed | 0 | Package fix record |
| Alpine Linux | v3.21 | go | Fixed | 0 | Package fix record |
| Alpine Linux | v3.22 | go | Fixed | 0 | Package fix record |
| Alpine Linux | v3.23 | go | Fixed | 0 | Package fix record |
| Alpine Linux | v3.24 | go | Fixed | 0 | Package fix record |
| Oracle Linux | 8 | delveaarch64 · go-toolset · ol8addon is enabled | Advisory build | 0:1.9.1-1.0.1.module+el8.7.0+20922+47ac84ba | ELSA-2023-18908 |
| Oracle Linux | 8 | delvex86_64 · go-toolset · ol8addon is enabled | Advisory build | 0:1.8.3-1.0.1.module+el8.7.0+20882+f24d347b | ELSA-2022-24267 |
| Oracle Linux | 8 | delvex86_64 · go-toolset · ol8addon is enabled | Advisory build | 0:1.9.1-1.0.1.module+el8.7.0+20922+47ac84ba | ELSA-2023-18908 |
| Oracle Linux | 8 | go-toolsetaarch64 · go-toolset · ol8addon is enabled | Advisory build | 0:1.18.8-1.module+el8.7.0+20882+f24d347b | ELSA-2022-24267 |
| Oracle Linux | 8 | go-toolsetaarch64 · go-toolset · ol8addon is enabled | Advisory build | 0:1.19.4-1.module+el8.7.0+20922+47ac84ba | ELSA-2023-18908 |
| Oracle Linux | 8 | go-toolsetx86_64 · go-toolset · ol8addon is enabled | Advisory build | 0:1.18.8-1.module+el8.7.0+20882+f24d347b | ELSA-2022-24267 |
| Oracle Linux | 8 | go-toolsetx86_64 · go-toolset · ol8addon is enabled | Advisory build | 0:1.19.4-1.module+el8.7.0+20922+47ac84ba | ELSA-2023-18908 |
| Oracle Linux | 8 | golangaarch64 · go-toolset · ol8addon is enabled | Advisory build | 0:1.18.8-1.0.1.module+el8.7.0+20882+f24d347b | ELSA-2022-24267 |
| Oracle Linux | 8 | golangaarch64 · go-toolset · ol8addon is enabled | Advisory build | 0:1.19.4-2.0.1.module+el8.7.0+20922+47ac84ba | ELSA-2023-18908 |
| Oracle Linux | 8 | golangx86_64 · go-toolset · ol8addon is enabled | Advisory build | 0:1.18.8-1.0.1.module+el8.7.0+20882+f24d347b | ELSA-2022-24267 |
| Oracle Linux | 8 | golangx86_64 · go-toolset · ol8addon is enabled | Advisory build | 0:1.19.4-2.0.1.module+el8.7.0+20922+47ac84ba | ELSA-2023-18908 |
| Oracle Linux | 8 | golang-binaarch64 · go-toolset · ol8addon is enabled | Advisory build | 0:1.18.8-1.0.1.module+el8.7.0+20882+f24d347b | ELSA-2022-24267 |
| Oracle Linux | 8 | golang-binaarch64 · go-toolset · ol8addon is enabled | Advisory build | 0:1.19.4-2.0.1.module+el8.7.0+20922+47ac84ba | ELSA-2023-18908 |
| Oracle Linux | 8 | golang-binx86_64 · go-toolset · ol8addon is enabled | Advisory build | 0:1.18.8-1.0.1.module+el8.7.0+20882+f24d347b | ELSA-2022-24267 |
| Oracle Linux | 8 | golang-binx86_64 · go-toolset · ol8addon is enabled | Advisory build | 0:1.19.4-2.0.1.module+el8.7.0+20922+47ac84ba | ELSA-2023-18908 |
| Oracle Linux | 8 | golang-docsaarch64 · go-toolset · ol8addon is enabled | Advisory build | 0:1.18.8-1.0.1.module+el8.7.0+20882+f24d347b | ELSA-2022-24267 |
| Oracle Linux | 8 | golang-docsaarch64 · go-toolset · ol8addon is enabled | Advisory build | 0:1.19.4-2.0.1.module+el8.7.0+20922+47ac84ba | ELSA-2023-18908 |
| Oracle Linux | 8 | golang-docsx86_64 · go-toolset · ol8addon is enabled | Advisory build | 0:1.18.8-1.0.1.module+el8.7.0+20882+f24d347b | ELSA-2022-24267 |
| Oracle Linux | 8 | golang-docsx86_64 · go-toolset · ol8addon is enabled | Advisory build | 0:1.19.4-2.0.1.module+el8.7.0+20922+47ac84ba | ELSA-2023-18908 |
| Oracle Linux | 8 | golang-miscaarch64 · go-toolset · ol8addon is enabled | Advisory build | 0:1.18.8-1.0.1.module+el8.7.0+20882+f24d347b | ELSA-2022-24267 |
| Oracle Linux | 8 | golang-miscaarch64 · go-toolset · ol8addon is enabled | Advisory build | 0:1.19.4-2.0.1.module+el8.7.0+20922+47ac84ba | ELSA-2023-18908 |
| Oracle Linux | 8 | golang-miscx86_64 · go-toolset · ol8addon is enabled | Advisory build | 0:1.18.8-1.0.1.module+el8.7.0+20882+f24d347b | ELSA-2022-24267 |
| Oracle Linux | 8 | golang-miscx86_64 · go-toolset · ol8addon is enabled | Advisory build | 0:1.19.4-2.0.1.module+el8.7.0+20922+47ac84ba | ELSA-2023-18908 |
| Oracle Linux | 8 | golang-racex86_64 · go-toolset · ol8addon is enabled | Advisory build | 0:1.18.8-1.0.1.module+el8.7.0+20882+f24d347b | ELSA-2022-24267 |
| Oracle Linux | 8 | golang-racex86_64 · go-toolset · ol8addon is enabled | Advisory build | 0:1.19.4-2.0.1.module+el8.7.0+20922+47ac84ba | ELSA-2023-18908 |
| Oracle Linux | 8 | golang-srcaarch64 · go-toolset · ol8addon is enabled | Advisory build | 0:1.18.8-1.0.1.module+el8.7.0+20882+f24d347b | ELSA-2022-24267 |
| Oracle Linux | 8 | golang-srcaarch64 · go-toolset · ol8addon is enabled | Advisory build | 0:1.19.4-2.0.1.module+el8.7.0+20922+47ac84ba | ELSA-2023-18908 |
| Oracle Linux | 8 | golang-srcx86_64 · go-toolset · ol8addon is enabled | Advisory build | 0:1.18.8-1.0.1.module+el8.7.0+20882+f24d347b | ELSA-2022-24267 |
| Oracle Linux | 8 | golang-srcx86_64 · go-toolset · ol8addon is enabled | Advisory build | 0:1.19.4-2.0.1.module+el8.7.0+20922+47ac84ba | ELSA-2023-18908 |
| Oracle Linux | 8 | golang-testsaarch64 · go-toolset · ol8addon is enabled | Advisory build | 0:1.18.8-1.0.1.module+el8.7.0+20882+f24d347b | ELSA-2022-24267 |
| Oracle Linux | 8 | golang-testsaarch64 · go-toolset · ol8addon is enabled | Advisory build | 0:1.19.4-2.0.1.module+el8.7.0+20922+47ac84ba | ELSA-2023-18908 |
| Oracle Linux | 8 | golang-testsx86_64 · go-toolset · ol8addon is enabled | Advisory build | 0:1.18.8-1.0.1.module+el8.7.0+20882+f24d347b | ELSA-2022-24267 |
| Oracle Linux | 8 | golang-testsx86_64 · go-toolset · ol8addon is enabled | Advisory build | 0:1.19.4-2.0.1.module+el8.7.0+20922+47ac84ba | ELSA-2023-18908 |
| SUSE / openSUSE | SLE-15-SP3 | go1.18ppc64le | Advisory build | 1.18.8-150000.1.37.1 | SUSE-SU-2022:4055-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.18s390x | Advisory build | 1.18.8-150000.1.37.1 | SUSE-SU-2022:4055-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.18x86_64 | Advisory build | 1.18.8-150000.1.37.1 | SUSE-SU-2022:4055-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.18-docaarch64 | Advisory build | 1.18.8-150000.1.37.1 | SUSE-SU-2022:4055-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.18-docppc64le | Advisory build | 1.18.8-150000.1.37.1 | SUSE-SU-2022:4055-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.18-docs390x | Advisory build | 1.18.8-150000.1.37.1 | SUSE-SU-2022:4055-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.18-docx86_64 | Advisory build | 1.18.8-150000.1.37.1 | SUSE-SU-2022:4055-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.18-opensslaarch64 | Advisory build | 1.18.10.1-150000.1.9.1 | SUSE-SU-2023:2312-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.18-opensslppc64le | Advisory build | 1.18.10.1-150000.1.9.1 | SUSE-SU-2023:2312-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.18-openssls390x | Advisory build | 1.18.10.1-150000.1.9.1 | SUSE-SU-2023:2312-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.18-opensslx86_64 | Advisory build | 1.18.10.1-150000.1.9.1 | SUSE-SU-2023:2312-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.18-openssl-docaarch64 | Advisory build | 1.18.10.1-150000.1.9.1 | SUSE-SU-2023:2312-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.18-openssl-docppc64le | Advisory build | 1.18.10.1-150000.1.9.1 | SUSE-SU-2023:2312-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.18-openssl-docs390x | Advisory build | 1.18.10.1-150000.1.9.1 | SUSE-SU-2023:2312-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.18-openssl-docx86_64 | Advisory build | 1.18.10.1-150000.1.9.1 | SUSE-SU-2023:2312-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.18-openssl-raceaarch64 | Advisory build | 1.18.10.1-150000.1.9.1 | SUSE-SU-2023:2312-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.18-openssl-racex86_64 | Advisory build | 1.18.10.1-150000.1.9.1 | SUSE-SU-2023:2312-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.18-raceaarch64 | Advisory build | 1.18.8-150000.1.37.1 | SUSE-SU-2022:4055-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.18-racex86_64 | Advisory build | 1.18.8-150000.1.37.1 | SUSE-SU-2022:4055-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.19aarch64 | Advisory build | 1.19.3-150000.1.15.1 | SUSE-SU-2022:4054-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.19ppc64le | Advisory build | 1.19.3-150000.1.15.1 | SUSE-SU-2022:4054-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.19s390x | Advisory build | 1.19.3-150000.1.15.1 | SUSE-SU-2022:4054-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.19x86_64 | Advisory build | 1.19.3-150000.1.15.1 | SUSE-SU-2022:4054-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.19-docaarch64 | Advisory build | 1.19.3-150000.1.15.1 | SUSE-SU-2022:4054-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.19-docppc64le | Advisory build | 1.19.3-150000.1.15.1 | SUSE-SU-2022:4054-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.19-docs390x | Advisory build | 1.19.3-150000.1.15.1 | SUSE-SU-2022:4054-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.19-docx86_64 | Advisory build | 1.19.3-150000.1.15.1 | SUSE-SU-2022:4054-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.19-raceaarch64 | Advisory build | 1.19.3-150000.1.15.1 | SUSE-SU-2022:4054-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.19-racex86_64 | Advisory build | 1.19.3-150000.1.15.1 | SUSE-SU-2022:4054-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.18aarch64 | Advisory build | 1.18.8-150000.1.37.1 | SUSE-SU-2022:4055-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.18ppc64le | Advisory build | 1.18.8-150000.1.37.1 | SUSE-SU-2022:4055-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.18s390x | Advisory build | 1.18.8-150000.1.37.1 | SUSE-SU-2022:4055-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.18x86_64 | Advisory build | 1.18.8-150000.1.37.1 | SUSE-SU-2022:4055-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.18-docaarch64 | Advisory build | 1.18.8-150000.1.37.1 | SUSE-SU-2022:4055-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.18-docppc64le | Advisory build | 1.18.8-150000.1.37.1 | SUSE-SU-2022:4055-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.18-docs390x | Advisory build | 1.18.8-150000.1.37.1 | SUSE-SU-2022:4055-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.18-docx86_64 | Advisory build | 1.18.8-150000.1.37.1 | SUSE-SU-2022:4055-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.18-opensslaarch64 | Advisory build | 1.18.10.1-150000.1.9.1 | SUSE-SU-2023:2312-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.18-opensslppc64le | Advisory build | 1.18.10.1-150000.1.9.1 | SUSE-SU-2023:2312-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.18-openssls390x | Advisory build | 1.18.10.1-150000.1.9.1 | SUSE-SU-2023:2312-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.18-opensslx86_64 | Advisory build | 1.18.10.1-150000.1.9.1 | SUSE-SU-2023:2312-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.18-openssl-docaarch64 | Advisory build | 1.18.10.1-150000.1.9.1 | SUSE-SU-2023:2312-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.18-openssl-docppc64le | Advisory build | 1.18.10.1-150000.1.9.1 | SUSE-SU-2023:2312-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.18-openssl-docs390x | Advisory build | 1.18.10.1-150000.1.9.1 | SUSE-SU-2023:2312-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.18-openssl-docx86_64 | Advisory build | 1.18.10.1-150000.1.9.1 | SUSE-SU-2023:2312-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.18-openssl-raceaarch64 | Advisory build | 1.18.10.1-150000.1.9.1 | SUSE-SU-2023:2312-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.18-openssl-racex86_64 | Advisory build | 1.18.10.1-150000.1.9.1 | SUSE-SU-2023:2312-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.18-raceaarch64 | Advisory build | 1.18.8-150000.1.37.1 | SUSE-SU-2022:4055-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.18-racex86_64 | Advisory build | 1.18.8-150000.1.37.1 | SUSE-SU-2022:4055-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.19aarch64 | Advisory build | 1.19.3-150000.1.15.1 | SUSE-SU-2022:4054-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.19ppc64le | Advisory build | 1.19.3-150000.1.15.1 | SUSE-SU-2022:4054-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.19s390x | Advisory build | 1.19.3-150000.1.15.1 | SUSE-SU-2022:4054-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.19x86_64 | Advisory build | 1.19.3-150000.1.15.1 | SUSE-SU-2022:4054-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.19-docaarch64 | Advisory build | 1.19.3-150000.1.15.1 | SUSE-SU-2022:4054-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.19-docppc64le | Advisory build | 1.19.3-150000.1.15.1 | SUSE-SU-2022:4054-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.19-docs390x | Advisory build | 1.19.3-150000.1.15.1 | SUSE-SU-2022:4054-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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".
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.3 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Go standard library | syscall | 0 to < 1.18.8 (affected · semver)1.19.0-0 to < 1.19.3 (affected · semver)Default: unaffected | Go · cna |
| Go standard library | os/exec | 0 to < 1.18.8 (affected · semver)1.19.0-0 to < 1.19.3 (affected · semver)Default: unaffected | Go · cna |
Weaknesses
1- CWE-158 CWE-158: Improper Neutralization of Null Byte or NUL Character
References
5Provider assertions
3Go · cna
Unsanitized NUL in environment variables on Windows in syscall and os/exec
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- ec7bad3205ca22f41c70f69e48c6a70a0cf84ce611555faa3b2e123ce253046a
- Ingested
- 23 Sep 2026, 08:02:45 UTC
- Source record
- Official CVE record