{"answers":{"affected":"5 open source packages ship an affected version, including composer/composer and composer.","exploited":"There is no known exploitation of CVE-2026-59946 in the wild and no public exploit code.","fix":"Upgrade composer/composer to a fixed version for your release line: 2.2.29 or 2.10.2.","what":"CVE-2026-59946 is a medium-severity path traversal vulnerability in composer, published on 8 Jul 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-59946 and fix it if it is affected.\n\nWhat it is: CVE-2026-59946 is a medium-severity path traversal vulnerability in composer, published on 8 Jul 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-59946 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- composer/composer (Packagist): affected from 1.0.0; fixed in 2.2.29\n- composer/composer (Packagist): affected from 1.0.0; fixed in 2.2.29\n- composer/composer (Packagist): affected from 2.3.0; fixed in 2.10.2\n- composer/composer (Packagist): affected from 2.3.0; fixed in 2.10.2\n- composer (Bitnami): affected from 1.0.0; fixed in 2.2.29, 2.10.2\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-59946/ (Markdown: https://insights.sbomify.com/CVE-2026-59946/index.md)","id":"CVE-2026-59946","markdown":"https://insights.sbomify.com/CVE-2026-59946/index.md","name":"CVE-2026-59946","record":{"aliases":["BIT-composer-2026-59946","CLEANSTART-2026-XS00515","DEBIAN-CVE-2026-59946","GHSA-gjfg-22fp-rrxx","MINI-2x76-2c3f-vphj","MINI-xvgc-rq86-jjv9","RHSA-2026:34854","UBUNTU-CVE-2026-59946"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["privilege_escalation","data_modify"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"PHP dependency manager","requires_auth":"none","summary":"A malicious Composer package can use path traversal in its bin field to chmod arbitrary host files, potentially leading to privilege escalation or data modification.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":6.1,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-732","name":"Incorrect Permission Assignment for Critical Resource"},{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Composer is a dependency Manager for the PHP language. Prior to 2.2.29 and 2.10.2, a Composer package bin entry containing .. path segments can resolve outside the package install directory and cause Composer's binary installation flow to chmod an existing host file to a world-readable and world-executable mode during composer install, update, or require. This issue is fixed in versions 2.2.29 and 2.10.2.","ecosystems":["Bitnami","Packagist","Red Hat:hummingbird:1"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Composer: Path traversal in package bin field lets dependencies chmod arbitrary host files","id":"CVE-2026-59946","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":6,"n_references":5,"next":{"headline":"Composer: URL-embedded HTTP-Basic username leaks to verbose logs (GitHub PAT exposure)","id":"CVE-2026-59947"},"packages":[{"ecosystem":"Bitnami","fixed":["2.2.29","2.10.2"],"introduced":["1.0.0","2.3.0"],"last_affected":[],"package":"composer","purl":"pkg:bitnami/composer","source":"BIT-composer-2026-59946"},{"ecosystem":"Packagist","fixed":["2.2.29"],"introduced":["1.0.0"],"last_affected":[],"package":"composer/composer","purl":null,"source":"GHSA-gjfg-22fp-rrxx"},{"ecosystem":"Packagist","fixed":["2.2.29"],"introduced":["1.0.0"],"last_affected":[],"package":"composer/composer","purl":"pkg:composer/composer/composer","source":"GHSA-gjfg-22fp-rrxx"},{"ecosystem":"Packagist","fixed":["2.10.2"],"introduced":["2.3.0"],"last_affected":[],"package":"composer/composer","purl":null,"source":"GHSA-gjfg-22fp-rrxx"},{"ecosystem":"Packagist","fixed":["2.10.2"],"introduced":["2.3.0"],"last_affected":[],"package":"composer/composer","purl":"pkg:composer/composer/composer","source":"GHSA-gjfg-22fp-rrxx"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:2.10.2-1.hum1"],"introduced":["0"],"last_affected":[],"package":"composer","purl":"pkg:rpm/redhat/composer","source":"RHSA-2026:34854"}],"prev":{"headline":"Composer: CVE-2026-59946 fix bypass via symlinked package bin path","id":"CVE-2026-59944"},"products":["composer"],"published":"2026-07-08","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":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-09","vendors":["composer"]},"summary":"A malicious Composer package can use path traversal in its bin field to chmod arbitrary host files, potentially leading to privilege escalation or data modification.","url":"https://insights.sbomify.com/CVE-2026-59946/"}