Composer vulnerable to ANSI sequence injection
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
composer/composerPackagist | >= 2.0.0, < 2.2.26 | 2.2.26 |
composer/composerPackagist | >= 2.3.0, < 2.9.3 | 2.9.3 |
Affected products
6- osv-coords5 versionspkg:bitnami/composerpkg:composer/composer/composerpkg:rpm/opensuse/php-composer2&distro=openSUSE%20Leap%2015.6pkg:rpm/opensuse/php-composer2&distro=openSUSE%20Tumbleweedpkg:rpm/suse/php-composer2&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Web%20and%20Scripting%2015%20SP7
>= 2.0.0, < 2.2.26+ 4 more
- (no CPE)range: >= 2.0.0, < 2.2.26
- (no CPE)range: >= 2.0.0, < 2.2.26
- (no CPE)range: < 2.6.4-150600.3.6.1
- (no CPE)range: < 2.9.3-1.1
- (no CPE)range: < 2.6.4-150600.3.6.1
Patches
Vulnerability mechanics
References
7- github.com/advisories/GHSA-59pp-r3rg-353gghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-67746ghsaADVISORY
- github.com/composer/composer/commit/1d40a95c9d39a6b7f80d404ab30336c586da9917ghsax_refsource_MISCWEB
- github.com/composer/composer/commit/5db1876a76fdef76d3c4f8a27995c434c7a43e71ghsax_refsource_MISCWEB
- github.com/composer/composer/releases/tag/2.2.26ghsax_refsource_MISCWEB
- github.com/composer/composer/releases/tag/2.9.3ghsax_refsource_MISCWEB
- github.com/composer/composer/security/advisories/GHSA-59pp-r3rg-353gghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.