Path traversal in Go programming language - CVE-2025-22873

 

Path traversal in Go programming language - CVE-2025-22873

Published: May 26, 2025


Vulnerability identifier: #VU109823
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2025-22873
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Google
Affected software:
Go programming language

Detailed vulnerability description

The vulnerability allows a remote attacker to perform directory traversal attacks.

The vulnerability exists due to input validation error when processing directory traversal sequences in file names. A remote attacker can pass a specially crafted filename to the Root.Open() call, e.g. Root.Open("../") and open the parent directory of the Root.


How to mitigate CVE-2025-22873

Install updates from vendor's website.

Sources