{"answers":{"affected":"5 open source packages ship an affected version, including composer/composer and composer.","exploited":"There is no known exploitation of CVE-2026-84361 in the wild and no public exploit code.","fix":"Upgrade composer/composer to a fixed version for your release line: 2.2.30 or 2.10.3.","what":"CVE-2026-84361 is a high-severity command injection vulnerability in composer, published on 1 Sep 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-84361 and fix it if it is affected.\n\nWhat it is: CVE-2026-84361 is a high-severity command injection vulnerability in composer, published on 1 Sep 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-84361 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- composer/composer (Packagist): affected from 1.0; fixed in 2.2.30\n- composer/composer (Packagist): affected from 1.0; fixed in 2.2.30\n- composer/composer (Packagist): affected from 2.3.0; fixed in 2.10.3\n- composer/composer (Packagist): affected from 2.3.0; fixed in 2.10.3\n- composer (Bitnami): affected from 1.0.0; fixed in 2.2.30, 2.10.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-84361/ (Markdown: https://insights.sbomify.com/CVE-2026-84361/index.md)","id":"CVE-2026-84361","markdown":"https://insights.sbomify.com/CVE-2026-84361/index.md","name":"CVE-2026-84361","record":{"aliases":["BIT-composer-2026-84361","DEBIAN-CVE-2026-84361","GHSA-rvx4-ffvw-m9q3","MINI-3hjh-7xq3-45jr","MINI-5hm4-49pw-qc98","SUSE-SU-2026:23635-1","SUSE-SU-2026:4059-1","UBUNTU-CVE-2026-84361","openSUSE-SU-2026:11689-1","openSUSE-SU-2026:21778-1"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"PHP dependency manager","requires_auth":"none","summary":"A malicious package can execute arbitrary commands via Perforce source URLs if the p4 client is installed, allowing attackers to run code with user privileges.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.7,"severity":"high","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"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.","ecosystems":["Bitnami","Packagist","SUSE:Linux Enterprise Module for Web and Scripting 15 SP7","SUSE:Linux Enterprise Server 15 SP6-LTSS","SUSE:Linux Enterprise Server 16.0","SUSE:Linux Enterprise Server for SAP Applications 15 SP6","SUSE:Linux Enterprise Server for SAP applications 16.0","openSUSE:Leap 16.0","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":"2026-09-02","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-09-02T05:07:54Z","kind":"github_poc","ref":"https://github.com/Saku0512/CVE-2026-84361-poc","stars":0,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"Composer: Perforce source URL permits P4PORT `rsh:` command execution","id":"CVE-2026-84361","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":12,"n_references":5,"next":{"headline":"Hono: Query parser reads parameters after the URL fragment, causing cache-key and proxy interpretation differentials","id":"CVE-2026-84363"},"packages":[{"ecosystem":"Bitnami","fixed":["2.2.30","2.10.3"],"introduced":["1.0.0","2.3.0"],"last_affected":[],"package":"composer","purl":"pkg:bitnami/composer","source":"BIT-composer-2026-84361"},{"ecosystem":"Packagist","fixed":["2.2.30"],"introduced":["1.0"],"last_affected":[],"package":"composer/composer","purl":null,"source":"GHSA-rvx4-ffvw-m9q3"},{"ecosystem":"Packagist","fixed":["2.2.30"],"introduced":["1.0"],"last_affected":[],"package":"composer/composer","purl":"pkg:composer/composer/composer","source":"GHSA-rvx4-ffvw-m9q3"},{"ecosystem":"Packagist","fixed":["2.10.3"],"introduced":["2.3.0"],"last_affected":[],"package":"composer/composer","purl":null,"source":"GHSA-rvx4-ffvw-m9q3"},{"ecosystem":"Packagist","fixed":["2.10.3"],"introduced":["2.3.0"],"last_affected":[],"package":"composer/composer","purl":"pkg:composer/composer/composer","source":"GHSA-rvx4-ffvw-m9q3"},{"ecosystem":"SUSE:Linux Enterprise Module for Web and Scripting 15 SP7","fixed":["2.6.4-150600.3.18.1"],"introduced":["0"],"last_affected":[],"package":"php-composer2","purl":"pkg:rpm/suse/php-composer2\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Web%20and%20Scripting%2015%20SP7","source":"SUSE-SU-2026:4059-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP6-LTSS","fixed":["2.6.4-150600.3.18.1"],"introduced":["0"],"last_affected":[],"package":"php-composer2","purl":"pkg:rpm/suse/php-composer2\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP6-LTSS","source":"SUSE-SU-2026:4059-1"},{"ecosystem":"SUSE:Linux Enterprise Server 16.0","fixed":["2.8.9-160000.5.1"],"introduced":["0"],"last_affected":[],"package":"php-composer2","purl":"pkg:rpm/suse/php-composer2\u0026distro=SUSE%20Linux%20Enterprise%20Server%2016.0","source":"SUSE-SU-2026:23635-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP6","fixed":["2.6.4-150600.3.18.1"],"introduced":["0"],"last_affected":[],"package":"php-composer2","purl":"pkg:rpm/suse/php-composer2\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP6","source":"SUSE-SU-2026:4059-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP applications 16.0","fixed":["2.8.9-160000.5.1"],"introduced":["0"],"last_affected":[],"package":"php-composer2","purl":"pkg:rpm/suse/php-composer2\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20applications%2016.0","source":"SUSE-SU-2026:23635-1"},{"ecosystem":"openSUSE:Leap 16.0","fixed":["2.8.9-160000.5.1"],"introduced":["0"],"last_affected":[],"package":"php-composer2","purl":"pkg:rpm/opensuse/php-composer2\u0026distro=openSUSE%20Leap%2016.0","source":"openSUSE-SU-2026:21778-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["2.10.3-2.1"],"introduced":["0"],"last_affected":[],"package":"php-composer2","purl":"pkg:rpm/opensuse/php-composer2\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:11689-1"}],"prev":{"headline":"Nginx UI: OTP secure-session step-up can be bypassed via MCP configuration tools","id":"CVE-2026-84360"},"products":["composer"],"published":"2026-09-01","related":[],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-09-03","vendors":["composer"]},"summary":"A malicious package can execute arbitrary commands via Perforce source URLs if the p4 client is installed, allowing attackers to run code with user privileges.","url":"https://insights.sbomify.com/CVE-2026-84361/"}