CVE-2023-1521
sccache vulnerable to privilege escalation if server is run as root
Auswirkung
### 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](https://snapcraft.io/sccache)), 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
Ein Angreifer kann die Lücke mit lokalem Zugriff auf das System ausnutzen, ohne Anmeldung, ohne Zutun eines Nutzers. Bei Erfolg: hohes Risiko, dass Daten ausgelesen werden, hohes Risiko, dass Daten oder Systeme verändert werden, hohes Risiko für Ausfälle.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| rust | sccache | < 0.4.0 | 0.4.0 |
Betroffene Produkte · Mozilla
| Produkt | Betroffene Versionen |
|---|---|
| Sccache | vor 0.4.0 |
Schwachstellenklasse
Referenzen
- NVD-Eintrag
- CVE.org-Eintrag
- GitHub-Advisory
- https://github.com/advisories/GHSA-x7fr-pg8f-93f5
- https://securitylab.github.com/advisories/GHSL-2023-046_ScCache
- https://github.com/mozilla/sccache/security/advisories/GHSA-x7fr-pg8f-93f5
- https://github.com/mozilla/sccache/releases/tag/v0.4.0
- https://nvd.nist.gov/vuln/detail/CVE-2023-1521