{"id":"CVE-2026-59948","published":"2026-07-08T19:33:48Z","modified":"2026-07-09T14:32:07Z","title":"Composer: Arbitrary file write outside vendor via malicious transitive package name","vendor":"composer","product":"composer","tier":"tail","description":{"text":"Composer is a dependency Manager for the PHP language. Prior to 2.2.29 and 2.10.2, a maliciously crafted package from an untrusted repository other than Packagist.org or Private Packagist can cause Composer to write attacker-controlled files outside the vendor directory and outside the project during install or update by using an invalid package name that is not correctly validated before dependency-resolution results are written or installed. This issue is fixed in versions 2.2.29 and 2.10.2.","provenance":"source","from":"CVE.org"},"cvss":{"score":7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00138,"percentile":0.03228,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-787","name":"Out-of-bounds Write"}],"references":[{"url":"https://github.com/composer/composer/security/advisories/GHSA-499r-g7pc-vmp9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/composer/composer/commit/502c6c4f699802d9cf464728b3e8a95674f919a0","tags":["x_refsource_MISC"]},{"url":"https://github.com/composer/composer/commit/c50b1efd13ebd73f6dca19b31424c5a02bf93cc1","tags":["x_refsource_MISC"]},{"url":"https://github.com/composer/composer/releases/tag/2.10.2","tags":["x_refsource_MISC"]},{"url":"https://github.com/composer/composer/releases/tag/2.2.29","tags":["x_refsource_MISC"]}],"priority":{"score":5.5,"factors":[{"name":"EPSS percentile","points":0.65},{"name":"CVSS severity","points":4.9}]},"vendorSlug":"composer","affectedVersions":[{"vendor":"composer","product":"composer","versions":[">= 1.0, < 2.2.29",">= 2.3.0, < 2.10.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-07-09T14:32:00.579490Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"composer/composer","vulnerableRanges":[">=2.3.0, <2.10.2",">=1.0.0, <2.2.29"],"patched":["2.10.2","2.2.29"],"from":["GHSA-499r-g7pc-vmp9"],"provenance":"source"}],"summary":{"text":"Composer, the PHP dependency manager, contains a flaw in how it validates package names from untrusted repositories other than Packagist.org or Private Packagist, where an invalid name is not properly checked before resolution results are written or installed. An attacker who can supply a maliciously crafted package from such a repository can cause Composer to write attacker-controlled files outside the vendor directory and outside the project during install or update, which requires a local attack vector, high attack complexity, and user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:18:22Z"},"euvd":{"id":"EUVD-2026-42362","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-composer-cve-2026-59946","children":[{"from":"CVE-2026-59948","to":"CVE-2026-84361","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:composer/composer","fromFixed":"2.10.2","toFixed":"2.10.3","daysApart":55},{"kind":"same-code","provenance":"machine","files":["src/Composer/Package/Loader/ValidatingArrayLoader.php"],"commits":["https://github.com/composer/composer/commit/502c6c4f699802d9cf464728b3e8a95674f919a0","https://github.com/composer/composer/commit/c50b1efd13ebd73f6dca19b31424c5a02bf93cc1","https://github.com/composer/composer/commit/0aac50528e83ed635cf788333635897469440220","https://github.com/composer/composer/commit/199ad81a9cc6a2a5164ad79a8da26b2e19e521af"],"basis":"shared function","functions":["load"]}]}],"packageHistory":[{"cve":"CVE-2026-45793","published":"2026-07-15","fixed":"2.9.8","kev":false,"link":{"from":"CVE-2026-45793","to":"CVE-2026-59948","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:composer/composer","fromFixed":"2.9.8","toFixed":"2.10.2","daysApart":-7}]}},{"cve":"CVE-2026-59946","published":"2026-07-08","fixed":"2.10.2","kev":false},{"cve":"CVE-2026-59947","published":"2026-07-08","fixed":"2.10.2","kev":false},{"cve":"CVE-2026-59948","published":"2026-07-08","fixed":"2.10.2","kev":false},{"cve":"CVE-2026-59944","published":"2026-09-16","fixed":"2.10.3","kev":false,"link":{"from":"CVE-2026-59948","to":"CVE-2026-59944","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:composer/composer","fromFixed":"2.10.2","toFixed":"2.10.3","daysApart":70}]}},{"cve":"CVE-2026-84361","published":"2026-09-01","fixed":"2.10.3","kev":false}],"package":"Packagist:composer/composer"}}