{"id":"CVE-2023-1521","aliases":["GHSA-x7fr-pg8f-93f5"],"url":"https://o3.security/vulnerability/CVE-2023-1521","summary":"sccache vulnerable to privilege escalation if server is run as root","details":"### Impact\n\nOn Linux the `sccache` client can execute arbitrary code with the privileges of a local `sccache` server, by preloading the code in a shared library passed to `LD_PRELOAD`.\n\nIf the server is run as root (which is the default when installing the [snap package](https://snapcraft.io/sccache)), this means a user running the `sccache` client can get root privileges.\n\n\n### Patches\nUpgrade to 0.4.0\n\n### Workarounds\nDon't run sccache server as root. \n\n###  GitHub Security Lab number\n\nGHSL-2023-046","published":"2024-11-26T12:15:18.203Z","modified":"2026-04-10T04:54:22.579367Z","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":0,"affectedPackages":[{"ecosystem":"crates.io","name":"sccache","fixedVersion":"0.4.0"}],"fix":null,"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-x7fr-pg8f-93f5"},{"type":"EVIDENCE","url":"https://securitylab.github.com/advisories/GHSL-2023-046_ScCache"},{"type":"WEB","url":"https://github.com/mozilla/sccache/security/advisories/GHSA-x7fr-pg8f-93f5"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-1521"},{"type":"PACKAGE","url":"https://github.com/mozilla/sccache"},{"type":"WEB","url":"https://github.com/mozilla/sccache/releases/tag/v0.4.0"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-04-10T04:54:22.579367Z"}}