Vulnerability
CVE-2025-67746
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.
14 advisories report this vulnerability, across 8 ecosystems.
Advisories
-
ALAS2023-2026-1365
Amazon Linux 2023 - ALAS2023-2026-1365: Low priority package update for composer
-
ALPINE-CVE-2025-67746
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…
- ALPINE-EDGE-CVE-2025-67746
-
DEBIAN-CVE-2025-67746
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…
-
GHSA-59pp-r3rg-353g
Composer is vulnerable to ANSI sequence injection
-
RHSA-2026:8165
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
-
SUSE-SU-2026:0825-1
Security update for php-composer2
-
SUSE-SU-2026:23116-1
Security update for php-composer2
-
SUSE-SU-2026:23138-1
Security update for php-composer2
-
SUSE-SU-2026:3105-1
Security update for php-composer2
-
SUSEVEX-CVE-2025-67746
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…
-
UBUNTU-CVE-2025-67746
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…
-
openSUSE-SU-2026:10054-1
php-composer2-2.9.3-1.1 on GA media
-
openSUSE-SU-2026:21520-1
Security update for php-composer2
References
- https://github.com/composer/composer/commit/1d40a95c9d39a6b7f80d404ab30336c586da9917
- https://github.com/composer/composer/commit/5db1876a76fdef76d3c4f8a27995c434c7a43e71
- https://github.com/composer/composer/releases/tag/2.2.26
- https://github.com/composer/composer/releases/tag/2.9.3
- https://github.com/composer/composer/security/advisories/GHSA-59pp-r3rg-353g