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.
Advisories

No advisories yet.

Fixes

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.


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 ...

History

Sun, 06 Dec 2026 07:00:00 +0000

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'}


Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-12-06T06:46:56.593Z

Reserved: 2026-12-06T06:45:13.537Z

Link: CVE-2026-145738

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses