Path traversal in composer - CVE-2026-59946
Published: July 1, 2026
Vulnerability details
The vulnerability allows a remote attacker to disclose sensitive information.
The vulnerability exists due to path traversal in the bin field processing in Composer when installing a package with crafted bin entries containing .. path segments. A remote attacker can trick the victim into installing a malicious dependency to disclose sensitive information.
The issue changes file permissions of an existing target file to make it world-readable and world-executable, and user interaction is required to install, update, or require the dependency.
Affected software
SUSE Linux Enterprise Server 15 SP5
SUSE Linux Enterprise Server 15 SP6
SUSE Linux Enterprise Server 15 SP4
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
Web and Scripting Module
openSUSE Leap
Anolis OS
php-composer2
composer
composer-doc
How to mitigate CVE-2026-59946
php-composer2 - addressed in versions 2.2.30-150400.3.21.1, 2.2.30-150400.3.24.1, 2.6.4-150600.3.12.1
composer - update to 2.10.2-1
composer-doc - update to 2.10.2-1