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 BT: 2.7 [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

Vulnerability details

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.


Affected software

Go programming language
Arch Linux
SUSE Linux Enterprise Server 15 SP4
SUSE Linux Enterprise Server 15 SP5
SUSE Linux Enterprise Server 15 SP3
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Real Time 15
SUSE Enterprise Storage
Development Tools Module
openSUSE Leap
go1.24-race
go1.24-doc
go1.24
go
App Connect Enterprise Certified Container

How to mitigate CVE-2025-22873

Install updates from vendor's website.

Go programming language - addressed in versions 1.23.9, 1.24.3
go1.24-race - addressed in versions 1.24.3-150000.1.23.1, 1.24.4-150000.1.26.1
go1.24-doc - addressed in versions 1.24.3-150000.1.23.1, 1.24.4-150000.1.26.1
go1.24 - addressed in versions 1.24.3-150000.1.23.1, 1.24.4-150000.1.26.1
go - update to 2
App Connect Enterprise Certified Container - update to 12.0.15

External References

Related Security Bulletins