{"api_version":"1","generated_at":"2026-04-22T23:31:30+00:00","cve":"CVE-2022-30580","urls":{"html":"https://cve.report/CVE-2022-30580","api":"https://cve.report/api/cve/CVE-2022-30580.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-30580","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-30580"},"summary":{"title":"CVE-2022-30580","description":"Code injection in Cmd.Start in os/exec before Go 1.17.11 and Go 1.18.3 allows execution of any binaries in the working directory named either \"..com\" or \"..exe\" by calling Cmd.Run, Cmd.Start, Cmd.Output, or Cmd.CombinedOutput when Cmd.Path is unset.","state":"PUBLIC","assigner":"security@golang.org","published_at":"2022-08-10 20:15:00","updated_at":"2023-11-07 03:47:00"},"problem_types":["CWE-94"],"metrics":[],"references":[{"url":"https://go.googlesource.com/go/+/960ffa98ce73ef2c2060c84c7ac28d37a83f345e","name":"https://go.googlesource.com/go/+/960ffa98ce73ef2c2060c84c7ac28d37a83f345e","refsource":"MISC","tags":[],"title":"960ffa98ce73ef2c2060c84c7ac28d37a83f345e - go - Git at Google","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://go.dev/cl/403759","name":"https://go.dev/cl/403759","refsource":"MISC","tags":[],"title":"","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ","name":"https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ","refsource":"MISC","tags":[],"title":"[security] Go 1.18.3 and Go 1.17.11 are released","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://pkg.go.dev/vuln/GO-2022-0532","name":"https://pkg.go.dev/vuln/GO-2022-0532","refsource":"MISC","tags":[],"title":"GO-2022-0532 - Go Packages","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://go.dev/issue/52574","name":"https://go.dev/issue/52574","refsource":"MISC","tags":[],"title":"os/exec: Cmd.{Run,Start} should fail if Cmd.Path is unset · Issue #52574 · golang/go · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-30580","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-30580","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"30580","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"golang","cpe5":"go","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-30580","qid":"159981","title":"Oracle Enterprise Linux Security Update for go-toolset:ol8addon (ELSA-2022-17956)"},{"cve":"CVE-2022-30580","qid":"159984","title":"Oracle Enterprise Linux Security Update for ol8addon (ELSA-2022-17957)"},{"cve":"CVE-2022-30580","qid":"354890","title":"Amazon Linux Security Advisory for golang : ALAS2-2023-2015"},{"cve":"CVE-2022-30580","qid":"354901","title":"Amazon Linux Security Advisory for golang : ALAS-2023-1731"},{"cve":"CVE-2022-30580","qid":"355216","title":"Amazon Linux Security Advisory for golang : ALAS2023-2023-175"},{"cve":"CVE-2022-30580","qid":"356304","title":"Amazon Linux Security Advisory for golang : ALASGOLANG1.19-2023-002"},{"cve":"CVE-2022-30580","qid":"378599","title":"Splunk Enterprise Third Party Package Updates for June (SVD-2023-0613)"},{"cve":"CVE-2022-30580","qid":"378883","title":"Splunk Enterprise August Third Party Package Updates (SVD-2023-0808)"},{"cve":"CVE-2022-30580","qid":"502459","title":"Alpine Linux Security Update for go"},{"cve":"CVE-2022-30580","qid":"690876","title":"Free Berkeley Software Distribution (FreeBSD) Security Update for go (15888c7e-e659-11ec-b7fe-10c37b4ac2ea)"},{"cve":"CVE-2022-30580","qid":"753266","title":"SUSE Enterprise Linux Security Update for go1.18 (SUSE-SU-2022:2005-1)"},{"cve":"CVE-2022-30580","qid":"753436","title":"SUSE Enterprise Linux Security Update for go1.17 (SUSE-SU-2022:2004-1)"},{"cve":"CVE-2022-30580","qid":"754047","title":"SUSE Enterprise Linux Security Update for go1.18-openssl (SUSE-SU-2023:2312-1)"},{"cve":"CVE-2022-30580","qid":"902714","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for golang (10514)"},{"cve":"CVE-2022-30580","qid":"902729","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for golang (10532)"},{"cve":"CVE-2022-30580","qid":"903954","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for golang (10532-1)"},{"cve":"CVE-2022-30580","qid":"903976","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for golang (10514-1)"},{"cve":"CVE-2022-30580","qid":"907760","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for golang (10514-2)"},{"cve":"CVE-2022-30580","qid":"907809","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for golang (10532-2)"}]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2022-30580","ASSIGNER":"security@golang.org","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"Code injection in Cmd.Start in os/exec before Go 1.17.11 and Go 1.18.3 allows execution of any binaries in the working directory named either \"..com\" or \"..exe\" by calling Cmd.Run, Cmd.Start, Cmd.Output, or Cmd.CombinedOutput when Cmd.Path is unset."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-94: Improper Control of Generation of Code ('Code Injection')"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"Go standard library","product":{"product_data":[{"product_name":"os/exec","version":{"version_data":[{"version_affected":"<","version_name":"0","version_value":"1.17.11"},{"version_affected":"<","version_name":"1.18.0-0","version_value":"1.18.3"}]}}]}}]}},"references":{"reference_data":[{"url":"https://go.dev/cl/403759","refsource":"MISC","name":"https://go.dev/cl/403759"},{"url":"https://go.googlesource.com/go/+/960ffa98ce73ef2c2060c84c7ac28d37a83f345e","refsource":"MISC","name":"https://go.googlesource.com/go/+/960ffa98ce73ef2c2060c84c7ac28d37a83f345e"},{"url":"https://go.dev/issue/52574","refsource":"MISC","name":"https://go.dev/issue/52574"},{"url":"https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ","refsource":"MISC","name":"https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ"},{"url":"https://pkg.go.dev/vuln/GO-2022-0532","refsource":"MISC","name":"https://pkg.go.dev/vuln/GO-2022-0532"}]},"credits":[{"lang":"en","value":"Chris Darroch (chrisd8088@github.com)"},{"lang":"en","value":"brian m. carlson (bk2204@github.com)"},{"lang":"en","value":"Mikhail Shcherbakov (https://twitter.com/yu5k3)"}]},"nvd":{"publishedDate":"2022-08-10 20:15:00","lastModifiedDate":"2023-11-07 03:47:00","problem_types":["CWE-94"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*","versionStartIncluding":"1.18.0","versionEndExcluding":"1.18.3","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*","versionEndExcluding":"1.17.11","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}