BIT-composer-2026-40261: Composer has Command Injection via Malicious Perforce Reference
Affects composerSource GCVE Database
Not known to be exploited : upgrade to 2.9.6 or 2.2.27 soon.
Data as of 26 Oct 2026, 12:29 UTC
Rated by Threat Radar · No CVSS score from NVD or the CNA
- EPSS
- 1.6% chance of exploitation in 30 days – higher than 76% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 2.9.6, 2.2.27
Exploitation evidence
Disclosed: evidence found.
CVE published 18 Apr 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade composer to 2.9.6 or 2.2.27.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Bitnamicomposerpkg:bitnami/composerOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in Composer versions 2.2.27 and 2.9.6. Users should upgrade to these versions or later. If immediate upgrade is not possible, users can mitigate risk by avoiding installing dependencies from source using the --prefer-dist option or setting preferred-install to dist in Composer configuration. Additionally, only trusted Composer repositories should be used to prevent malicious package metadata injection.
Description
Composer, a PHP dependency manager, contains a command injection vulnerability in versions 1.0 through 2.2.26 and 2.3 through 2.9.5. The vulnerability exists in the Perforce::syncCodeBase() and Perforce::generateP4Command() methods, which improperly escape user-supplied parameters, allowing arbitrary command injection. This can be exploited via malicious package metadata from compromised or malicious Composer repositories when installing or updating dependencies from source. The issue is fixed in Composer 2.2.27 and 2.9.6. Workarounds include avoiding source installs by using --prefer-dist or trusted repositories.
References
- github.com/composer/composer/releases/tag/2.9.6 (opens in a new tab)
- github.com/composer/composer/security/advisories/GHSA-gqw4-4w2p-838q (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-40261 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:8165 (opens in a new tab)
- access.redhat.com/security/cve/CVE-2026-40261 (opens in a new tab)
- bugzilla.redhat.com/show_bug.cgi?id=2458841 (opens in a new tab)
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40261.json (opens in a new tab)