CVE-2025-67746: Composer vulnerable to ANSI sequence injection
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.
Other sources
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.
— MITRE
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2025-67746?
CVE-2025-67746 has been classified as a moderate severity vulnerability due to potential information exposure through ANSI control characters.
How do I fix CVE-2025-67746?
To fix CVE-2025-67746, upgrade Composer to version 2.2.26 or 2.9.3 or later.
Which versions of Composer are affected by CVE-2025-67746?
CVE-2025-67746 affects Composer versions on the 2.x branch prior to 2.2.26 and 2.9.3.
What are the potential risks of CVE-2025-67746?
The potential risks of CVE-2025-67746 include the possibility of attackers injecting ANSI control characters in terminal output that can lead to information disclosure.
Can CVE-2025-67746 be exploited remotely?
Yes, CVE-2025-67746 can be exploited remotely by attackers controlling the sources that Composer downloads from.