Home › CVE › Vulnerabilities
CVE-2026-145738 — cweagans Composer Patches
Research article
Composer Patches Plugin Allows Local Privilege Escalation
| CVE | CVE-2026-145738 |
|---|---|
| Vendor and product | cweagans Composer Patches |
| Published | December 06, 2026 22:40 UTC |
| Research cut-off | December 06, 2026 22:25 UTC |
| Sources reviewed | 3: NVD record (last modified 2026-12-06); CISA KEV catalog; vendor advisory page (seclists.org) |
Executive summary
The cweagans Composer Patches plugin 2.0.0 enables local users to elevate privileges by altering stored patches in temporary directories [1]. The CVSS 4.0 score is 5.2 MEDIUM, with a vector that reflects low access, low privilege, and high integrity impact [1]. The reviewed sources do not confirm any exploitation [2]. The sources do not list a fixed version for this CVE, so no update target is reported [1].
Key points
- The cweagans Composer Patches plugin 2.0.0 enables local users to elevate their privileges through changes made to patches in temporary directories [1].
- The CVSS 4.0 score is 5.2 MEDIUM, with a vector indicating low access, low privilege, and high integrity impact [1].
- CVE-2026-145738 is not listed in the CISA Known Exploited Vulnerabilities Catalog [2].
- The reviewed sources do not report exploitation [2].
- The sources do not list a fixed version for this CVE.
Vulnerability identification
| CVE ID | Vendor | Product | CWE | CVSS 4.0 | Published | Last Modified | Record Status |
|---|---|---|---|---|---|---|---|
| CVE-2026-145738 | cweagans | Composer Patches | CWE-379 | 5.2 MEDIUM, scored by cve@mitre.org (Secondary) | 2026-12-06T09:18:37 | 2026-12-06T09:18:37 | Received |
Vulnerability description
A local user can exploit this flaw to gain elevated privileges by changing the contents of files stored in designated temporary directories. This allows unauthorized modifications to these files, potentially leading to unintended behavior or privilege escalation [1].
Attack surface and exploitation prerequisites
The CVSS vector indicates that local access is required, with low privileges needed [1]. The vector marks user interaction as passive (UI:P) [1].
Impact analysis
The CVSS vector highlights a high impact on integrity, with low impact on confidentiality and availability [1]. The description suggests that the flaw may allow privilege escalation, though the exact consequences are not clearly defined [1].
Affected products and versions
| Affected Product | Affected Version | Fixed Version |
|---|---|---|
| cweagans Composer Patches | 2.0.0 | not listed |
Exploitation and threat intelligence status
CVE-2026-145738 is not included in the CISA Known Exploited Vulnerabilities Catalog as of December 6, 2026. The reviewed sources do not report any confirmed exploitation [2].
Detection and exposure assessment
To determine if a system is exposed, verify if the installed version of cweagans Composer Patches is 2.0.0 [1]. No specific detection steps are provided by the sources.
Remediation
The sources do not list a fixed version for this CVE. No mitigation steps are provided by the sources.
Remediation checklist
- Check if the installed version of cweagans Composer Patches is 2.0.0 [1].
- Monitor system logs for unusual activity.
Evidence gaps
- The sources do not describe the affected component's internals.
- The sources do not explain the root cause beyond the CWE name.
- The sources do not describe how the flaw works.
- The sources do not describe any exploitation scenarios or attack lifecycle.
- The sources do not mention indicators of compromise.
- The sources do not provide a workaround or compensating control.
References
- CVE-2026-145738 record. NIST National Vulnerability Database (NVD), 2026-12-06. https://nvd.nist.gov/vuln/detail/CVE-2026-145738. Accessed 2026-12-06.
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-12-06. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-12-06.
- Vendor bulletin page (seclists.org). seclists.org. https://seclists.org/oss-sec/2026/q4/1021. Accessed 2026-12-06.
Summary
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.
Severity breakdown
Medium · 5.2
An attacker with a normal user account can exploit this with local access if a user views or visits something.
- Attack from
- local access (a logged-in user, or a malicious file opened on the device)
- Attack complexity
- low (no special conditions)
- Special conditions
- none
- Login needed
- yes, a normal user account
- User action needed
- yes, a user must view or visit something
- Impact
- high on integrity, low on confidentiality and availability
- Impact on other systems
- low on confidentiality, integrity and availability
Weakness
- CWE-379: Creation of Temporary File in Directory with Insecure Permissions
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| cweagans Composer Patches | 2.0.0 | — |
References by type
Other references
Affected
- cweagans Composer Patches
Frequently asked questions
What is CVE-2026-145738?
The cweagans Composer Patches plugin 2.0.0 enables local users to elevate privileges by altering stored patches in temporary directories. The CVSS 4.0 score is 5.2 MEDIUM, with a vector that reflects low access, low privilege, and high integrity impact. The reviewed sources do not confirm any exploitation. The sources do not list a fixed version for this CVE, so no update target is reported. Weakness type: Creation of Temporary File in Directory with Insecure Permissions (CWE-379).
How severe is CVE-2026-145738?
CVE-2026-145738 has a CVSS 4.0 base score of 5.2 (medium), from the CNA (mitre.org). An attacker with a normal user account can exploit this with local access if a user views or visits something.
Is CVE-2026-145738 being exploited?
Not as far as is known: CVE-2026-145738 is not in CISA's Known Exploited Vulnerabilities catalog as of December 6, 2026.
Which versions are affected by CVE-2026-145738?
cweagans Composer Patches 2.0.0.
How do I fix CVE-2026-145738?
Check if the installed version of cweagans Composer Patches is 2.0.0. Monitor system logs for unusual activity.
Timeline & sources
- NVD: CVE-2026-145738 — cweagans Composer Patches
- oss-security: CVE-2026-145738: composer-patches vulnerable tmpdir handling