CVE-2022-41722

Aliases:GO-2023-1568BIT-golang-2022-41722
Modified
Published: 28 Feb 2023, 17:19
Last modified:07 Mar 2025, 17:58

Vulnerability Summary

Overall Risk (default)
medium
30/100
CVSS Score
7.5 HIGH
v3.1 (nvd)
EPSS Score
0.33% LOW
0% probability +0.16%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected

Timeline

28 Feb 2023, 17:19
Published
Vulnerability first disclosed
07 Mar 2025, 17:58
Last Modified
Vulnerability information updated

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

CVSS Metrics

  • v3.1HIGHScore: 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

EPSS Trends

Current EPSS score: 0.33% Percentile: 56%

Techniques & Countermeasures

  • CWE-22Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

    The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

Affected Systems

  • go standard librarypath/filepath

    < 1.19.6 | ≥ 1.20.0-0, < 1.20.1

  • golanggo

    < 1.19.6 | 1.20.0

  • Gostdlib

    ≥ 1.20.0-0, < 1.20.1

References (4)