Path Traversal in composer/composer
Auto-generated summary
Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.
A vulnerability tracked as CVE-2026-59944 has been found in composer/composer.
Attackers can target a specific entry point like vendor over the network to misuse the product.
Confidential information can be exposed externally. CVSS score: 6.1/10.
What to do: upgrade composer/composer to 2.2.30 or later.
If unsure, ask your IT team or search "composer/composer CVE-2026-59944" on the vendor's site.
CVE-2026-59944 (composer/composer) — CWE-22 / CVSS v3 6.1
Attack vector: local / unauthenticated
Attack surface: vendor
Patched: 2.2.30 — apply immediately
Workaround: Upgrading is the only complete fix.
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
Path traversal (CWE-22) exists in composer/composer. Attackers reach the vulnerable code path via vendor without authentication.
Check the vendor advisory for the affected versions of composer/composer. Attack surface: vendor.
Severity: Medium (CVSS 6.1/10). Confidential information can be exposed externally.
Update to 2.2.30.
Workaround: Upgrading is the only complete fix.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'composer/composer' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
grep -r 'composer/composer' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
composer/composerを grep し、稼働しているサービス・バージョンを把握する。 -
2
Apply temporary workaroundmitigate
Upgrading is the only complete fix.パッチが適用されるまでの応急処置として、Upgrading is the only complete fix. を実施。回避策の副作用 (機能低下) を確認した上で。
-
3
Apply patchpatch
Upgrade composer/composer to 2.2.30ステージング環境で 2.2.30 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
4
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| composercomposer/composer |
< 2.2.30→ 2.2.30 |
2.2.30 |
| Packagistcomposer/composer |
≥ 1.0, < 2.2.30→ 2.2.30 |
2.2.30 |
| Bitnamicomposer |
≥ 1.0.0, < 2.2.30→ 2.2.30 ≥ 2.3.0, < 2.10.3→ 2.10.3 |
2.2.30 2.10.3 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Alpine Linux ALPINE-CVE-2026-59944 composer Fix available
- Debian DEBIAN-CVE-2026-59944 composer Fix available
- Ubuntu UBUNTU-CVE-2026-59944 composer No fixed version in this record
Original description The description as published by the source.
Composer is a dependency Manager for the PHP language. From 1.0 until 2.2.30 and from 2.3.0 until 2.10.3, a malicious or compromised dependency can bypass the earlier CVE-2026-59946 binary-path hardening because Composer validates literal parent-directory segments only during dependency resolution, while the symlink and installed-metadata paths described by the advisory skip that validation. A package can ship an in-package binary symlink that resolves outside its installation directory, or attacker-influenced vendor/composer/installed.json metadata can provide an escaping binary path during a reinstall or regeneration of missing vendor/bin entries. The installed-metadata path is reachable only when the vendor directory was not populated by the same validated install run, such as when it is restored from an untrusted cache, copied from an earlier build stage, carried over from an older Composer run, or writable by a lower-trust build step. Composer can follow the path, change the external target's permissions to make it world-readable and executable, and create a runnable vendor/bin proxy to that external file. The issue does not directly read or transmit data and does not by itself provide remote code execution. This issue is fixed in versions 2.2.30 and 2.10.3.
Source: NIST National Vulnerability Database NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- patch github.com
- web github.com
- web github.com
- web github.com