CVE-2021-27851
publishedLocal privilege escalation in GNU Guix via guix-daemon and '--keep-failed'
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| GNU Guix | — | guix-daemonv0.11.0-3298-g2608e40988 to < unspecified · unspecified to < v1.2.0-75109-g94f0312546 | Affected | Not stated | certcc |
| SUSE / openSUSE | openSUSE-Tumbleweed | guixaarch64 | Advisory build | 1.3.0-1.8 | OPENSUSE-SU-2024:10836-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | guixppc64le | Advisory build | 1.3.0-1.8 | OPENSUSE-SU-2024:10836-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | guixs390x | Advisory build | 1.3.0-1.8 | OPENSUSE-SU-2024:10836-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | guixx86_64 | Advisory build | 1.3.0-1.8 | OPENSUSE-SU-2024:10836-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| GNU Guix | guix-daemon | v0.11.0-3298-g2608e40988 to < unspecified (affected · custom)unspecified to < v1.2.0-75109-g94f0312546 (affected · custom) | certcc · cna |
Weaknesses
1- CWE-264 CWE-264 Permissions, Privileges, and Access Controls
References
2Provider assertions
2certcc · cna
Local privilege escalation in GNU Guix via guix-daemon and '--keep-failed'
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 2da335d7c31201a0dc3dd4f64f092663f9bfa08ce8be53df43922524cb944da0
- Ingested
- 23 Sep 2026, 07:53:39 UTC
- Source record
- Official CVE record