Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-24821— Code execution and possible privilege escalation via compromised InstalledVersions.php or installed.php in Composer

Quick assessment

Affected
composer composer
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

composer是一个应用软件。提供一个声明,管理和安装PHP项目的依赖项。 Composer 2.2.23之前版本,2.7.0之前版本存在安全漏洞,该漏洞源于存在任意代码执行漏洞。攻击者可利用该漏洞进行权限提升。

CVSS 8.8 · High EPSS 0.28% · P19
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-24821

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Code execution and possible privilege escalation via compromised InstalledVersions.php or installed.php in Composer
Source: CVE Program / CVE List V5
Vulnerability Description
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 CLI commands are affected, including composer.phar's self-update. The following scenarios are of high risk: Composer being run with sudo, Pipelines which may execute Composer on untrusted projects, Shared environments with developers who run Composer individually on the same project. This vulnerability has been addressed in versions 2.7.0 and 2.2.23. It is advised that the patched versions are applied at the earliest convenience. Where not possible, the following should be addressed: Remove all sudo composer privileges for all users to mitigate root privilege escalation, and avoid running Composer within an untrusted directory, or if needed, verify that the contents of `vendor/composer/InstalledVersions.php` and `vendor/composer/installed.php` do not include untrusted code. A reset can also be done on these files by the following:```sh rm vendor/composer/installed.php vendor/composer/InstalledVersions.php composer install --no-scripts --no-plugins ```
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
从非可信控制范围包含功能例程
Source: CVE Program / CVE List V5
Vulnerability Title
Composer 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
composer是一个应用软件。提供一个声明,管理和安装PHP项目的依赖项。 Composer 2.2.23之前版本,2.7.0之前版本存在安全漏洞,该漏洞源于存在任意代码执行漏洞。攻击者可利用该漏洞进行权限提升。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
composer composer >= 2.0, < 2.2.23 -

II. Public POCs for CVE-2024-24821

# POC Description Source Link Shenlong Link
AI-Generated POC Premium
Qwen3.6-35B-A3B · 8456 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2024-24821

请登录查看更多情报信息。

Patches & Fixes for CVE-2024-24821 (1)

Vendor Advisories for CVE-2024-24821 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2024-24821

No comments yet


Leave a comment