golang-1.19 — security advisory
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".
- Products
- golang-1.19
- Affected versions
- Not specified
- Fixed versions
- 1.19.3-1
- CVEs
- CVE-2022-41716
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 30 Oct 2026, 14:51 UTC · Revision 1
Source evidence
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".
osv:DEBIAN-CVE-2022-41716
golang-1.19
Fixed versions: 1.19.3-1
Complete source record
{
"id": "7e679fe2194f85824acf859faabd1cdb6557078236f720b855d94f89b369901a",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2022-41716",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2022-41716",
"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\".",
"evidence": "osv:DEBIAN-CVE-2022-41716",
"products": [
{
"name": {
"value": "golang-1.19",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.19.3-1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "DEBIAN-CVE-2022-41716",
"aliases": [
"DEBIAN-CVE-2022-41716"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.19.3-1"
}
]
}
],
"package": {
"name": "golang-1.19",
"purl": "pkg:deb/debian/golang-1.19?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-41716.json"
},
"ecosystem_specific": {
"urgency": "unimportant"
}
}
],
"modified": "2026-10-15T08:02:31.927521838Z",
"provider": "osv",
"upstream": [
"CVE-2022-41716"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2022-41716"
]
},
"related_cves": [
{
"value": "CVE-2022-41716",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 323533,
"published_at": "2022-11-02T16:15:11.15+00:00"
}