{"id":"GHSA-x7fr-pg8f-93f5","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","aliases":["CVE-2023-1521"],"modified":"2024-11-26T18:57:08Z","published":"2023-05-30T20:06:02Z","database_specific":{"cwe_ids":["CWE-426"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2023-05-30T20:06:02Z","nvd_published_at":"2024-11-26T12:15:18Z"},"references":[{"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"},{"type":"ADVISORY","url":"https://securitylab.github.com/advisories/GHSL-2023-046_ScCache"}],"affected":[{"package":{"name":"sccache","ecosystem":"crates.io","purl":"pkg:cargo/sccache"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.4.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/05/GHSA-x7fr-pg8f-93f5/GHSA-x7fr-pg8f-93f5.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P"}]}