{"id":"CVE-2023-1521","aliases":["CVE-2023-1521","GHSA-x7fr-pg8f-93f5"],"related":[],"kind":"vulnerability","state":"published","title":"Local Privilege Escalation in sccache","summary":"On 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\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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"On 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\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.","source":"cvelist"},{"lang":"en","text":"### 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","format":"markdown","source":"ghsa"},{"lang":"es","text":"En Linux, el cliente sccache puede ejecutar código arbitrario con los privilegios de un servidor sccache local, precargando el código en una biblioteca compartida que se pasa a LD_PRELOAD. Si el servidor se ejecuta como superusuario (que es el valor predeterminado al instalar el paquete snap https://snapcraft.io/sccache ), esto significa que un usuario que ejecuta el cliente sccache puede obtener privilegios de superusuario.","source":"nvd"}],"published":"2023-05-30T20:06:02.000Z","modified":"2026-06-17T05:28:08.833Z","severity":{"scorer":"CISA-ADP","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":"CISA-ADP","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:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.4,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"}],"cwes":["CWE-426"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"0.4.0","status":"affected"}],"vendor":"Mozilla","product":"sccache","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","fixed":"0.4.0","status":"affected"}],"vendor":"mozilla","product":"sccache","cpe":"cpe:2.3:a:mozilla:sccache:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.4.0"}],"ecosystem":"crates.io","package":"sccache","purl":"pkg:cargo/sccache","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.4.0"}],"vendor":"mozilla","product":"sccache","cpe":"cpe:2.3:a:mozilla:sccache:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://securitylab.github.com/advisories/GHSL-2023-046_ScCache","tags":["advisory","exploit","third-party-advisory"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/advisories/GHSA-x7fr-pg8f-93f5","tags":["third-party-advisory","vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/mozilla/sccache/security/advisories/GHSA-x7fr-pg8f-93f5","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-1521","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/mozilla/sccache","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/mozilla/sccache/releases/tag/v0.4.0","tags":["web"],"sources":["ghsa"]}],"credits":["Paolo Tranquilli (@redsun82)"],"assigner":"mozilla","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2024-11-26T20:35:46.133Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-1521","url":"https://www.cve.org/CVERecord?id=CVE-2023-1521","licence":"CVE Terms of Use","modified":"2024-11-26T20:45:48.176Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-x7fr-pg8f-93f5","url":"https://github.com/advisories/GHSA-x7fr-pg8f-93f5","licence":"CC-BY-4.0","modified":"2024-11-26T18:57:08.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-1521","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-1521","licence":"Public domain","modified":"2026-06-17T05:28:08.833Z"}],"updatedAt":"2026-11-25T22:58:34.387Z","epss":{"score":0.00363,"percentile":0.32155,"date":"2026-12-01T12:00:22.000Z"}}