patchminder
No public exploit found CVE-2022-41722

Path traversalin Go standard library path/filepath.

Published 28 Feb 2023 · Updated 7 Mar 2025 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

No public exploit found; not on exploited lists.

Severity
Not scored
No source has scored it yet
Attack likelihood
Moderate
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 1.7% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed in 1.19.6, 1.20.1
In plain words

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

What to do now
  • 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.

Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
path/filepath
before 1.19.6
1.19.6
CVE record
path/filepath
1.20.0-0 to before 1.20.1
1.20.1
CVE record
stdlib (Go)
before 1.19.6
1.19.6
GitHub advisory
stdlib (Go)
1.20.0-0 to before 1.20.1
1.20.1
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 28 Sep 2022
    CVE ID reserved by Go.
  2. 28 Feb 2023
    Published in the CVE List.
  3. 7 Mar 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: No public exploit found. CISA assessment (SSVC): exploitation none.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
None known

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.

Related

Other path/filepath vulnerabilities

Same weakness: Path traversal

All CWE-22 vulnerabilities

References
Cite this page

Patchminder. CVE-2022-41722: Path traversal in Go standard library path/filepath. https://patchminder.com/cve/cve-2022-41722/ (accessed 5 December 2026).