7.8high
Local Privilege Escalation in sccache
- Severity
- 7.8high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.36% (higher than 32% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mozilla
- Also known as
- GHSA-x7fr-pg8f-93f5
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Mozilla sccache | before 0.4.0 | CVE List, NVD |
| sccache (crates.io) | before 0.4.0 | GitHub Advisory Database |
All scores
| CISA-ADP | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 8.4high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | high CVSS:4.0 | 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 |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
GitHub Advisory Database
Impact
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), this means a user running the sccache client can get root privileges.
Patches
Upgrade to 0.4.0
Workarounds
Don't run sccache server as root.
GitHub Security Lab number
GHSL-2023-046
NVD (es)
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.
References
| https://securitylab.github.com/advisories/GHSL-2023-046_ScCache | advisory, exploit, 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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-1521 changed 2024-11-26 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-x7fr-pg8f-93f5 changed 2024-11-26 | CC-BY-4.0 |
| NVD | CVE-2023-1521 changed 2026-06-17 | Public domain |