CVE-2024-24821: Composer is a dependency Manager for the PHP language
CVE-2024-24821 is a high-severity flaw (CVSS 8.8) affecting composer. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
Composer is a dependency Manager for the PHP language. In affected versions several files within the local working directory are included during the invocation of Composer and in the context of the executing user. As such, under certain conditions arbitrary code execution may lead to local privilege escalation, provide lateral user movement or malicious code execution when Composer is invoked within a directory with tampered files. All Composer C
Why this priority
- High severity
A fixed release or distro patch exists.
Risk facts
| CVSS score | 8.8 (High) |
| Attack vector | Local |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 0.3% (top 80%) |
| CISA exploited list | No |
| Weakness | CWE-829 |
| Published | 2024-02-09 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2024-24821?
composer: upgrade to 2.2.23, 2.7.0. Exact commands for each OS are on this page.
Is CVE-2024-24821 being exploited?
CVE-2024-24821 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2024-24821 affect?
CVE-2024-24821 affects composer. Severity is high (CVSS 8.8). Composer is a dependency Manager for the PHP language. In affected versions several files within the local working directory are included during the invocation of Composer and in the context of the executing user. As such, under certain con
How urgent is CVE-2024-24821?
Priority 36/100. High severity
Software pages
Related CVEs
- CVE-2026-40261 HIGH 8.8 UPGRADE Composer is a dependency manager for PHP
- CVE-2026-40176 HIGH 7.8 UPGRADE Composer is a dependency manager for PHP
- CVE-2025-67746 MEDIUM 4.3 UPGRADE Composer is a dependency manager for PHP
- CVE-2025-3510 MEDIUM 6.4 UPGRADE The tagDiv Composer plugin for WordPress is vulnerable to Stored Cross-Site Scripting via multiple shortcodes
- CVE-2023-43655 MEDIUM 6.4 UPGRADE MITIGATE Composer is a dependency manager for PHP