{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-59948","id":"CVE-2026-59948","title":"Composer: Arbitrary file write outside vendor via malicious transitive package name","description":"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 dependen","descriptionLong":"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.","published":"2026-07-08T19:33:48.414Z","updated":"2026-10-28T02:31:04.868162371Z","reserved":"2026-07-07T18:49:15.607Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"github.com"},{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["composer"],"affectedProducts":[{"vendor":"composer","product":"composer","defaultStatus":null,"versions":[{"version":">= 1.0, < 2.2.29","status":"affected"},{"version":">= 2.3.0, < 2.10.2","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"composer/composer","purl":"pkg:composer/composer/composer","ranges":[">=2.3.0 <2.10.2",">=1.0.0 <2.2.29"],"fixed":["2.10.2","2.2.29"],"advisory":"GHSA-499r-g7pc-vmp9"}],"cwes":["CWE-22","CWE-787"],"aliases":["BIT-composer-2026-59948","GHSA-499r-g7pc-vmp9"],"references":[{"url":"https://github.com/composer/composer/security/advisories/GHSA-499r-g7pc-vmp9","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/composer/composer/commit/502c6c4f699802d9cf464728b3e8a95674f919a0","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/composer/composer/commit/c50b1efd13ebd73f6dca19b31424c5a02bf93cc1","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/composer/composer/releases/tag/2.10.2","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/composer/composer/releases/tag/2.2.29","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59948.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59948","tags":["advisory"]},{"url":"https://github.com/composer/composer","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00138,"epssPercentile":0.03256,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-59948","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59948","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-59948","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-499r-g7pc-vmp9","ok":true,"note":"GHSA-499r-g7pc-vmp9"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-59948","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}