Lucene search

K
githubGitHub Advisory DatabaseGHSA-X7FR-PG8F-93F5
HistoryMay 30, 2023 - 8:06 p.m.

sccache vulnerable to privilege escalation if server is run as root

2023-05-3020:06:02
GitHub Advisory Database
github.com
19
vulnerability
privilege escalation
sccache
linux
ld_preload
root privileges
upgrade
workaround
ghsl-2023-046
security issue

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

Affected configurations

Vulners
Node
sccacheRange<0.4.0
VendorProductVersionCPE
*sccache*cpe:2.3:a:*:sccache:*:*:*:*:*:*:*:*
Related for GHSA-X7FR-PG8F-93F5