# CVE-2023-1521: Local Privilege Escalation in sccache

- Severity: High 7.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 32% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-05-30T20:06:02.000Z
- Modified: 2026-06-17T05:28:08.833Z
- Also known as: GHSA-x7fr-pg8f-93f5
- Weaknesses: CWE-426
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: mozilla

## Description

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.


If 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.

(As written by CVE List.)

## Affected

- Mozilla sccache: before 0.4.0
- sccache (crates.io): before 0.4.0

## Every score

- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.4 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `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`

## References

- <https://securitylab.github.com/advisories/GHSL-2023-046_ScCache> (exploit, advisory, third-party-advisory)
- <https://github.com/advisories/GHSA-x7fr-pg8f-93f5> (third-party-advisory, vendor-advisory)
- <https://github.com/mozilla/sccache/security/advisories/GHSA-x7fr-pg8f-93f5> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-1521> (advisory)
- <https://github.com/mozilla/sccache> (package)
- <https://github.com/mozilla/sccache/releases/tag/v0.4.0> (web)

## Sources

- CVE List: [CVE-2023-1521](https://www.cve.org/CVERecord?id=CVE-2023-1521), CVE Terms of Use, modified 2024-11-26
- GitHub Advisory Database: [GHSA-x7fr-pg8f-93f5](https://github.com/advisories/GHSA-x7fr-pg8f-93f5), CC-BY-4.0, modified 2024-11-26
- NVD: [CVE-2023-1521](https://nvd.nist.gov/vuln/detail/CVE-2023-1521), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-1521 · Whole record: https://cve.day/CVE-2023-1521.json · Rebuilt by cve.day 2026-11-25T22:58:34.387Z
