{"api_version":"1","generated_at":"2026-04-23T01:33:26+00:00","cve":"CVE-2022-29804","urls":{"html":"https://cve.report/CVE-2022-29804","api":"https://cve.report/api/cve/CVE-2022-29804.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-29804","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-29804"},"summary":{"title":"CVE-2022-29804","description":"Incorrect conversion of certain invalid paths to valid, absolute paths in Clean in path/filepath before Go 1.17.11 and Go 1.18.3 on Windows allows potential directory traversal attack.","state":"PUBLIC","assigner":"security@golang.org","published_at":"2022-08-10 20:15:00","updated_at":"2023-11-07 03:46:00"},"problem_types":["CWE-22"],"metrics":[],"references":[{"url":"https://go.dev/cl/401595","name":"https://go.dev/cl/401595","refsource":"","tags":[],"title":"","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://go.googlesource.com/go/+/9cd1818a7d019c02fa4898b3e45a323e35033290","name":"https://go.googlesource.com/go/+/9cd1818a7d019c02fa4898b3e45a323e35033290","refsource":"","tags":[],"title":"9cd1818a7d019c02fa4898b3e45a323e35033290 - go - Git at Google","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://pkg.go.dev/vuln/GO-2022-0533","name":"https://pkg.go.dev/vuln/GO-2022-0533","refsource":"","tags":[],"title":"GO-2022-0533 - Go Packages","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":"","tags":[],"title":"[security] Go 1.18.3 and Go 1.17.11 are released","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://groups.google.com/g/golang-announce","name":"https://groups.google.com/g/golang-announce","refsource":"MISC","tags":[],"title":"golang-announce - Google Groups","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://go.dev/issue/52476","name":"https://go.dev/issue/52476","refsource":"MISC","tags":[],"title":"path/filepath: Clean(`.\\c:`) returns `c:` on Windows · Issue #52476 · golang/go · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg","name":"https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg","refsource":"CONFIRM","tags":[],"title":"[security] Go 1.18.3 and Go 1.17.11 are released","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-29804","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-29804","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"29804","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":"29804","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-29804","qid":"159981","title":"Oracle Enterprise Linux Security Update for go-toolset:ol8addon (ELSA-2022-17956)"},{"cve":"CVE-2022-29804","qid":"159984","title":"Oracle Enterprise Linux Security Update for ol8addon (ELSA-2022-17957)"},{"cve":"CVE-2022-29804","qid":"378599","title":"Splunk Enterprise Third Party Package Updates for June (SVD-2023-0613)"},{"cve":"CVE-2022-29804","qid":"378883","title":"Splunk Enterprise August Third Party Package Updates (SVD-2023-0808)"},{"cve":"CVE-2022-29804","qid":"502459","title":"Alpine Linux Security Update for go"},{"cve":"CVE-2022-29804","qid":"672294","title":"EulerOS Security Update for golang (EulerOS-SA-2022-2651)"},{"cve":"CVE-2022-29804","qid":"672302","title":"EulerOS Security Update for golang (EulerOS-SA-2022-2683)"},{"cve":"CVE-2022-29804","qid":"672320","title":"EulerOS Security Update for golang (EulerOS-SA-2022-2710)"},{"cve":"CVE-2022-29804","qid":"672362","title":"EulerOS Security Update for golang (EulerOS-SA-2022-2766)"},{"cve":"CVE-2022-29804","qid":"672365","title":"EulerOS Security Update for golang (EulerOS-SA-2022-2731)"},{"cve":"CVE-2022-29804","qid":"690876","title":"Free Berkeley Software Distribution (FreeBSD) Security Update for go (15888c7e-e659-11ec-b7fe-10c37b4ac2ea)"},{"cve":"CVE-2022-29804","qid":"753266","title":"SUSE Enterprise Linux Security Update for go1.18 (SUSE-SU-2022:2005-1)"},{"cve":"CVE-2022-29804","qid":"753436","title":"SUSE Enterprise Linux Security Update for go1.17 (SUSE-SU-2022:2004-1)"},{"cve":"CVE-2022-29804","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-29804","ASSIGNER":"security@golang.org","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"Incorrect conversion of certain invalid paths to valid, absolute paths in Clean in path/filepath before Go 1.17.11 and Go 1.18.3 on Windows allows potential directory traversal attack."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"Go standard library","product":{"product_data":[{"product_name":"path/filepath","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/401595","refsource":"MISC","name":"https://go.dev/cl/401595"},{"url":"https://go.googlesource.com/go/+/9cd1818a7d019c02fa4898b3e45a323e35033290","refsource":"MISC","name":"https://go.googlesource.com/go/+/9cd1818a7d019c02fa4898b3e45a323e35033290"},{"url":"https://go.dev/issue/52476","refsource":"MISC","name":"https://go.dev/issue/52476"},{"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-0533","refsource":"MISC","name":"https://pkg.go.dev/vuln/GO-2022-0533"}]},"credits":[{"lang":"en","value":"Unrud"}]},"nvd":{"publishedDate":"2022-08-10 20:15:00","lastModifiedDate":"2023-11-07 03:46:00","problem_types":["CWE-22"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","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.17.11","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*","versionStartIncluding":"1.18.0","versionEndExcluding":"1.18.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":[]}}}