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

CVE-2023-46277: Pleaser privilege escalation vulnerability

October 20, 2023 (updated September 12, 2024)

please (aka pleaser) through 0.5.4 allows privilege escalation through the TIOCSTI and/or TIOCLINUX ioctl. (If both TIOCSTI and TIOCLINUX are disabled, this cannot be exploited.)

Here is how to see it in action:

$ cd "$(mktemp -d)"
$ git clone --depth 1 https://gitlab.com/edneville/please.git
$ cd please/
$ git rev-parse HEAD  # f3598f8fae5455a8ecf22afca19eaba7be5053c9
$ cargo test && cargo build --release
$ echo "[${USER}_as_nobody]"$'\nname='"${USER}"$'\ntarget=nobody\nrule=.*\nrequire_pass=false' | sudo tee /etc/please.ini
$ sudo chown root:root ./target/release/please
$ sudo chmod u+s ./target/release/please
$ cat <<TIOCSTI_C_EOF | tee TIOCSTI.c

References

  • github.com/advisories/GHSA-cgf8-h3fp-h956
  • github.com/rustsec/advisory-db/pull/1798
  • gitlab.com/edneville/please
  • gitlab.com/edneville/please/-/issues/13
  • gitlab.com/edneville/please/-/merge_requests/69
  • nvd.nist.gov/vuln/detail/CVE-2023-46277
  • rustsec.org/advisories/RUSTSEC-2023-0066.html

Code Behaviors & Features

Detect and mitigate CVE-2023-46277 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 up to 0.5.4

Solution

Unfortunately, there is no solution available yet.

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

Source file

cargo/pleaser/CVE-2023-46277.yml

Spotted a mistake? Edit the file on GitLab.

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

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