CVE-2025-67746

NameCVE-2025-67746
DescriptionComposer 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
composer (PTS)bullseye (security), bullseye2.0.9-2+deb11u4vulnerable
bookworm, bookworm (security)2.5.5-1+deb12u2vulnerable
trixie2.8.8-1vulnerable
forky2.9.2-1vulnerable
sid2.9.3-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
composersource(unstable)2.9.3-1

Notes

[trixie] - composer <no-dsa> (Minor issue)
[bookworm] - composer <no-dsa> (Minor issue)
[bullseye] - composer <postponed> (Minor issue, terminal control characters sanitization)
https://github.com/composer/composer/security/advisories/GHSA-59pp-r3rg-353g
Fixed by: https://github.com/composer/composer/commit/5db1876a76fdef76d3c4f8a27995c434c7a43e71 (2.9.3)
Fixed by: https://github.com/composer/composer/commit/1d40a95c9d39a6b7f80d404ab30336c586da9917 (2.2.26)

Search for package or bug name: Reporting problems