CVE-2021-31154
HIGH 7.8CVSS 3.1Permissions bypass in pleaser
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.
- Published
- 27 May 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-340CWE-59CWE-668
- Also known as
- GHSA-pp74-39w2-v4w9RUSTSEC-2021-0102
- Sources
- NVDJSONOSV GHSA-pp74-39w2-v4w9JSONOSV RUSTSEC-2021-0102JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | RustSec | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.2 | AV:L/AC:L/Au:N/C:C/I:C/A:C |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | pleaseedit_project | pleaseeditcpe:2.3:a:pleaseedit_project:pleaseedit:*:*:*:*:*:*:*:* |
< 0.4 | 0.4 |
| OSV | crates.io | pleaser | < 0.4.0 | 0.4.0 |
| OSV | crates.io | pleaser | >= 0.0.0-0, < 0.4.0 | 0.4.0 |
References
- https://gitlab.com/edneville/please/-/tree/master/src/bin · Third Party Advisory, WEB
- https://www.openwall.com/lists/oss-security/2021/05/18/1 · Exploit, Mailing List, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-31154 · ADVISORY, WEB
- https://crates.io/crates/pleaser · WEB, PACKAGE
- https://gitlab.com/edneville/please · WEB
- https://rustsec.org/advisories/RUSTSEC-2021-0102.html · WEB, ADVISORY
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 27 May 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 27 May 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Aug 2021)