cve.bz

CVE-2026-84361 composer composer: OS Command Injection

7.7 highEPSS 0.5%Fix available

High (7.7) in composer composer. EPSS 0.5% estimated probability of exploitation activity in the next 30 days. Fixed in composer/composer 2.10.3, 2.2.30.

On this page
Composer is a dependency Manager for the PHP language. From 1.0 until 2.2.30 and 2.10.3, a malicious dependency package from a custom Composer repository or an untrusted composer.lock file could set source.type to perforce and source.url to an rsh: or jsh: P4PORT value. When the Perforce p4 client was installed and Composer installed the package from source through composer install or composer update, including --prefer-source, Composer\Util\Perforce passed the address to p4 without validation, causing p4 to run a local command with the privileges of the user or CI account. Packagist.org does not permit Perforce source metadata. This issue is fixed in versions 2.2.30 and 2.10.3.

Severity

CVSS 4.0

7.7 high
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 44th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-09-02. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-84361 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-84361?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-84361?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-84361 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
composer>= 1.0, < 2.2.30
composer>= 2.3.0, < 2.10.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-rvx4-ffvw-m9q3Packagistcomposer/composer>=2.3.0 <2.10.32.10.3
GHSA-rvx4-ffvw-m9q3Packagistcomposer/composer>=1.0 <2.2.302.2.30

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12composerno fix listedDEBIAN-CVE-2026-84361
Debian13composer2.8.8-1+deb13u4DEBIAN-CVE-2026-84361
Debian14composer2.10.3-1DEBIAN-CVE-2026-84361
Ubuntu26.04:LTS, 26.10, Pro:16.04:LTS and 4 morecomposerno fix listedUBUNTU-CVE-2026-84361
Red Hathummingbird:1composer0:2.10.3-1.hum1RHSA-2026:63151
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 morephp-composer22.2.30-150400.3.21.1SUSE-SU-2026:4283-1
SUSELinux Enterprise Module for Web and Scripting 15 SP7, Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6php-composer22.6.4-150600.3.18.1SUSE-SU-2026:4059-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0php-composer22.8.9-160000.5.1SUSE-SU-2026:23635-1
openSUSELeap 16.0php-composer22.8.9-160000.5.1openSUSE-SU-2026:21778-1
openSUSETumbleweedphp-composer22.10.3-2.1openSUSE-SU-2026:11689-1
Alpinev3.24composer2.10.3-r0ALPINE-CVE-2026-84361

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is rated as having an Important severity because successful exploitation allows arbitrary command execution within the security context of the user or continuous integration service executing Composer. However, exploitation requires specific non-standard preconditions, including the presence of the Perforce `p4` command-line utility on the system PATH and the processing of untrusted package metadata or lock files from a third-party repository. Standard Red Hat environments do not include Perforce tools by default, which restricts real-world exposure to environments with custom version control setups.

Red Hat's mitigation

To mitigate this issue, avoid installing the Perforce `p4` client on systems where Composer is used, unless explicitly required. Additionally, ensure that Composer only processes dependencies from trusted repositories and `composer.lock` files to prevent the introduction of malicious `source.url` values.

ProductPackageStateAdvisory
Red Hat Hardened Imagescomposer-main-2.10.3-1.hum1Fixed 2026-09-03RHSA-2026:63151

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-84361.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON