Skip to content
OpenAdvisories
High · 7.8 Public exploit CVE-2023-1521 EUVD-2023-1648GHSA-x7fr-pg8f-93f5

Local Privilege Escalation in sccache

Published Nov 26, 2024 · Updated Nov 26, 2024 · Assigned by mozilla

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 products

VendorProductAffectedFixed
Mozilla sccache < 0.4.0 0.4.0

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 sccache 0.5.3-1 —
Debian 13 sccache 0.5.3-1 —
Debian 12 sccache No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 sccache No fix yet —
Ubuntu 26.04 LTS sccache No fix yet —
Ubuntu 25.10 sccache No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS sccache No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP5 sccache 0.4.1~18-150300.7.12.1 SUSE-SU-2023:3526-1, SUSE-SU-2023:2637-1
SLES 15 SP4 sccache 0.4.2~3-150400.3.3.1 SUSE-SU-2023:3526-1
SLES 15 SP3 sccache 0.4.1~18-150300.7.12.1 SUSE-SU-2023:2637-1
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP3 sccache 0.4.1~18-150300.7.12.1 SUSE-SU-2023:2637-1
SLE Real Time 15 SP3 sccache 0.4.1~18-150300.7.12.1 SUSE-SU-2023:2637-1
SLE HPC 15 SP3 sccache 0.4.1~18-150300.7.12.1 SUSE-SU-2023:2637-1
SUSE Enterprise Storage 7.1 sccache 0.4.1~18-150300.7.12.1 SUSE-SU-2023:2637-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.5 sccache 0.4.2~3-150400.3.3.1 SUSE-SU-2023:3526-1
openSUSE Leap 15.4 sccache 0.4.2~3-150400.3.3.1 SUSE-SU-2023:3526-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io sccache < 0.4.0 0.4.0 GHSA-x7fr-pg8f-93f5

Advisories 2

References