Read the docs
TI-2021-09209 Aliases CVE-2021-27851GHSA-c5fp-qrw2-8x2w

Local privilege escalation in GNU Guix via guix-daemon and '--keep-failed'

Priority LOW 25CWE-264Published · Updated

Key facts

Attack vector
Local
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
Security bypass
Confidentiality · integrity · availability
None · High · None
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA. Impact type from CWE-264.

Summary

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.

Why it matters now

EPSS 0.00334 26th percentileScored 2026-11-07
Fix Fixed guix-daemon (GNU Guix): v1.2.0-75109-g94f0312546

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
GNU Guixguix-daemonv0.11.0-3298-g2608e40988 and later; before v1.2.0-75109-g94f0312546v1.2.0-75109-g94f0312546Patch availableCNA
  • guix-daemon VendorGNU Guix Affected v0.11.0-3298-g2608e40988 and later; before v1.2.0-75109-g94f0312546 Fixed in v1.2.0-75109-g94f0312546 Patch available CNA

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:gnu:guix:*:*:*:*:*:*:*:*0.11.0 to before 1.2.0VulnerableGNU
  • cpe:2.3:a:gnu:guix:*:*:*:*:*:*:*:* Versions 0.11.0 to before 1.2.0 Vulnerable ·GNU

Remediation

  • Fix · CNA guix-daemon (GNU Guix) Fixed in v1.2.0-75109-g94f0312546

Timeline

  1. 2026-10-02 Threatist record created from CVE-2021-27851
  2. 2026-10-03 Alias added: GHSA-c5fp-qrw2-8x2w

References

  • TI-2019-13212 GNU Guix 1.0.1 allows local users to gain access to an arbitrary user's account because… CVSS 3.1HIGH 7.8

Sources