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.
The product searches for critical resources using an externally-supplied search path that can point to resources that are not under the product's direct control.
Link | Tags |
---|---|
https://securitylab.github.com/advisories/GHSL-2023-046_ScCache | third party advisory |
https://github.com/advisories/GHSA-x7fr-pg8f-93f5 | vendor advisory |