CVE-2026-145738: Medium severity composer/cweagans/composer-patches vulnerability

Published Dec 6, 2026
·
Updated

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

1 affected component
composer/cweagans/composer-patches=2.0.0

Event History

Dec 6, 2026
CVE Published
via MITRE·06:45 AM
Data Sourced
via MITRE·06:45 AM
RemedyDescriptionWeakness
Data Sourced
via OSV·06:45 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

3

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203