Cyber Security News

GNU Guix Vulnerabilities Allow Remote Privilege Escalation via Malicious Binary Substitutes

GNU Guix has disclosed four serious security vulnerabilities affecting its package substitution and channel-management features.

Three flaws in the guix substitute utility can enable remote privilege escalation, corruption of stored data, and local disclosure of files readable by the build daemon user. At the same time, a fourth issue affects guix pull and guix time-machine.

The issues affect Guix systems regardless of whether guix-daemon runs as root. However, the potential impact is more severe on systems where the daemon has root privileges, because an attacker could potentially write files in sensitive locations such as /etc/passwd.

GNU Guix Vulnerabilities

The most critical flaw exists in the restore-file procedure used to unpack binary substitutes. Guix previously extracted substitute archives while they were still downloading, before the full archive hash was verified.

A malicious substitute server, or a man-in-the-middle attacker impersonating one, could send a crafted archive that writes arbitrary files accessible to the daemon user.

This attack does not require a compromised official Guix server. Any configured substitute server can deliver malicious content, including those discovered via the daemon’s --discover option.

Using HTTPS alone does not fully prevent exploitation because the vulnerable narinfo metadata-fetching process did not securely bind the substitute download URL to signed metadata.

A second issue allows a malicious substitute source to return authorized metadata for one store item when Guix requests metadata for another.

This can make the package manager use an unintended but signed store item, potentially forcing systems to install outdated or insecure software versions.

The third guix substitute vulnerability involves file:// URLs. Untrusted local clients that can access the default guix-daemon socket could instruct the daemon to read files via local file URIs.

If a readable file triggers an error during narinfo parsing, its contents may appear in an error backtrace returned to the client, exposing secrets accessible to the daemon account.

Separately, guix pull and guix time-machine contained a path traversal issue in channel authentication caching.

An attacker controlling a channel file could use a crafted channel name to create or overwrite files writable by the user running the command.

The project assesses the most practical impact as denial-of-service, although further abuse may be possible in unusual environments.

Guix developers fixed the issues through a series of commits in pull request #9665. Users should upgrade guix and guix-daemon to commit 897832f374dcdc9eeaf19d01e70b9a92fccfc68c or later.

Administrators should consider temporarily using --no-substitutes during upgrades, particularly on exposed systems, but must weigh that decision against the difficulty of building updates locally.

Guix also provides a Scheme-based checker that reports whether a system remains vulnerable to the four identified flaws.

Stop Accepting SLAs Written for 2019 SOCs – Here’s the 2026 AI SLA Vendor Checklist – Download Free AI SOC SLA Guide

Abinaya

Abi is a Security Editor and fellow reporter with Cyber Security News. She is covering various cyber security incidents happening in the Cyber Space.

Recent Posts

NSA, CISA and NIST Release New Security Guidelines to Detect and Shut Down Rogue AI Agents

NSA, CISA, and NIST have released joint security guidelines to help organizations detect, contain, and…

3 hours ago

Hackers Exploit SiteGuard WAF Vulnerability That Could Give Them Full Control of Servers

Hackers are exploiting a command injection flaw in SiteGuard Server Edition, a web application firewall…

3 hours ago

Hackers Registered New Teams-Based Domains and Used a Login Page to Steal Your Logins

A newly registered domain copies Microsoft Teams’ login page and interface, raising concerns about a…

4 hours ago

16-Year-Old Broadcom Wi-Fi Flaw Lets Attackers Hack Routers Without Knowing Passwords

A 16-year-old flaw in Broadcom’s Wi-Fi software can let attackers within wireless range take control…

4 hours ago

Google Unveils New Android AI Protections to Block Scam Calls, Phishing Links and OTP Theft

Google has announced a new set of Android security protections designed to stop mobile scams…

9 hours ago

Hackers Exploiting Plex Vulnerabilities in the Wild to Deploy Cryptominer Malware

Hackers are exploiting flaws in Plex Media Server to install cryptocurrency mining malware, with a…

11 hours ago