Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-84361— Composer: Perforce source URL permits P4PORT `rsh:` command execution

Quick assessment

Affected
composer composer
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Composer是Composer组织开源的一个软件依赖管理工具。 Composer 1.0至2.2.30之前版本和2.3.0至2.10.3之前版本存在命令注入漏洞,该漏洞源于未验证传递给Perforce p4客户端的地址,恶意依赖包或不可信的composer.lock文件可设置source.type为perforce及source.url为rsh或jsh P4PORT值,导致p4以用户或CI账户权限执行本地命令。

CVSS 7.7 · High EPSS 0.50% · P43

Affected Version Matrix 2

VendorProduct Version RangeStatus
composer composer >= 1.0, < 2.2.30 affected
>= 2.3.0, < 2.10.3 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-84361

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Composer: Perforce source URL permits P4PORT `rsh:` command execution
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
OS命令中使用的特殊元素转义处理不恰当(OS命令注入)
Source: CVE Program / CVE List V5
Vulnerability Title
Composer 命令注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Composer是Composer组织开源的一个软件依赖管理工具。 Composer 1.0至2.2.30之前版本和2.3.0至2.10.3之前版本存在命令注入漏洞,该漏洞源于未验证传递给Perforce p4客户端的地址,恶意依赖包或不可信的composer.lock文件可设置source.type为perforce及source.url为rsh或jsh P4PORT值,导致p4以用户或CI账户权限执行本地命令。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
composer composer >= 1.0, < 2.2.30 -

II. Public POCs for CVE-2026-84361

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-84361

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-84361 (2)

Vendor Advisories for CVE-2026-84361 (1)

Vendor Pages for CVE-2026-84361 (2)

IV. Related Vulnerabilities