Vulnerability · Published Dec 30, 2025 · Assigned by GitHub_M
CVE-2025-67746Composer vulnerable to ANSI sequence injection
Low 1.3
In plain English
A low-severity injection in composer from composer. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 40% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.23 | composer | 2.9.3-r0 | ALPINE-CVE-2025-67746 |
| Alpine:v3.24 | composer | 2.9.3-r0 | ALPINE-CVE-2025-67746 |
| Debian:12 | composer | 2.5.5-1+deb12u3 | DEBIAN-CVE-2025-67746 |
| Debian:13 | composer | 2.8.8-1+deb13u1 | DEBIAN-CVE-2025-67746 |
| Debian:14 | composer | 2.9.3-1 | DEBIAN-CVE-2025-67746 |
| Packagist | composer/composer | 2.9.3 | GHSA-59pp-r3rg-353g |
| Packagist | composer/composer | 2.2.26 | GHSA-59pp-r3rg-353g |
| Ubuntu:25.10 | composer | no fix listed | UBUNTU-CVE-2025-67746 |
| Ubuntu:26.04:LTS | composer | no fix listed | UBUNTU-CVE-2025-67746 |
Affected products (as reported)
Weakness: CWE-74 · 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
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