CVE-2026-145738

Published Dec 6, 2026 CVSS 4.0 · 5.2 Medium EPSS n/a KEV · Not listed
Description
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.

Remediation

Vendor Solution

There is a pull request at https://github.com/cweagans/composer-patches/pull/680 that solves the remote ComposerDownloader problem, but not the cache problem.


Vendor Workaround

For now, overriding the system temporary directory used by php is an easy way to avoid both problems. This can be accomplished with something like php -d sys_temp_dir=/path/writable/only/by/me composer ...

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description 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.
Weaknesses CWE-379
References
Metrics cvssV4_0

{'score': 5.2, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:P/VC:L/VI:H/VA:L/SC:L/SI:L/SA:L'}

Subscriptions

No data.

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Dec 6, 2026, 6:46 AM
Reserved
Dec 6, 2026, 6:45 AM
Status
Received
Published
Dec 6, 2026, 9:18 AM
Modified
Dec 6, 2026, 9:18 AM