CVE-2023-1521

Local Privilege Escalation in sccache

Published Nov 26, 2024 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-x7fr-pg8f-93f5 sccache vulnerable to privilege escalation if server is run as root
History
Type Values Removed Values Added
CPEs cpe:2.3:a:mozilla:sccache:*:*:*:*:*:rust:*:*
Type Values Removed Values Added
First Time appeared Mozilla
Mozilla sccache
CPEs cpe:2.3:a:mozilla:sccache:*:*:*:*:*:*:*:*
Vendors & Products Mozilla
Mozilla sccache
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values 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.
Title Local Privilege Escalation in sccache
Weaknesses CWE-426
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
mozilla
Published
Updated
Nov 26, 2024, 8:45 PM
Reserved
Mar 20, 2023, 3:56 PM
Status
Analyzed
Published
Nov 26, 2024, 12:15 PM
Modified
Jun 17, 2026, 5:28 AM