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

CVE-2021-31155: Permissions bypass in pleaser

August 25, 2021 (updated April 3, 2023)

Failure to normalize the umask in pleaser before 0.4.0 allows a local attacker to gain full root privileges if they are allowed to execute at least one command.

References

  • crates.io/crates/pleaser
  • github.com/advisories/GHSA-vc5p-j8vw-mc6x
  • gitlab.com/edneville/please
  • gitlab.com/edneville/please/-/tree/master/src/bin
  • nvd.nist.gov/vuln/detail/CVE-2021-31155
  • rustsec.org/advisories/RUSTSEC-2021-0101.html
  • www.openwall.com/lists/oss-security/2021/05/18/1

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

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-269: Improper Privilege Management
  • CWE-279: Incorrect Execution-Assigned Permissions

Source file

cargo/pleaser/CVE-2021-31155.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:14:41 +0000.