Local privilege escalation in GNU Guix via guix-daemon and '--keep-failed'
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
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| GNU Guix | guix-daemon | v0.11.0-3298-g2608e40988 and later; before v1.2.0-75109-g94f0312546 | v1.2.0-75109-g94f0312546 | Patch available | CNA |
- 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
Remediation
- Fix · CNA guix-daemon (GNU Guix) Fixed in v1.2.0-75109-g94f0312546
Timeline
- 2026-10-02 Threatist record created from CVE-2021-27851
- 2026-10-03 Alias added: GHSA-c5fp-qrw2-8x2w
References
More GNU Guix vulnerabilities
- 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
- CVE-2021-27851 · CVE Program
- CVE-2021-27851 · NVD
- FIRST EPSS
- GHSA-c5fp-qrw2-8x2w · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences