CVE & CISA-KEV Catalog

CVE-2021-27851

MEDIUM
5.5
CVSS v3
NVD

Description

A security vulnerability that can lead to local privilege escalation has been found in ’guix-daemon’. It affects multi-user setups in which ’guix-daemon’ runs locally. The attack consists in having an unprivileged user spawn a build process, for instance with `guix build`, that makes its build directory world-writable. The user then creates a hardlink to a root-owned file such as /etc/shadow in that build directory. If the user passed the --keep-failed option and the build eventually fails, the daemon changes ownership of the whole build tree, including the hardlink, to the user. At that point, the user has write access to the target file. Versions after and including v0.11.0-3298-g2608e40988, and versions prior to v1.2.0-75109-g94f0312546 are vulnerable.

How to fix

Remediation Available
guixDebian
Fixed in:1.2.0-4CVE-2021-27851
Fixed in:1.2.0-4CVE-2021-27851

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityHigh
AvailabilityNone

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Exploit Intelligence

0.33%probability of exploitation in 30 days
25thpercentile

Low risk: more likely to be exploited than 25% of all known CVEs.

References

Related Vulnerabilities

Other CWE-264 (Permissions, Privileges, and Access Controls) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2012-1456Medium4.3100%--
CVE-2012-1459Medium4.3100%-Fix
CVE-2012-1446Medium4.3100%--
CVE-2012-1443Medium4.3100%--
CVE-2012-1442Medium4.399%--
CVE-2012-1457Medium4.398%-Fix
Embed a live status badge for CVE-2021-27851
CVE-2021-27851 severity badge

Markdown

[![CVE-2021-27851](https://tridentstack.com/cve/badge/CVE-2021-27851.svg)](https://tridentstack.com/cve/CVE-2021-27851)

HTML

<a href="https://tridentstack.com/cve/CVE-2021-27851"><img src="https://tridentstack.com/cve/badge/CVE-2021-27851.svg" alt="CVE-2021-27851"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.