{"api_version":"1","generated_at":"2026-04-22T23:31:39+00:00","cve":"CVE-2022-41716","urls":{"html":"https://cve.report/CVE-2022-41716","api":"https://cve.report/api/cve/CVE-2022-41716.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-41716","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-41716"},"summary":{"title":"CVE-2022-41716","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\".","state":"PUBLIC","assigner":"security@golang.org","published_at":"2022-11-02 16:15:00","updated_at":"2023-11-07 03:52:00"},"problem_types":["NVD-CWE-Other"],"metrics":[],"references":[{"url":"https://go.dev/cl/446916","name":"https://go.dev/cl/446916","refsource":"MISC","tags":[],"title":"","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://groups.google.com/g/golang-announce/c/mbHY1UY3BaM/m/hSpmRzk-AgAJ","name":"https://groups.google.com/g/golang-announce/c/mbHY1UY3BaM/m/hSpmRzk-AgAJ","refsource":"MISC","tags":[],"title":"[security] Go 1.19.3 and Go 1.18.8 are released","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://go.dev/issue/56284","name":"https://go.dev/issue/56284","refsource":"MISC","tags":[],"title":"syscall, os/exec: unsanitized NUL in environment variables · Issue #56284 · golang/go · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://pkg.go.dev/vuln/GO-2022-1095","name":"https://pkg.go.dev/vuln/GO-2022-1095","refsource":"MISC","tags":[],"title":"GO-2022-1095 - Go Packages","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-41716","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-41716","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"41716","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"golang","cpe5":"go","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"41716","vulnerable":"-1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"microsoft","cpe5":"windows","cpe6":"-","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-41716","qid":"160322","title":"Oracle Enterprise Linux Security Update for ol8addon (ELSA-2022-24267)"},{"cve":"CVE-2022-41716","qid":"160499","title":"Oracle Enterprise Linux Security Update for ol8addon (ELSA-2023-18908)"},{"cve":"CVE-2022-41716","qid":"183909","title":"Debian Security Update for golang-1.19 (CVE-2022-41716)"},{"cve":"CVE-2022-41716","qid":"354133","title":"Amazon Linux Security Advisory for golang : ALAS2-2022-1887"},{"cve":"CVE-2022-41716","qid":"354318","title":"Amazon Linux Security Advisory for golist : ALAS2022-2022-240"},{"cve":"CVE-2022-41716","qid":"354512","title":"Amazon Linux Security Advisory for golang : ALAS2022-2022-239"},{"cve":"CVE-2022-41716","qid":"354547","title":"Amazon Linux Security Advisory for golang : ALAS-2022-239"},{"cve":"CVE-2022-41716","qid":"354562","title":"Amazon Linux Security Advisory for golist : ALAS-2022-240"},{"cve":"CVE-2022-41716","qid":"354647","title":"Amazon Linux Security Advisory for golist : ALAS2-2023-1913"},{"cve":"CVE-2022-41716","qid":"355111","title":"Amazon Linux Security Advisory for golist : ALAS2023-2023-046"},{"cve":"CVE-2022-41716","qid":"355212","title":"Amazon Linux Security Advisory for golang : ALAS2023-2023-048"},{"cve":"CVE-2022-41716","qid":"378599","title":"Splunk Enterprise Third Party Package Updates for June (SVD-2023-0613)"},{"cve":"CVE-2022-41716","qid":"378883","title":"Splunk Enterprise August Third Party Package Updates (SVD-2023-0808)"},{"cve":"CVE-2022-41716","qid":"672476","title":"EulerOS Security Update for golang (EulerOS-SA-2023-1035)"},{"cve":"CVE-2022-41716","qid":"672519","title":"EulerOS Security Update for golang (EulerOS-SA-2023-1010)"},{"cve":"CVE-2022-41716","qid":"672528","title":"EulerOS Security Update for golang (EulerOS-SA-2023-1100)"},{"cve":"CVE-2022-41716","qid":"672533","title":"EulerOS Security Update for golang (EulerOS-SA-2023-1124)"},{"cve":"CVE-2022-41716","qid":"672621","title":"EulerOS Security Update for golang (EulerOS-SA-2023-1385)"},{"cve":"CVE-2022-41716","qid":"672650","title":"EulerOS Security Update for golang (EulerOS-SA-2023-1357)"},{"cve":"CVE-2022-41716","qid":"672761","title":"EulerOS Security Update for golang (EulerOS-SA-2023-1505)"},{"cve":"CVE-2022-41716","qid":"690973","title":"Free Berkeley Software Distribution (FreeBSD) Security Update for go (26b1100a-5a27-11ed-abfe-29ac76ec31b5)"},{"cve":"CVE-2022-41716","qid":"752815","title":"SUSE Enterprise Linux Security Update for go1.18 (SUSE-SU-2022:4055-1)"},{"cve":"CVE-2022-41716","qid":"752914","title":"SUSE Enterprise Linux Security Update for go1.19 (SUSE-SU-2022:4054-1)"},{"cve":"CVE-2022-41716","qid":"754047","title":"SUSE Enterprise Linux Security Update for go1.18-openssl (SUSE-SU-2023:2312-1)"}]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2022-41716","ASSIGNER":"security@golang.org","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"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\"."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-158: Improper Neutralization of Null Byte or NUL Character"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"Go standard library","product":{"product_data":[{"product_name":"syscall","version":{"version_data":[{"version_affected":"<","version_name":"0","version_value":"1.18.8"},{"version_affected":"<","version_name":"1.19.0-0","version_value":"1.19.3"}]}},{"product_name":"os/exec","version":{"version_data":[{"version_affected":"<","version_name":"0","version_value":"1.18.8"},{"version_affected":"<","version_name":"1.19.0-0","version_value":"1.19.3"}]}}]}}]}},"references":{"reference_data":[{"url":"https://go.dev/issue/56284","refsource":"MISC","name":"https://go.dev/issue/56284"},{"url":"https://go.dev/cl/446916","refsource":"MISC","name":"https://go.dev/cl/446916"},{"url":"https://groups.google.com/g/golang-announce/c/mbHY1UY3BaM/m/hSpmRzk-AgAJ","refsource":"MISC","name":"https://groups.google.com/g/golang-announce/c/mbHY1UY3BaM/m/hSpmRzk-AgAJ"},{"url":"https://pkg.go.dev/vuln/GO-2022-1095","refsource":"MISC","name":"https://pkg.go.dev/vuln/GO-2022-1095"}]},"credits":[{"lang":"en","value":"RyotaK (https://twitter.com/ryotkak)"}]},"nvd":{"publishedDate":"2022-11-02 16:15:00","lastModifiedDate":"2023-11-07 03:52:00","problem_types":["NVD-CWE-Other"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"AND","children":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*","versionEndExcluding":"1.18.8","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*","versionStartIncluding":"1.19.0","versionEndExcluding":"1.19.3","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":false,"cpe23Uri":"cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:*","cpe_name":[]}]}],"cpe_match":[]}]}},"legacy_mitre":{"record":null,"notes":[]}}}