CVE-2026-59946 Details
Description
Composer is a dependency Manager for the PHP language. Prior to 2.2.29 and 2.10.2, a Composer package bin entry containing .. path segments can resolve outside the package install directory and cause Composer's binary installation flow to chmod an existing host file to a world-readable and world-executable mode during composer install, update, or require. This issue is fixed in versions 2.2.29 and 2.10.2.
A path traversal vulnerability has been identified in Composer, a dependency manager for PHP. This issue affects Composer versions prior to 2.2.29 and 2.10.2. The vulnerability arises when a Composer package's bin entry includes '..' path segments, allowing it to resolve outside the package's installation directory. Exploitation of this vulnerability can lead to Composer's binary installation process changing the permissions of an existing file on the host system to be world-readable and executable. This permission change occurs during 'composer install', 'update', or 'require' commands, potentially exposing sensitive files such as SSH keys or environment variables to other users on the same machine.
Users can upgrade to Composer versions 2.2.29 or 2.10.2, both of which address this vulnerability by rejecting packages with invalid bin entries. Instructions for downloading the latest version of Composer are available on the Composer website.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 8, 2026CISA-ADP
Assessed Jul 9, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/composer/composer/commit/502c6c4f699802d9cf464728b3e8a95674f919a0 | [email protected] | Source CodeVendor |
| https://github.com/composer/composer/commit/c50b1efd13ebd73f6dca19b31424c5a02bf93cc1 | [email protected] | Source CodeVendor |
| https://github.com/composer/composer/releases/tag/2.10.2 | [email protected] | BundleRelease NotesVendor |
| https://github.com/composer/composer/releases/tag/2.2.29 | [email protected] | Release NotesVendor |
| https://github.com/composer/composer/security/advisories/GHSA-gjfg-22fp-rrxx | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
| CWE-732 | Incorrect Permission Assignment for Critical Resource | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Composer | >= 2.3.0, < 2.10.2 (semver) >= 1.0, < 2.2.29 |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 9, 2026 | CVE Modified | CISA-ADP |
| Jul 8, 2026 | New CVE Received | [email protected] |
Volerion