CVE-2025-59378
Linux Debian vulnerability analysis and mitigation

Overview

CVE-2025-59378 is a privilege escalation vulnerability discovered in guix-daemon in GNU Guix versions before commit 1618ca7. The vulnerability was disclosed on September 1, 2025, affecting all GNU Guix systems, regardless of whether guix-daemon is running with root privileges (GNU Guix Blog).

Technical details

The vulnerability exists in the content-addressed-mirrors file handling within guix-daemon's built-in builders (builtin:download and builtin:git-download). The issue allows arbitrary Guile code execution through the content-addressed-mirrors environment variable, which can be exploited to create a setuid program. This program can then be used to gain the privileges of the build user that runs it, even after the build has ended. The vulnerability has been assigned a CVSS v3.1 base score of 5.7 (Medium) with vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N (NVD).

Impact

The vulnerability allows local users to gain elevated privileges of any build users and subsequently manipulate the output of any build. In systems running rootless daemon configurations, this can lead to gaining the privileges of guix-daemon itself. The impact is particularly significant for multi-user systems and any system where untrusted code may access guix-daemon's socket at /var/guix/daemon-socket/socket (GNU Guix Blog).

Mitigation and workarounds

The vulnerability has been fixed through three commits (2a33354, f607aaa, and 9202921) in pull request #2419, with the fix implemented in commit 1618ca7. The solution involves changing the (guix scripts perform-download) to evaluate the content-addressed-mirrors file in a Guile isolated environment and implementing additional security checks. Users are strongly advised to upgrade their guix-daemon immediately through system reconfiguration after a guix pull (GNU Guix Blog).

Additional resources


SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-59030HIGH7.5
  • Linux DebianLinux Debian
  • pdns-recursor
NoYesDec 09, 2025
CVE-2025-59029MEDIUM5.3
  • Linux DebianLinux Debian
  • pdns-recursor
NoYesDec 09, 2025
CVE-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-devel
NoYesDec 09, 2025
CVE-2025-40343N/AN/A
  • Linux KernelLinux Kernel
  • bpftool
NoYesDec 09, 2025
CVE-2025-40342N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-trace
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management