CVE-2022-41722

Directory traversal via absolute-path normalization

Published Feb 28, 2023 · Updated Mar 7, 2025

Path traversal in Go standard library path/filepath before 1.19.6 and 1.20.0 allows attackers to produce absolute Windows paths via crafted input. filepath.Clean collapses an invalid relative path such as a/../c:/b into the valid absolute path c:\b instead of retaining a relative prefix. Impact requires a consuming program to accept attacker-controlled paths and use the cleaned result for a filesystem operation; the flaw alone does not read or write files.

CVSS severityUnavailable
Unscored
EPSS probability1.68%
Next 30 days · Sep 16, 2026
Known exploitationUnconfirmed
Based on sourced intelligence
Hinoki checkNot available
Coverage for this vulnerability

See if you're affected

Explore vulnerability checks for your environment with Hinoki.

Book a demo

Summary

What happened

Path traversal in Go standard library path/filepath before 1.19.6 and 1.20.0 allows attackers to produce absolute Windows paths via crafted input. filepath.Clean collapses an invalid relative path such as a/../c:/b into the valid absolute path c:\b instead of retaining a relative prefix. Impact requires a consuming program to accept attacker-controlled paths and use the cleaned result for a filesystem operation; the flaw alone does not read or write files.

The record

CVE
CVE-2022-41722
Published
Feb 28, 2023
Updated
Mar 7, 2025
Vendor
Go standard library
Product
path/filepath
Classifications
CWE-22
Attack vector
Unavailable
Privileges
Unavailable

Timeline

How it unfolded

  1. Feb 28, 2023CVE publishedPublication date reported by the CVE source.
  2. Mar 7, 2025Record updatedLatest update available in the CVE record.

Exploitability

Present is not the same as exploitable

Compare your product and version with the public record. A matching version still requires validation against your environment.

Is a vulnerable build present?

Compare these published version ranges with your installed build and any vendor patches.

  1. Affected versionversion=0 <1.19.6
  2. Affected versionversion=1.20.0-0 <1.20.1

What conditions does exploitation require?

Attack vectorUnavailable in this record.
Required privilegesUnavailable in this record.

What is affected?

Go standard library · path/filepathversion=0 <1.19.6; version=1.20.0-0 <1.20.1

Published CVSS scores

No CVSS assessment is available in this record.

CVSS describes severity. EPSS estimates exploitation probability.

Attacks

What attackers are doing with it

Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.

Daily unique IPsNo honeypot observations are available for this CVE in the selected window.

No observations available

Sep 10, 2026Sep 16, 2026
Latest reporting daySep 16, 2026
Latest daily unique IPsUnavailable
Prior 30-day averageUnavailable
SourceShadowserver honeypots (KEV)
VectorUnavailable
PrivilegesUnavailable
Known exploitationUnconfirmed
Public exploitUnconfirmed

Weakness, pattern, technique

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

Public exploit references

No public exploit references are available in this record.

Labels summarize the accepted research assessment. They do not indicate a test against your environment.

Technologies

Your stack

See the directory against your own environment.

Your stack

Check the software in your environment

Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.

Book a demo