CVE-2021-31154 json
Permissions bypass in pleaser
published 5y ago modified 4mo ago also GHSA-pp74-39w2-v4w9 , RUSTSEC-2021-0102 , EUVD-2021-1822
- cvss
- 7.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 40%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- crates.io pleaser 0.4.0
- pleaseedit_project pleaseedit 0.4
- rust-pleaser Debian 14, Debian 13, Debian 12 0.4.1-1
debian advisories DEBIAN-CVE-2021-31154
Is CVE-2021-31154 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerExploit prediction
0.47% chance of exploitation in the next 30 days, higher than 40% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- openwall.com https://www.openwall.com/lists/oss-security/2021/05/18/1 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.2 | AV:L/AC:L/Au:N/C:C/I:C/A:C |
| OSV | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | pleaser | <0.4.0 >=0.0.0-0, <0.4.0 |
0.4.0 |
Classification
References
-
openwall.com
/lists/oss-security/2021/05/18/1
web, exploit, mailing-list, third-party-advisory
-
gitlab.com
/edneville/please/-/tree/master/src/bin
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-31154
advisory, web
-
crates.io
/crates/pleaser
web, package
-
gitlab.com
/edneville/please
web
-
rustsec.org
/advisories/RUSTSEC-2021-0102.html
web, advisory
Sources
- CVE List CVE-2021-31154
- GitHub Advisory GHSA-pp74-39w2-v4w9
- NVD CVE-2021-31154
- OSV RUSTSEC-2021-0102
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.