GHSA-x7fr-pg8f-93f5

Suggest an improvement
Source
https://github.com/advisories/GHSA-x7fr-pg8f-93f5
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/05/GHSA-x7fr-pg8f-93f5/GHSA-x7fr-pg8f-93f5.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-x7fr-pg8f-93f5
Aliases
  • CVE-2023-1521
Published
2023-05-30T20:06:02Z
Modified
2023-11-08T04:11:17.367553Z
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

References

Affected packages

crates.io / sccache

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.4.0