CVE-2021-31154: Please - Privilege Escalation
- Cve: CVE-2021-31154
- Name: Please - Privilege Escalation
- Description: pleaseedit in please before 0.4 uses predictable temporary filenames in /tmp and the target directory. This allows a local attacker to gain full root privileges by staging a symlink attack.
- Impact: Local attackers can escalate privileges to root by exploiting predictable temporary filenames and symlink attacks.
- Remediation: Update to the latest version where this issue is fixed, or modify the code to use secure temporary file creation methods.
- Vulnerability type: privilege_escalation
- Vulnerability impact: privilege_escalation
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.8
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00468
- Epss percentile: 0.41062
- Assignee: [email protected]
- Published at: 2021-05-27T13:15:08Z
- Age in days: 2007
- Modified at: 2026-06-17T03:51:20Z
- Patch available: yes
- Public exploits total: 1
- References total: 2
- Products total: 1
- Oss: yes
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-31154
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, projects total, projects, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-668 | Exposure of Resource to Wrong Sphere |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://www.openwall.com/lists/oss-security/2021/05/18/1 | nvd | 2021-05-27 |
References
| Url | Source | Tags |
|---|---|---|
| https://www.openwall.com/lists/oss-security/2021/05/18/1 | nvd | Exploit, Mailing List, Third Party Advisory |
| https://gitlab.com/edneville/please/-/tree/master/src/bin | nvd | Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| pleaseedit_project:pleaseedit | < 0.4 | no | nvd | /v1/products/pleaseedit_project/pleaseedit |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2021-05-27
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts