BIT-composer-2026-59946: Composer: Path traversal in package bin field lets dependencies chmod arbitrary host files
Composer versions prior to 2.2.29 and 2.10.2 contain a path traversal vulnerability in the package bin field. This flaw allows a package's bin entry with '..' path segments to escape the package install directory. As a result, during composer install, update, or require operations, Composer may chmod an arbitrary existing host file, setting it to world-readable and world-executable permissions. This vulnerability is fixed in versions 2.2.29 and 2.10.2.
AI Analysis
Technical Summary
Composer, a PHP dependency manager, has a path traversal vulnerability identified as CVE-2026-59946. The issue arises from the handling of the package bin field, where '..' segments can cause Composer to resolve paths outside the intended package directory. This leads to Composer's binary installation process changing the permissions of arbitrary host files to be world-readable and world-executable. The vulnerability affects versions >=1.0.0 <2.2.29 and >=2.3.0 <2.10.2 and is resolved in versions 2.2.29 and 2.10.2.
Potential Impact
An attacker who can supply or influence a package's bin field could cause Composer to modify permissions on arbitrary files on the host system, potentially exposing sensitive files or enabling unauthorized execution. This could lead to privilege escalation or information disclosure depending on the files affected. The vulnerability occurs during normal Composer operations such as install, update, or require.
Mitigation Recommendations
Upgrade Composer to version 2.2.29 or later, or 2.10.2 or later, where this vulnerability is fixed. No other mitigation is necessary as the issue is resolved in these versions.
BIT-composer-2026-59946: Composer: Path traversal in package bin field lets dependencies chmod arbitrary host files
Description
Composer versions prior to 2.2.29 and 2.10.2 contain a path traversal vulnerability in the package bin field. This flaw allows a package's bin entry with '..' path segments to escape the package install directory. As a result, during composer install, update, or require operations, Composer may chmod an arbitrary existing host file, setting it to world-readable and world-executable permissions. This vulnerability is fixed in versions 2.2.29 and 2.10.2.
Affected software
pkg:bitnami/composerRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Composer, a PHP dependency manager, has a path traversal vulnerability identified as CVE-2026-59946. The issue arises from the handling of the package bin field, where '..' segments can cause Composer to resolve paths outside the intended package directory. This leads to Composer's binary installation process changing the permissions of arbitrary host files to be world-readable and world-executable. The vulnerability affects versions >=1.0.0 <2.2.29 and >=2.3.0 <2.10.2 and is resolved in versions 2.2.29 and 2.10.2.
Potential Impact
An attacker who can supply or influence a package's bin field could cause Composer to modify permissions on arbitrary files on the host system, potentially exposing sensitive files or enabling unauthorized execution. This could lead to privilege escalation or information disclosure depending on the files affected. The vulnerability occurs during normal Composer operations such as install, update, or require.
Mitigation Recommendations
Upgrade Composer to version 2.2.29 or later, or 2.10.2 or later, where this vulnerability is fixed. No other mitigation is necessary as the issue is resolved in these versions.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BIT-composer-2026-59946
- Osv Schema Version
- 1.6.2
- Aliases
- ["CVE-2026-59946"]
- Ecosystems
- ["Bitnami"]
- Database Specific Severity
- Medium
- Cvss Version
- null
Threat ID: 6a561c4a68715ace4365a30c
Added to database: 07/14/2026, 11:23:54 UTC
Last enriched: 07/14/2026, 11:32:48 UTC
Last updated: 07/14/2026, 11:32:48 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.