CVE-2023-1521: GHSL-2023-046: Local Privilege Escalation in sccache - CVE-2023-1521

Published May 25, 2023
·
Updated

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 LDPRELOAD.

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

Other sources

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 LDPRELOAD.

GitHub Security Lab

Affected Software

2 affected componentsFixes available
rust/sccache<0.4.0
0.4.0
Mozilla Sccache Rust<0.4.0

Event History

May 25, 2023
Advisory Published
via GitHub Security Lab·12:00 AM
Data Sourced
via GitHub Security Lab·12:00 AM
DescriptionAffected Software
May 30, 2023
Advisory Published
via GitHub·08:06 PM
Nov 26, 2024
CVE Published
via MITRE·11:15 AM
Data Sourced
via MITRE·11:15 AM
DescriptionWeakness
Data Sourced
via NVD·12:15 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2023-1521?

CVE-2023-1521 is considered a high severity vulnerability due to its ability to execute arbitrary code with elevated privileges.

2

How do I fix CVE-2023-1521?

To mitigate CVE-2023-1521, update the 'sccache' client to version 0.4.0 or later.

3

Who is affected by CVE-2023-1521?

CVE-2023-1521 affects users running the 'sccache' client on Linux when used with a local 'sccache' server.

4

What units of impact should I expect from CVE-2023-1521?

CVE-2023-1521 can lead to unauthorized access and control of the system, particularly if the server runs as root.

5

Does CVE-2023-1521 affect versions prior to 0.4.0 of sccache?

Yes, CVE-2023-1521 specifically affects versions of 'sccache' prior to 0.4.0.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203