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.
Published: 2026-12-06
Score: 5.2 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

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

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


Subscriptions

No data.

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

Status : Received

Published: 2026-12-06T09:18:37.120

Modified: 2026-12-06T09:18:37.120

Link: CVE-2026-145738

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses