CVE-2025-67746
JSON

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 packageVersionsReported by
composer composer>= 2.0, < 2.2.26, >= 2.3, < 2.9.3CVE List
composer/composer (Packagist)from 2.0.0 before 2.2.26, from 2.3.0 before 2.9.3GitHub Advisory Database
getcomposer composerfrom 2.0.0 before 2.2.26, from 2.3.0 before 2.9.3NVD
composer (Bitnami)from 2.0.0 before 2.2.26, from 2.3.0 before 2.9.3Bitnami Vulnerability Database

All scores

GitHub_M1.3low CVSS:4.0CVSS: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
GitHublow CVSS:4.0CVSS: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
NVD4.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
Bitnami Vulnerability Databasemedium rating

Classification

CWE-74

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

Sources

SourceRecordLicence
CVE ListCVE-2025-67746 changed 2025-12-30CVE Terms of Use
GitHub Advisory DatabaseGHSA-59pp-r3rg-353g changed 2026-02-03CC-BY-4.0
NVDCVE-2025-67746 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-COMPOSER-2025-67746 changed 2026-09-10Apache-2.0