CVE-2021-31155
HIGH 7.8CVSS 3.1Permissions bypass in pleaser
Failure to normalize the umask in please before 0.4 allows a local attacker to gain full root privileges if they are allowed to execute at least one command.
- Published
- 27 May 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-269CWE-279CWE-732
- Also known as
- GHSA-vc5p-j8vw-mc6xRUSTSEC-2021-0101
- Sources
- NVDJSONOSV GHSA-vc5p-j8vw-mc6xJSONOSV RUSTSEC-2021-0101JSON
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 | umask_project | umaskcpe:2.3:a:umask_project:umask:*:*:*:*:*:*:*:* |
< 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-31155 · ADVISORY, WEB
- https://crates.io/crates/pleaser · WEB, PACKAGE
- https://gitlab.com/edneville/please · WEB
- https://rustsec.org/advisories/RUSTSEC-2021-0101.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)