CVE-2022-41722

Aliases:GO-2023-1568BIT-golang-2022-41722DEBIAN-CVE-2022-41722CGA-2wm9-5558-j75rCGA-2wvx-vmmv-2p4mCGA-34c3-3crq-7x8hCGA-3rjm-64jh-6pwrCGA-467m-m867-92f3CGA-f493-9gq7-m2rrCGA-g329-f9w8-c49wCGA-jprf-47v3-r7gvCGA-jwqm-4p98-rx3xCGA-jwxw-wx93-mpm2CGA-mcmh-jvmr-8q3wCGA-p2h9-rqr4-6mr9CGA-q88c-rx8w-h7gjCGA-qwrp-pjhh-m669CGA-r959-gxcw-jfv4CGA-v5mw-vjgp-jcv2CGA-wpx5-87cp-qvgmCGA-xv2h-gw57-8jx2CGA-3gv7-gq85-3227CGA-78w5-r5x8-wwg4
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
1.68% LOW
2% probability +1.50%
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: 1.68% Percentile: 76%

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

  • chainguardkatib-earlystopping

    < 0.19.0-r31

  • chainguardkatib-suggestion-goptuna-compat

    all

  • chainguardkatib-suggestion-hyperband

    < 0.19.0-r31

  • chainguardkatib-suggestion-hyperopt

    < 0.19.0-r31 | < 0.19.0-r40

  • chainguardkatib-suggestion-nas-darts

    < 0.19.0-r31

  • chainguardkatib-suggestion-nas-enas

    < 0.19.0-r31

  • chainguardkatib-suggestion-optuna-enas

    < 0.19.0-r31

  • chainguardkatib-suggestion-pbt-enas

    < 0.19.0-r31

  • chainguardkatib-suggestion-skopt-enas

    < 0.19.0-r31

  • chainguardkatib-tfevent-metricscollector

    < 0.19.0-r31

  • wolfikatib-earlystopping

    < 0.19.0-r31

  • wolfikatib-suggestion-goptuna-compat

    all

  • wolfikatib-suggestion-hyperband

    < 0.19.0-r31

  • wolfikatib-suggestion-hyperopt

    < 0.19.0-r31 | < 0.19.0-r40

  • wolfikatib-suggestion-nas-darts

    < 0.19.0-r31

  • wolfikatib-suggestion-nas-enas

    < 0.19.0-r31

  • wolfikatib-suggestion-optuna-enas

    < 0.19.0-r31

  • wolfikatib-suggestion-pbt-enas

    < 0.19.0-r31

  • wolfikatib-suggestion-skopt-enas

    < 0.19.0-r31

  • wolfikatib-tfevent-metricscollector

    < 0.19.0-r31

  • debiangolang-1.15

    all

  • debiangolang-1.19

    < 1.19.6-2

  • 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 (5)