CVE-2020-15145: Composer-Setup Windows - Privilege Escalation
- Cve: CVE-2020-15145
- Name: Composer-Setup Windows - Privilege Escalation
- Description: In Composer-Setup for Windows before version 6.0.0, if the developer's computer is shared with other users, a local attacker may be able to exploit the following scenarios. 1. A local regular user may modify the existing `C:\ProgramData\ComposerSetup\bin\composer.bat` in order to get elevated command execution when composer is run by an administrator. 2. A local regular user may create a specially crafted dll in the `C:\ProgramData\ComposerSetup\bin` folder in order to get Local System privileges. See: https://itm4n.github.io/windows-server-netman-dll-hijacking. 3. If the directory of the php.exe selected by the user is not in the system path, it is added without checking that it is admin secured, as per Microsoft guidelines. See: https://msrc-blog.microsoft.com/2018/04/04/triaging-a-dll-planting-vulnerability.
- Impact: Local attackers can escalate privileges or execute arbitrary code with SYSTEM privileges on shared systems.
- Remediation: Update to version 6.0.0 or later, and follow best practices for secure file permissions and DLL loading.
- Vulnerability type: dll_hijacking
- Vulnerability impact: privilege_escalation, remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.2
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
- Epss score: 0.00427
- Epss percentile: 0.37716
- Assignee: [email protected]
- Published at: 2020-08-14T17:15:14Z
- Age in days: 2293
- Modified at: 2026-06-17T02:56:08Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2020-15145
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-276 | Incorrect Default Permissions |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/composer/windows-setup/commit/ca9f1435d368e3377e82d60ef0c7b795afa9f804 | nvd | Patch, Third Party Advisory |
| https://github.com/composer/windows-setup/security/advisories/GHSA-wgrx-r3qv-332c | nvd | Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| getcomposer:composer-setup | < 6.0.0 | no | nvd | /v1/products/getcomposer/composer-setup |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| composer/windows-setup | commit, security_advisory | yes | /v1/repositories/composer/windows-setup |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts