CVE-2022-41722 - CVE House
Back to Database
Status published High CVE-2022-41722

Path traversal on Windows in path/filepath

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

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2022-41722

Credits & Attribution

The following person or organization is credited with identifying this vulnerability, as recorded in the NVD database:

  • RyotaK (https://ryotak.net)

Affected Vendor

Go standard library

View all reports →

Affected Software

path/filepath
Vulnerable Versions:
0, 1.20.0-0

Timeline

Official Publish: February 28th, 2023
Last Modified: March 7th, 2025
Added to House: July 21st, 2026

CVSS Vectors

V3: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Weaknesses (CWE)

No CWE data available

MITRE ATT&CK TTPs

No associated TTPs found for this vulnerability.