CVE-2025-67746 json
Composer vulnerable to ANSI sequence injection
published 2025-12-30 10 mo ago modified 2026-09-10 59 d ago also BIT-composer-2025-67746 , EUVD-2025-205815 , GHSA-59pp-r3rg-353g
- cvss
- 4.3
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 39%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- packagist composer/composer 2.2.26, 2.9.3
- bitnami composer 2.2.26, 2.9.3
- getcomposer composer 2.2.26, 2.9.3
- composer Debian 12 2.5.5-1+deb12u3
- composer Debian 13 2.8.8-1+deb13u1
- composer Debian 14 2.9.3-1
debian advisories DEBIAN-CVE-2025-67746
- composer hummingbird 1 2.9.7-1.hum1
red hat advisories RHSA-2026:8165
- php-composer2 SLES 16.0, SLES for SAP applications 16.0 2.8.9-160000.4.1
- php-composer2 SLES for SAP 15 SP6, SLES 15 SP6-LTSS, SLE Module for Web and Scripting 15 SP7 2.6.4-150600.3.12.1
- php-composer2 SLE Module for Web and Scripting 15 SP7, openSUSE Leap 15.6 2.6.4-150600.3.6.1
suse advisories SUSE-SU-2026:23116-1SUSE-SU-2026:23138-1SUSE-SU-2026:3105-1SUSE-SU-2026:0825-1
- php-composer2 openSUSE Leap 16.0 2.8.9-160000.4.1
- php-composer2 openSUSE Tumbleweed 2.9.3-1.1
opensuse advisories openSUSE-SU-2026:21520-1openSUSE-SU-2026:10054-1
- composer Alpine 3.24, Alpine 3.23 2.9.3-r0
alpine advisories ALPINE-CVE-2025-67746
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-67746 updated cvss 3.5
composer: Composer: Terminal output manipulation leading to Denial of Service
-
Red Hat Hardened Images composer 2.9.7-1.hum1fixed: vendor fix RHSA-2026:8165
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 10 mo ago
Exploit prediction
0.45% chance of exploitation in the next 30 days, higher than 39% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 1.3 | 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 |
| CNA | 4.0 | 1.3 | 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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | 3.1 | 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L |
| OSV | 3.1 | 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | composer/composer | >=2.0.0, <2.2.26 >=2.3.0, <2.9.3 |
2.2.26 2.9.3 |
| bitnami | composer | >=2.0.0, <2.2.26 >=2.3.0, <2.9.3 |
2.2.26 2.9.3 |
Affected products
- composer composer
Classification
- Weakness
-
- CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component
References
-
github.com
/composer/composer/commit/1d40a95c9d39a6b7f80d404ab30336c586da9917
web, patch
-
github.com
/composer/composer/commit/5db1876a76fdef76d3c4f8a27995c434c7a43e71
web, patch
-
github.com
/composer/composer/security/advisories/GHSA-59pp-r3rg-353g
web, vendor-advisory, advisory
-
github.com
/composer/composer/releases/tag/2.2.26
web, product, release-notes, article
-
github.com
/composer/composer/releases/tag/2.9.3
web, product, release-notes, article
-
nvd.nist.gov
/vuln/detail/CVE-2025-67746
advisory, web
-
github.com
/composer/composer
package
Sources
- CVE List CVE-2025-67746
- GitHub Advisory GHSA-59pp-r3rg-353g
- NVD CVE-2025-67746
- OSV BIT-composer-2025-67746
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.