Advisory

GHSA-x7fr-pg8f-93f5

Also known as: CVE-2023-1521

Summary

sccache vulnerable to privilege escalation if server is run as root

Details

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

Severity

High Basis: The source's own band: HIGH

Dates

Published
2023-05-30 20:06 UTC
Modified
2024-11-26 18:57 UTC

Affected packages and fixes

sccache

crates.io · All systems

Affected

  • introduced 0, fixed 0.4.0 (semver)

Fixed versions

0.4.0

Fix

  • Fixed version 0.4.0
    cargo update -p sccache --precise 0.4.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences