Predictive Vulnerability Intelligence.

Product

  • Product
  • Pricing
  • Documentation

Company

  • About
  • Partnerships
  • Blog
  • Support

Legal

  • Terms
  • Privacy
  • Data Licensing

© 2026 FAUCET Technologies LLC. All rights reserved.

CVE-2026-40261

37
FAUCET Score

OVERVIEW CVE-2026-40261 is a command injection vulnerability in Composer, a widely-used PHP dependency manager. Affected versions include Composer 1.0 through 2.2.26 and 2.3 through 2.9.5. The vulnerability exists in the Perforce version control integration, where the syncCodeBase() and generateP4Command() methods fail to properly escape user-supplied parameters including source references and Perforce connection details (port, user, client). An attacker can inject arbitrary shell commands through crafted package metadata, even if Perforce is not installed on the target system. SEVERITY The vulnerability carries a CVSS score of 8.8 (HIGH) with a network attack vector, low attack complexity, and no privilege requirements. The critical aspect is that user interaction is required—developers must install or update dependencies from source. The attack has high impact across confidentiality, integrity, and availability. Any compromised or malicious Composer repository can serve malicious package metadata, making this particularly dangerous in supply chain scenarios where developers may unknowingly pull from untrusted sources. EXPLOITATION STATUS There is no indication of active exploitation in the wild. The vulnerability has not been added to the CISA Known Exploited Vulnerabilities (KEV) catalog and is inactive on threat intelligence hot lists. The EPSS score of 0.0004 suggests minimal real-world exploitation probability. However, given the supply chain attack vector and relative ease of exploitation, organizations should treat this as a medium-priority remediation. Composer versions 2.2.27 (LTS) and 2.9.6 (mainline) contain fixes; developers unable to update immediately should use the --prefer-dist flag to install pre-built distributions instead of building from source.

Impacted Technologies

VendorProductVersion(s)CPE
>= 1.0.0, <= 2.2.26CPE matchmatch criteria
cpe:2.3:a:getcomposer:composer:*:*:*:*:*:*:*:*
>= 2.3.0, <= 2.9.5CPE matchmatch criteria
cpe:2.3:a:getcomposer:composer:*:*:*:*:*:*:*:*

CVSS Data

CVSS version used by this source: 3.1

8.8HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
Exploitability Score
2.8
Impact Score
5.9
CvssVersion
3.1

Exploit Intelligence

EPSS Score
1.69%
Probability of exploitation in next 30 days
EPSS Percentile
74.7%
Percentile rank of EPSS score among Peer Group
As of 2026-07-26
Model: v2026.06.15
This CVE's current EPSS score of 0.0169 is in the 74th percentile among its peer group of 14,848 CVEs.

Social Chatter

The average CVE in this peer group has 0.0 Twitter, 0.1 Reddit, 0.2 Bluesky, 0.1 Mastodon, and 0.2 GitHub mentions.

Media Mentions

The average CVE in this peer group has 0.3 InfoSec Media, 0.0 Vendor Blog, and 0.1 Security Researcher mentions.

Remediation

Patch Available

Vendor Patches (3)

composerpatch availablevia ghsa
Product: composer/composerFixed in: 2.9.6
composerpatch availablevia ghsa
Product: composer/composerFixed in: 2.2.27
github_advisoryvendor investigatingvia nvd_reference
View patch

Vendor Advisories (1)

composerGHSA-gqw4-4w2p-838qhigh

Composer has a command injection via malicious perforce reference

Apr 14, 2026

References

access.redhat.com / errata/RHSA-2026:8165
access.redhat.com / security/cve/CVE-2026-40261
bugzilla.redhat.com / show_bug.cgi
security.access.redhat.com / data/csaf/v2/vex/2026/cve-2026-40261.json
github.com / composer/composer/releases/tag/2.9.6
Release Notes
github.com / composer/composer/security/advisories/GHSA-gqw4-4w2p-838q
Vendor Advisory