CVE-2025-67746
Composer vulnerable to ANSI sequence injection
Reported by github_m · Published December 30, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| composer | getcomposer | 2.9.3, 2.2.26 |
| composer | Bitnami | 2.9.3, 2.2.26 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| composer | composer | >= 2.0, < 2.2.26, >= 2.3, < 2.9.3 |
| composer | composer | 2.0, 2.3 |
| amazon:2023 | composer | 0 |
| composer | composer | 2.0.0, 2.3.0 |
| alpine | composer | 0 |
Timeline
- Dec 30, 2025 CVE Published
- Dec 30, 2025 CVE Updated
- Dec 31, 2025 EPSS Score (30 in total, the first dated here)
- Jan 14, 2026 PoC Published (2 in total, the first dated here)
- Mar 17, 2026 Security Advisory
- Mar 26, 2026 Coalition ESS Score (2 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-67746
vulnetix vdb fixes CVE-2025-67746
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-67746/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/composer/composer/security/advisories/GHSA-59pp-r3rg-353g x_refsource_CONFIRM
- https://github.com/composer/composer/commit/1d40a95c9d39a6b7f80d404ab30336c586da9917 x_refsource_MISC
- https://github.com/composer/composer/commit/5db1876a76fdef76d3c4f8a27995c434c7a43e71 x_refsource_MISC
- https://github.com/composer/composer/releases/tag/2.2.26 x_refsource_MISC
- https://github.com/composer/composer/releases/tag/2.9.3 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2025-67746 advisory
- https://github.com/advisories/GHSA-59pp-r3rg-353g advisory
- https://github.com/composer/composer url