1.3low
Composer vulnerable to ANSI sequence injection
- Severity
- 1.3low CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.49% (higher than 43% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-59pp-r3rg-353gBIT-COMPOSER-2025-67746
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
| Product or package | Versions | Reported by |
|---|---|---|
| composer composer | >= 2.0, < 2.2.26, >= 2.3, < 2.9.3 | CVE List |
| composer/composer (Packagist) | from 2.0.0 before 2.2.26, from 2.3.0 before 2.9.3 | GitHub Advisory Database |
| getcomposer composer | from 2.0.0 before 2.2.26, from 2.3.0 before 2.9.3 | NVD |
| composer (Bitnami) | from 2.0.0 before 2.2.26, from 2.3.0 before 2.9.3 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 1.3low CVSS:4.0 | 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 |
| GitHub | low CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:U |
| NVD | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L |
| Bitnami Vulnerability Database | medium rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
Impact
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 Composer still published a CVE as it has potential for abuse, and Composer wants to be on the safe side informing users that they should upgrade.
Patches
2.2.26 for 2.2 LTS or 2.9.3 for mainline.
NVD (es)
Composer es un gestor de dependencias para PHP. En versiones de la rama 2.x anteriores a la 2.2.26 y 2.9.3, atacantes que controlan fuentes remotas de las que Composer descarga podrían de alguna manera inyectar caracteres de control ANSI en la salida de terminal de varios comandos de Composer, causando una salida distorsionada y potencialmente llevando a confusión o DoS de la aplicación de terminal. No hay un exploit probado y esto tiene por lo tanto una baja severidad, pero aún publicamos un CVE ya que tiene potencial de abuso, y queremos estar seguros informando a los usuarios de que deben actualizar. Las versiones 2.2.26 y 2.9.3 contienen un parche para el problema.
References
| https://github.com/composer/composer/security/advisories/GHSA-59pp-r3rg-353g | advisory, vendor-advisory, web | |
| https://github.com/composer/composer/commit/1d40a95c9d39a6b7f80d404ab30336c586da9917 | fix, patch, web | |
| https://github.com/composer/composer/commit/5db1876a76fdef76d3c4f8a27995c434c7a43e71 | fix, patch, web | |
| https://github.com/composer/composer/releases/tag/2.2.26 | article, product, release-notes, web | |
| https://github.com/composer/composer/releases/tag/2.9.3 | article, product, release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-67746 | advisory, web | |
| https://github.com/composer/composer | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-67746 changed 2025-12-30 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-59pp-r3rg-353g changed 2026-02-03 | CC-BY-4.0 |
| NVD | CVE-2025-67746 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-COMPOSER-2025-67746 changed 2026-09-10 | Apache-2.0 |