ghsa-x7fr-pg8f-93f5
Vulnerability from github
Published
2023-05-30 20:06
Modified
2024-11-26 18:57
Severity ?
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
{ "affected": [ { "package": { "ecosystem": "crates.io", "name": "sccache" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "0.4.0" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2023-1521" ], "database_specific": { "cwe_ids": [ "CWE-426" ], "github_reviewed": true, "github_reviewed_at": "2023-05-30T20:06:02Z", "nvd_published_at": "2024-11-26T12:15:18Z", "severity": "HIGH" }, "details": "### Impact\n\nOn 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`.\n\nIf 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.\n\n\n### Patches\nUpgrade to 0.4.0\n\n### Workarounds\nDon\u0027t run sccache server as root. \n\n### GitHub Security Lab number\n\nGHSL-2023-046", "id": "GHSA-x7fr-pg8f-93f5", "modified": "2024-11-26T18:57:08Z", "published": "2023-05-30T20:06:02Z", "references": [ { "type": "WEB", "url": "https://github.com/mozilla/sccache/security/advisories/GHSA-x7fr-pg8f-93f5" }, { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-1521" }, { "type": "PACKAGE", "url": "https://github.com/mozilla/sccache" }, { "type": "WEB", "url": "https://github.com/mozilla/sccache/releases/tag/v0.4.0" }, { "type": "ADVISORY", "url": "https://securitylab.github.com/advisories/GHSL-2023-046_ScCache" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "type": "CVSS_V3" }, { "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P", "type": "CVSS_V4" } ], "summary": "sccache vulnerable to privilege escalation if server is run as root" }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.