5.5

CVE-2021-27851: gnu guix guix-daemon

CVSS: 5.5v3.1MediumModified
AliasesUBUNTU-CVE-2021-27851DEBIAN-CVE-2021-27851openSUSE-SU-2024:10836-1
Published 26-04-2021Last modified 17-09-2024

Vulnerability summary

CVE-2021-27851 is a medium (CVSS 5.5) vulnerability in gnu guix guix-daemon. EPSS estimates a 0.33% chance of exploitation in the next 30 days, higher than 25.5% of scored vulnerabilities.

Overall risk
22/100
0100
Low · default modelHow is this calculated?
CVSS score
5.5/10
010
Medium · v3.1 (NVD)
EPSS score
0.33%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Timeline

  1. 26-04-2021
    PublishedVulnerability first disclosed.
  2. 17-09-2024
    Last modifiedVulnerability information updated.

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.

CVSS metrics

4 scores · 3 sources · 2 versions

EPSS trend

Probability

0.33%

Chance of exploitation in the next 30 days

Percentile

26%

Versus all other CVEs

30-day change

0.00 pp

From 0.33% on 21-09-2026

21-09-202621-10-2026
EPSS score
0.33%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Debian1 product
  • guix< 1.2.0-4
Gnu1 product
  • guix≥ 0.11.0, < 1.2.0
Gnu guix1 product
  • guix-daemon≥ v0.11.0-3298-g2608e40988, < unspecified | ≥ unspecified, < v1.2.0-75109-g94f0312546
Opensuse1 product
  • guix&distro=openSUSE Tumbleweed< 1.3.0-1.8
Ubuntu1 product
  • guixAll versions (No fix recorded)

5 vendors · 5 products

References

8 links