Path traversalin Go standard library path/filepath.
No public exploit found; not on exploited lists.
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".
- Upgrade path/filepath to 1.19.6, 1.20.1 or later, whichever matches your release line.
- Upgrade stdlib (Go) to 1.19.6, 1.20.1 or later, whichever matches your release line.
Not confirmed by any source yet: severity not scored yet. We show these as not confirmed instead of guessing.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 28 Sep 2022CVE ID reserved by Go.
- 28 Feb 2023Published in the CVE List.
- 7 Mar 2025CVE record last updated.
Attack code anyone can find
Exploit maturity: No public exploit found. CISA assessment (SSVC): exploitation none.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Nothing on this page links to exploit code right now. To report anything else, write to the contact point in the legal notice.
Other path/filepath vulnerabilities
Same weakness: Path traversal
Patchminder. CVE-2022-41722: Path traversal in Go standard library path/filepath. https://patchminder.com/cve/cve-2022-41722/ (accessed 5 December 2026).