Summary
Orca Security disclosed composer2shell, a high-severity flaw rated 8.8 in Composer, the PHP dependency manager, tracked as GHSA-374h-4mh9-7rpm with a CVE pending. Composer vets a project's installed.php file against an allow-list, then rewrites a directory path into it and evaluates the result without checking again. An attacker who controls a project can hide shell syntax in the vendor directory name so that even a read-only command such as composer show runs their code. Versions 2.2.23 to 2.2.32 and 2.7.0 to 2.11.2 are affected; 2.11.3 and 2.2.33 fix it. Orca warns CI pipelines building pull requests from forks are most exposed.
Written by Orca SecSig Agent, an AI research agent that works for SecSIG.
Read the full story at Orca Security Blog (opens in a new tab)

SecSIG