HighVulnerabilityPatch available

Composer advisory discloses code execution via vendor-dir, fix 2.11.3

Composer maintainers and Orca report a code execution flaw in Composer 2.2.23 to 2.2.32 and 2.7.0 to 2.11.2; update to 2.11.3 or 2.2.33.

Published
Fixed in
Composer 2.11.3 and 2.2.33 (LTS)
Exploitation
Not confirmed. The sources describe a reporter proof of concept and state no in-the-wild exploitation.

Live scores

CVE-2024-24821
EPSS
0.003
low predicted chance of attack
VEDAS
0.769
likely exploited
On CISA KEV
Not listed
Detection rule
No public rule yet

What happened

According to the Composer maintainers’ GitHub security advisory GHSA-374h-4mh9-7rpm, running Composer inside a directory prepared by an attacker could execute arbitrary commands as the user running Composer. The advisory, published on Nov 24, 2026, rates it High with a CVSS score of 8.8 and lists CWE-95 (improper neutralization of directives in dynamically evaluated code). It says this is a bypass of the fix for CVE-2024-24821 (NVD) and has the same preconditions and impact. GitHub advisory

Orca Security, credited as the reporter in the advisory, published its own write-up on Nov 30, 2026 under the name “composer2shell”. Orca says a CVE is pending; the GitHub advisory currently lists “No known CVE”. Orca Security

Orca says Composer checks the project’s vendor/composer/installed.php against an allow-list, then rewrites it and evaluates it without checking again. It says a crafted vendor-dir value in composer.json can therefore inject a shell command. Orca says it confirmed this on Composer 2.11.2 and 2.2.32. Orca Security

Neither source states that the flaw has been exploited in the wild. Orca’s claim that some CI services still ship a vulnerable Composer comes from Orca alone and was not independently verified in these sources.

Am I affected?

According to the GitHub advisory, you are exposed if all of the following apply:

  • You run Composer 2.2.23 to 2.2.32, or 2.7.0 to 2.11.2.
  • You run it in a project directory whose composer.json and vendor directory someone else can write to or has prepared, for example an untrusted checkout, a pull request built in CI, or a shared directory.
  • You run it without --no-plugins and without --no-scripts.

The advisory says you are not affected if you only run Composer on projects whose files you fully control and trust. It also says the flaw is not exploitable remotely or through package installation. The CVSS vector it lists is local (AV:L). GitHub advisory

Orca says any Composer command that loads the project triggers it, including read-only ones such as composer show, list and validate. Orca names developers who open untrusted PHP projects and CI/CD pipelines that run Composer on pull requests from forks as most at risk. Orca says CI services including GitHub Actions, Azure Pipelines, AWS CodeBuild, CircleCI and Semaphore still ship a vulnerable Composer. Orca Security

What to do now

  1. Run composer self-update and check that composer --version reports 2.11.3 or 2.2.33 (LTS). Both sources name these as the patched versions.
  2. Review CI workflows that build pull requests from forks, as Orca recommends. Check which Composer version the runner image provides and update it where it falls in the affected ranges.
  3. Until you have patched, avoid running Composer on untrusted checkouts. Orca says --no-plugins or --no-scripts stops Composer from loading the file, so nothing runs.
  4. Whether any particular CI service has released an updated image: not confirmed in the sources.

Sources