CVE-2026-145738: Medium severity composer/cweagans/composer-patches vulnerability
The cweagans composer-patches (aka Composer Patches) plugin 2.0.0 for Composer allows local users to gain privileges by modifying patches stored in the /tmp/composer-patches or /tmp/patches directory.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
The issue is described as exploitable by local users who can modify patch files stored in /tmp/composer-patches or /tmp/patches. Remote access is not described.
What must an attacker be able to do?
An attacker needs the ability to modify patches in either /tmp/composer-patches or /tmp/patches. The reported impact is privilege gain through those modified patches.
How can I identify potentially affected use?
Check whether Composer Patches plugin version 2.0.0 is in use and whether its patches are stored in /tmp/composer-patches or /tmp/patches. The available information does not state whether other versions or default configurations are affected.