{"id":"CVE-2025-67746","published":"2025-12-30T16:11:04Z","modified":"2025-12-30T17:30:04Z","title":"Composer vulnerable to ANSI sequence injection","vendor":"composer","product":"composer","tier":"tail","description":{"text":"Composer is a dependency manager for PHP. In versions on the 2.x branch prior to 2.2.26 and 2.9.3, attackers controlling remote sources that Composer downloads from might in some way inject ANSI control characters in the terminal output of various Composer commands, causing mangled output and potentially leading to confusion or DoS of the terminal application. There is no proven exploit and this has thus a low severity but we still publish a CVE as it has potential for abuse, and we want to be on the safe side informing users that they should upgrade. Versions 2.2.26 and 2.9.3 contain a patch for the issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":1.3,"severity":"LOW","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00453,"percentile":0.40249,"provenance":"source"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"references":[{"url":"https://github.com/composer/composer/security/advisories/GHSA-59pp-r3rg-353g","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/composer/composer/commit/1d40a95c9d39a6b7f80d404ab30336c586da9917","tags":["x_refsource_MISC"]},{"url":"https://github.com/composer/composer/commit/5db1876a76fdef76d3c4f8a27995c434c7a43e71","tags":["x_refsource_MISC"]},{"url":"https://github.com/composer/composer/releases/tag/2.2.26","tags":["x_refsource_MISC"]},{"url":"https://github.com/composer/composer/releases/tag/2.9.3","tags":["x_refsource_MISC"]}],"priority":{"score":9.0,"factors":[{"name":"EPSS percentile","points":8.05},{"name":"CVSS severity","points":0.91}]},"vendorSlug":"composer","affectedVersions":[{"vendor":"composer","product":"composer","versions":[">= 2.0, < 2.2.26",">= 2.3, < 2.9.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-12-30T17:17:14.852114Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"composer/composer","vulnerableRanges":[">=2.0.0, <2.2.26",">=2.3.0, <2.9.3"],"patched":["2.2.26","2.9.3"],"from":["GHSA-59pp-r3rg-353g"],"provenance":"source"}],"summary":{"text":"Composer, the PHP dependency manager, fails to neutralise ANSI control characters in the terminal output of several of its commands on the 2.x branch before 2.2.26 and 2.9.3, so content from remote sources it downloads can reach the terminal unfiltered. An attacker who controls a remote source that Composer fetches from can cause mangled terminal output and possibly disrupt the terminal application, and the attack requires only low privileges and network access to the source, with no user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:14:22Z"},"euvd":{"id":"EUVD-2025-205815","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-24821","published":"2024-02-08","fixed":"2.7.0","kev":false},{"cve":"CVE-2024-35241","published":"2024-06-10","fixed":"2.7.7","kev":false,"link":{"from":"CVE-2024-35241","to":"CVE-2025-67746","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:composer/composer","fromFixed":"2.2.24","toFixed":"2.2.26","daysApart":568}]}},{"cve":"CVE-2024-35242","published":"2024-06-10","fixed":"2.7.7","kev":false},{"cve":"CVE-2025-67746","published":"2025-12-30","fixed":"2.9.3","kev":false},{"cve":"CVE-2026-40176","published":"2026-04-15","fixed":"2.9.6","kev":false,"link":{"from":"CVE-2025-67746","to":"CVE-2026-40176","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:composer/composer","fromFixed":"2.9.3","toFixed":"2.9.6","daysApart":106}]}},{"cve":"CVE-2026-40261","published":"2026-04-15","fixed":"2.9.6","kev":false,"link":{"from":"CVE-2025-67746","to":"CVE-2026-40261","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:composer/composer","fromFixed":"2.9.3","toFixed":"2.9.6","daysApart":106}]}},{"cve":"CVE-2026-45793","published":"2026-07-15","fixed":"2.9.8","kev":false}],"package":"Packagist:composer/composer"}}