Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. pleaser
  4. ›
  5. CVE-2021-31154

CVE-2021-31154: Permissions bypass in pleaser

August 25, 2021 (updated April 3, 2023)

pleaseedit in pleaser before 0.4.0 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.

References

  • crates.io/crates/pleaser
  • github.com/advisories/GHSA-pp74-39w2-v4w9
  • gitlab.com/edneville/please
  • gitlab.com/edneville/please/-/tree/master/src/bin
  • nvd.nist.gov/vuln/detail/CVE-2021-31154
  • rustsec.org/advisories/RUSTSEC-2021-0102.html
  • www.openwall.com/lists/oss-security/2021/05/18/1

Code Behaviors & Features

Detect and mitigate CVE-2021-31154 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.4.0

Fixed versions

  • 0.4.0

Solution

Upgrade to version 0.4.0 or above.

Impact 7.8 HIGH

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-340: Generation of Predictable Numbers or Identifiers
  • CWE-59: Improper Link Resolution Before File Access ('Link Following')

Source file

cargo/pleaser/CVE-2021-31154.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:14 +0000.