Packagist (PHP)Worst: High17 advisories

composer/composer: known vulnerabilities

composer/composer has 17 reviewed security advisories in the GitHub Advisory Database — 13 high, 3 moderate, 1 low. The most recent was published 2026-09-16. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the composer/composer versions running across your servers, containers and images, and ranks what to patch first.

How to fix composer/composer

Upgrade composer/composer to a release at or above the fixed version shown for each advisory below. For Packagist (PHP):

composer require composer/composer:^2.2.30 (composer audit)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (17)

Composer: GHSA-gjfg-22fp-rrxx fix bypass via symlinked package bin path Moderate 6.1 CWE-22 CWE-59 CWE-732 — Affected: from 1.0 up to 2.2.30. Fixed in 2.2.30. Published 2026-09-16. GHSA-96h3-5x6v-m776 · CVE-2026-59944
Composer arbitrary command execution via a malicious package's Perforce source URL High CWE-78 — Affected: from 1.0 up to 2.2.30. Fixed in 2.2.30. Published 2026-09-01. GHSA-rvx4-ffvw-m9q3 · CVE-2026-84361
Github Actions issued GITHUB_TOKEN disclosure in GitHub Actions logs High 7.5 CWE-200 — Affected: from 1.0 up to 1.10.28. Fixed in 1.10.28. Published 2026-07-15. GHSA-f9f8-rm49-7jv2 · CVE-2026-45793
Composer: Arbitrary file write outside vendor via malicious transitive package name High 7.0 CWE-22 CWE-787 — Affected: from 1.0.0 up to 2.2.29. Fixed in 2.2.29. Published 2026-07-08. GHSA-499r-g7pc-vmp9 · CVE-2026-59948
Composer: URL-embedded HTTP-Basic username leaks to verbose logs (GitHub PAT exposure) Moderate 4.7 CWE-532 — Affected: from 1.0.0 up to 2.2.29. Fixed in 2.2.29. Published 2026-07-08. GHSA-g6xq-892h-64w3 · CVE-2026-59947
Composer: Path traversal in package bin field lets dependencies chmod arbitrary host files Moderate 6.1 CWE-22 CWE-732 — Affected: from 1.0.0 up to 2.2.29. Fixed in 2.2.29. Published 2026-07-08. GHSA-gjfg-22fp-rrxx · CVE-2026-59946
Composer has a command injection via malicious perforce reference High 8.8 CWE-20 CWE-78 — Affected: from 1.0.0 up to 2.2.27. Fixed in 2.2.27. Published 2026-04-15. GHSA-gqw4-4w2p-838q · CVE-2026-40261
Composer has a command injection via malicious perforce repository High 7.8 CWE-20 CWE-78 — Affected: from 1.0.0 up to 2.2.27. Fixed in 2.2.27. Published 2026-04-15. GHSA-wg36-wvj6-r67p · CVE-2026-40176
Composer is vulnerable to ANSI sequence injection Low CWE-74 — Affected: from 2.3.0 up to 2.9.3. Fixed in 2.9.3. Published 2025-12-30. GHSA-59pp-r3rg-353g · CVE-2025-67746
Composer has a command injection via malicious git branch name High 8.8 CWE-77 — Affected: from 2.3 up to 2.7.7. Fixed in 2.7.7. Published 2024-06-10. GHSA-47f6-5gq3-vx9c · CVE-2024-35241
Composer has multiple command injections via malicious git/hg branch names High 8.8 CWE-77 — Affected: from 2.3 up to 2.7.7. Fixed in 2.7.7. Published 2024-06-10. GHSA-v9qv-c7wm-wgmf · CVE-2024-35242
Composer code execution and possible privilege escalation via compromised InstalledVersions.php or installed.php High 8.8 CWE-829 — Affected: from 2.3.0-rc1 up to 2.7.0. Fixed in 2.7.0. Published 2024-02-09. GHSA-7c6p-848j-wh5h · CVE-2024-24821
Composer Remote Code Execution vulnerability via web-accessible composer.phar High 8.8 CWE-74 — Affected: from 2.3.0 up to 2.6.4. Fixed in 2.6.4. Published 2023-09-29. GHSA-jm6m-4632-36hf · CVE-2023-43655
Composer allows cache poisoning from other projects built on the same host High 8.8 CWE-345 — Affected: before 1.0.0. Fixed in 1.0.0. Published 2023-09-21. GHSA-725m-w832-q973 · CVE-2015-8371
Missing input validation can lead to command execution in composer High 8.3 CWE-20 CWE-88 CWE-94 — Affected: from 2.3 up to 2.3.5. Fixed in 2.3.5. Published 2022-04-13. GHSA-x7cr-6qr6-2hh6 · CVE-2022-24828
Improper escaping of command arguments on Windows leading to command injection High 8.2 CWE-77 — Affected: from 2.0.0-alpha1 up to 2.1.9. Fixed in 2.1.9. Published 2021-10-05. GHSA-frqg-7g38-6gcf · CVE-2021-41116
Composer's missing argument delimiter can lead to code execution via VCS repository URLs or source download URLs on systems with Mercurial High 8.8 CWE-88 CWE-94 — Affected: from 2.0.0-alpha1 up to 2.0.13. Fixed in 2.0.13. Published 2021-04-27. GHSA-h5h8-pc6h-jvvx · CVE-2021-29472

Find composer/composer across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.