Local Privilege Escalation in sccache
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and GitHub. Impact type from CWE-426.
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. 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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Mozilla | sccache | before 0.4.0 | 0.4.0 | Patch available | CNA |
| — | sccache (crates.io) | before 0.4.0 | 0.4.0 | Patch available | GHSA-x7fr-pg8f-93f5 |
- sccache VendorMozilla Affected before 0.4.0 Fixed in 0.4.0 Patch available CNA
- sccache (crates.io) Vendor— Affected before 0.4.0 Fixed in 0.4.0 Patch available GHSA-x7fr-pg8f-93f5
Remediation
- Fix · CNA sccache (Mozilla) Fixed in 0.4.0
- Fix · GHSA-x7fr-pg8f-93f5 sccache (crates.io) Fixed in 0.4.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2023-1521
- 2026-10-03 Alias added: GHSA-x7fr-pg8f-93f5
References
Advisory 2
Sources
- CVE-2023-1521 · CVE Program
- CVE-2023-1521 · NVD
- FIRST EPSS
- GHSA-x7fr-pg8f-93f5 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences