CVE-2024-52867
High · 8.1CVSS
8.1
EPSS
0.2%
Published
Nov 17, 2024
CISA due date
—
Cloudanix analysis
A flaw in the Guix package builder lets nearby users grab special programs before their security settings are finished, potentially giving them full control of the computer.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- High
- Impact
- Full Compromise
- Component
- Application
- Class
- Privilege Escalation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
guix-daemon exposes build outputs to local users before setuid and setgid metadata is applied, enabling unauthorized access to privileged binaries.
Why it matters to the business
Local attackers can obtain root-level access on affected systems, leading to full host compromise, data theft, or persistence that disrupts operations until the daemon is updated and restarted.
How an attack unfolds
An attacker on a multi-user system waits for or triggers a package build, then accesses the incomplete build directory containing setuid/setgid programs before the daemon corrects their ownership and permissions, allowing execution with elevated privileges.
How to fix it
Upgrade GNU Guix to include both commits 5ab3c4c and 558224140dab669cabdaebabff18504a066c48d4, then run guix pull, reconfigure the system, and restart guix-daemon.
How to confirm the fix worked
Confirm the running guix-daemon version incorporates both required commits, verify build directories are no longer world-accessible during builds, and test that setuid/setgid programs receive correct metadata before becoming available.
Typical attack path
- Obtain local unprivileged access to a system running guix-daemon
- Trigger or monitor a package build process
- Access the build output directory before metadata fixes are applied
- Execute the resulting setuid or setgid binary to escalate privileges
How to detect it
Review guix-daemon logs for build output paths created with permissive permissions, audit for unexpected setuid or setgid files appearing in /gnu/store or temporary build directories, and correlate with local user activity during package builds.
What your security team should do
- Immediately perform guix pull followed by system reconfigure and daemon restart on all Guix installations
- Restrict local user access to build directories until patched
- Monitor for unexpected setuid binaries appearing in user-accessible paths
The record
guix-daemon in GNU Guix before 5ab3c4c allows privilege escalation because build outputs are accessible by local users before file metadata concerns (e.g., for setuid and setgid programs) are properly addressed. The vulnerability can be remediated within the product via certain pull, reconfigure, and restart actions. Both 5ab3c4c and 5582241 are needed to resolve the vulnerability.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | guix | 0 | No fix |
| Debian:11 | guix | 0 | 1.2.0-4+deb11u3 |
| Debian:12 | guix | 0 | 1.4.0-3+deb12u2 |
| Debian:13 | guix | 0 | 1.4.0-8 |
| Ubuntu:22.04:LTS | guix | 0 | No fix |
| Ubuntu:24.04:LTS | guix | 0 | No fix |
| Ubuntu:24.10 | guix | 0 | No fix |
Related vulnerabilities
- CVE-2026-11813 A potential improper permissions vulnerability was reported in the Lenovo Filez Client… CWE-276
- CVE-2026-52766 YesWiki is a wiki system written in PHP. CWE-276
- CVE-2026-77393 In Ignition 8.1.53 and earlier, the Gateway "Create Project Role(s)" setting shipped… CWE-276
- CVE-2026-75166 Insecure Permission vulnerability in MBS-Solutions X-Serie Gateway firmware V6_00_05… CWE-276
- CVE-2026-81302 PALLET CONTROL products contain an incorrect default permission vulnerability, which may… CWE-276
- CVE-2026-9634 A security issue exists within the Redundancy Module Configuration Tool. CWE-276
- CVE-2026-9633 A security issue exists within the Redundancy Module Configuration Tool. CWE-276
- CVE-2026-69665 SKYSEA Client View and SKYMEC IT Manager contain an issue with incorrect default… CWE-276