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
2024-11-26T18:57:08Z
Severity
  • 8.4 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
  • 7.3 (High) CVSS_V4 - 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 CVSS Calculator
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

Database specific
{
    "nvd_published_at": "2024-11-26T12:15:18Z",
    "cwe_ids": [
        "CWE-426"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2023-05-30T20:06:02Z"
}
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