Path traversal in composer - CVE-2026-59948

 

Path traversal in composer - CVE-2026-59948

Published: July 1, 2026


Vulnerability identifier: #VU136612
CSH Severity: Medium
CVSS v4: 7.1 [CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-59948
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code.

The vulnerability exists due to path traversal in package name validation when processing package metadata from an untrusted third-party repository during install or update. A remote attacker can publish a malicious package with an invalid package name to write files outside the vendor directory and outside the project to execute arbitrary code.

User interaction is required to perform a normal install or update, and exploitation requires a malicious or compromised package to be present in the dependency graph from an untrusted third-party repository.


Affected software

composer
SUSE Linux Enterprise Server 15 SP6
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Server for SAP Applications 15
Web and Scripting Module
openSUSE Leap
php-composer2

How to mitigate CVE-2026-59948

Install security update from vendor's website.

composer - addressed in versions 2.2.29, 2.10.2
php-composer2 - update to 2.6.4-150600.3.12.1

External References

Related Security Bulletins