{"api_version":"1","generated_at":"2026-04-22T23:31:32+00:00","cve":"CVE-2022-41722","urls":{"html":"https://cve.report/CVE-2022-41722","api":"https://cve.report/api/cve/CVE-2022-41722.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-41722","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-41722"},"summary":{"title":"CVE-2022-41722","description":"A path traversal vulnerability exists in filepath.Clean on Windows. On Windows, the filepath.Clean function could transform an invalid path such as \"a/../c:/b\" into the valid path \"c:\\b\". This transformation of a relative (if invalid) path into an absolute path could enable a directory traversal attack. After fix, the filepath.Clean function transforms this path into the relative (but still invalid) path \".\\c:\\b\".","state":"PUBLIC","assigner":"security@golang.org","published_at":"2023-02-28 18:15:00","updated_at":"2023-11-07 03:52:00"},"problem_types":["CWE-22"],"metrics":[],"references":[{"url":"https://go.dev/cl/468123","name":"https://go.dev/cl/468123","refsource":"MISC","tags":[],"title":"","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://pkg.go.dev/vuln/GO-2023-1568","name":"https://pkg.go.dev/vuln/GO-2023-1568","refsource":"MISC","tags":[],"title":"GO-2023-1568 - Go Packages","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://go.dev/issue/57274","name":"https://go.dev/issue/57274","refsource":"MISC","tags":[],"title":"path/filepath: path traversal in filepath.Clean on Windows (CVE-2022-41722) · Issue #57274 · golang/go · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://groups.google.com/g/golang-announce/c/V0aBFqaFs_E","name":"https://groups.google.com/g/golang-announce/c/V0aBFqaFs_E","refsource":"MISC","tags":[],"title":"[security] Go 1.20.1 and Go 1.19.6 are released","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-41722","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-41722","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"41722","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":"41722","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"golang","cpe5":"go","cpe6":"1.20.0","cpe7":"-","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"41722","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-41722","qid":"183983","title":"Debian Security Update for golang-1.19 (CVE-2022-41722)"},{"cve":"CVE-2022-41722","qid":"241623","title":"Red Hat OpenShift Container Platform 4.13 Security Update (RHSA-2023:3366)"},{"cve":"CVE-2022-41722","qid":"354890","title":"Amazon Linux Security Advisory for golang : ALAS2-2023-2015"},{"cve":"CVE-2022-41722","qid":"354901","title":"Amazon Linux Security Advisory for golang : ALAS-2023-1731"},{"cve":"CVE-2022-41722","qid":"355216","title":"Amazon Linux Security Advisory for golang : ALAS2023-2023-175"},{"cve":"CVE-2022-41722","qid":"356304","title":"Amazon Linux Security Advisory for golang : ALASGOLANG1.19-2023-002"},{"cve":"CVE-2022-41722","qid":"378883","title":"Splunk Enterprise August Third Party Package Updates (SVD-2023-0808)"},{"cve":"CVE-2022-41722","qid":"691061","title":"Free Berkeley Software Distribution (FreeBSD) Security Update for go (3d73e384-ad1f-11ed-983c-83fe35862e3a)"},{"cve":"CVE-2022-41722","qid":"753772","title":"SUSE Enterprise Linux Security Update for go1.19 (SUSE-SU-2023:0733-1)"},{"cve":"CVE-2022-41722","qid":"770189","title":"Red Hat OpenShift Container Platform 4.13 Security Update (RHSA-2023:3366)"},{"cve":"CVE-2022-41722","qid":"905636","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for golang (13720)"},{"cve":"CVE-2022-41722","qid":"905641","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for msft-golang (13738)"},{"cve":"CVE-2022-41722","qid":"905642","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for golang (13730)"},{"cve":"CVE-2022-41722","qid":"906771","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for msft-golang (13738-1)"},{"cve":"CVE-2022-41722","qid":"907782","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for golang (13720-1)"},{"cve":"CVE-2022-41722","qid":"907791","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for golang (13730-1)"}]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2022-41722","ASSIGNER":"security@golang.org","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"A path traversal vulnerability exists in filepath.Clean on Windows. On Windows, the filepath.Clean function could transform an invalid path such as \"a/../c:/b\" into the valid path \"c:\\b\". This transformation of a relative (if invalid) path into an absolute path could enable a directory traversal attack. After fix, the filepath.Clean function transforms this path into the relative (but still invalid) path \".\\c:\\b\"."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-22: Improper Limitation of a Pathname to a Restricted\nDirectory (\"Path Traversal\")\n"}]}]},"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.19.6"},{"version_affected":"<","version_name":"1.20.0-0","version_value":"1.20.1"}]}}]}}]}},"references":{"reference_data":[{"url":"https://go.dev/issue/57274","refsource":"MISC","name":"https://go.dev/issue/57274"},{"url":"https://go.dev/cl/468123","refsource":"MISC","name":"https://go.dev/cl/468123"},{"url":"https://groups.google.com/g/golang-announce/c/V0aBFqaFs_E","refsource":"MISC","name":"https://groups.google.com/g/golang-announce/c/V0aBFqaFs_E"},{"url":"https://pkg.go.dev/vuln/GO-2023-1568","refsource":"MISC","name":"https://pkg.go.dev/vuln/GO-2023-1568"}]},"credits":[{"lang":"en","value":"RyotaK (https://ryotak.net)"}]},"nvd":{"publishedDate":"2023-02-28 18:15:00","lastModifiedDate":"2023-11-07 03:52: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.19.6","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:golang:go:1.20.0:-:*:*:*:*:*:*","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":[]}}}