CVE-2023-1521
Local Privilege Escalation in sccache
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.
INFO
Published Date :
Nov. 26, 2024, 12:15 p.m.
Last Modified :
Oct. 15, 2025, 5:49 p.m.
Remotely Exploit :
No
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | HIGH | 134c704f-9b21-4f2e-91b3-4a467353bcc0 |
Solution
- There is no known solution at this time.
Public PoC/Exploit Available at Github
CVE-2023-1521 has a 1 public
PoC/Exploit available at Github.
Go to the Public Exploits tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2023-1521.
| URL | Resource |
|---|---|
| https://github.com/advisories/GHSA-x7fr-pg8f-93f5 | Third Party Advisory |
| https://securitylab.github.com/advisories/GHSL-2023-046_ScCache | Exploit |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2023-1521 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2023-1521
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
None
C
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2023-1521 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2023-1521 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Oct. 15, 2025
Action Type Old Value New Value Added CPE Configuration OR *cpe:2.3:a:mozilla:sccache:*:*:*:*:*:rust:*:* versions up to (excluding) 0.4.0 Added Reference Type Mozilla Corporation: https://github.com/advisories/GHSA-x7fr-pg8f-93f5 Types: Third Party Advisory Added Reference Type Mozilla Corporation: https://securitylab.github.com/advisories/GHSL-2023-046_ScCache Types: Exploit -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Nov. 26, 2024
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H -
New CVE Received by [email protected]
Nov. 26, 2024
Action Type Old Value New Value Added 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. Added CWE CWE-426 Added Reference https://github.com/advisories/GHSA-x7fr-pg8f-93f5 Added Reference https://securitylab.github.com/advisories/GHSL-2023-046_ScCache