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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| composer | composer | >= 2.0, < 2.2.26, >= 2.3, < 2.9.3 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | composer | 2.9.3-1 | — |
| Debian 13 | composer | 2.8.8-1+deb13u1 | — |
| Debian 12 | composer | 2.5.5-1+deb12u3 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.04 LTS | composer | No fix yet | — |
| Ubuntu 25.10 | composer | No fix yet | — |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 24.04 LTS | composer | No fix yet | — |
| Ubuntu Pro 22.04 LTS | composer | No fix yet | — |
| Ubuntu Pro 20.04 LTS | composer | No fix yet | — |
| Ubuntu Pro 18.04 LTS | composer | No fix yet | — |
| Ubuntu Pro 16.04 LTS | composer | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Hardened Images 1 | composer | 2.9.7-1.hum1 | RHSA-2026:8165 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP7 | php-composer2 | 2.6.4-150600.3.6.1 | SUSE-SU-2026:3105-1, SUSE-SU-2026:0825-1 |
| SLES 15 SP6 | php-composer2 | 2.6.4-150600.3.12.1 | SUSE-SU-2026:3105-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 16.0 | php-composer2 | 2.8.9-160000.4.1 | SUSE-SU-2026:23138-1, SUSE-SU-2026:23116-1 |
| SLES for SAP 15 SP6 | php-composer2 | 2.6.4-150600.3.12.1 | SUSE-SU-2026:3105-1 |
| SLES 16.0 | php-composer2 | 2.8.9-160000.4.1 | SUSE-SU-2026:23138-1, SUSE-SU-2026:23116-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | php-composer2 | 2.9.3-1.1 | openSUSE-SU-2026:10054-1 |
| openSUSE Leap 16.0 | php-composer2 | 2.8.9-160000.4.1 | openSUSE-SU-2026:21520-1 |
| openSUSE Leap 15.6 | php-composer2 | 2.6.4-150600.3.6.1 | SUSE-SU-2026:0825-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | composer | 2.9.3-r0 | — |
| Alpine v3.23 | composer | 2.9.3-r0 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | composer | 2.9.3-1.amzn2023.0.1 | ALAS2023-2026-1365 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | composer/composer | >= 2.0.0, < 2.2.26 | 2.2.26 | GHSA-59pp-r3rg-353g |
| Packagist | composer/composer | >= 2.3.0, < 2.9.3 | 2.9.3 | GHSA-59pp-r3rg-353g |
Advisories 8
- RHSA-2026:8165 Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update Red Hat Security Advisories (RHSA) · Oct 6, 2026
- SUSE-SU-2026:23138-1 Security update for php-composer2 SUSE / openSUSE Security Updates · Aug 14, 2026
- SUSE-SU-2026:23116-1 Security update for php-composer2 SUSE / openSUSE Security Updates · Aug 14, 2026
- openSUSE-SU-2026:21520-1 Security update for php-composer2 SUSE / openSUSE Security Updates · Aug 4, 2026
- SUSE-SU-2026:3105-1 Security update for php-composer2 SUSE / openSUSE Security Updates · Jul 18, 2026
- openSUSE-SU-2026:10054-1 php-composer2-2.9.3-1.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2026:0825-1 Security update for php-composer2 SUSE / openSUSE Security Updates · Mar 6, 2026
- ALAS2023-2026-1365 Low: composer security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Jan 23, 2026
References
- https://github.com/composer/composer/security/advisories/GHSA-59pp-r3rg-353g
- 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