# CVE-2022-41722: Path traversal on Windows in path/filepath

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.68%, higher than 77% of CVEs (2026-12-02)
- Published: 2023-02-16T19:49:19.000Z
- Modified: 2026-09-08T08:47:48.422Z
- Also known as: GO-2023-1568, BIT-GOLANG-2022-41722
- Related: CGA-725c-vc33-7hwf
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: Go

## 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".

(As written by CVE List.)

## Affected

- path/filepath: before 1.19.6; from 1.20.0-0 before 1.20.1
- stdlib (Go): before 1.19.6; from 1.20.0-0 before 1.20.1
- golang go: before 1.19.6; 1.20.0
- golang (Bitnami): before 1.19.6; from 1.20.0 before 1.20.1

## Every score

- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://go.dev/issue/57274> (issue-tracking, report)
- <https://go.dev/cl/468123> (fix, issue-tracking, report)
- <https://groups.google.com/g/golang-announce/c/V0aBFqaFs_E> (advisory, mailing-list, vendor-advisory, web)
- <https://pkg.go.dev/vuln/GO-2023-1568> (advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-41722> (web)

## Sources

- CVE List: [CVE-2022-41722](https://www.cve.org/CVERecord?id=CVE-2022-41722), CVE Terms of Use, modified 2025-03-07
- Go Vulnerability Database: [GO-2023-1568](https://pkg.go.dev/vuln/GO-2023-1568), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2022-41722](https://nvd.nist.gov/vuln/detail/CVE-2022-41722), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GOLANG-2022-41722](https://osv.dev/vulnerability/BIT-GOLANG-2022-41722), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2022-41722 · Whole record: https://cve.day/CVE-2022-41722.json · Rebuilt by cve.day 2026-11-25T22:58:18.763Z
