
CVE catalog
CVE-2024-38531
Nix vulnerabilities
- Severity
- Medium
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.14% · Oct 25, 2026
Nix is a package manager for Linux and other Unix systems that makes package management reliable and reproducible. A build process has access to and can change the permissions of the build directory. After creating a setuid binary in a globally accessible location, a malicious local user can assume the permissions of a Nix daemon worker and hijack all future builds. This issue was patched in version(s) 2.23.1, 2.22.2, 2.21.3, 2.20.7, 2.19.5 and 2.18.4.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | nix | sid | 2.34.8+dfsg-1 | fixed |
| Debian | nix | forky | 2.34.8+dfsg-1 | fixed |
| Debian | nix | trixie | 2.26.3+dfsg-1 | fixed |
| Debian | nix | bookworm | 2.8.0-1.1 | vulnerable |
| Ubuntu | nix | noble | Not reported | vulnerable |
| Ubuntu | nix | noble | 2.18.1+dfsg-1ubuntu5+esm2 | fixed |
| Ubuntu | nix-bin | noble | 2.18.1+dfsg-1ubuntu5+esm2 | fixed |
| Ubuntu | nix-setup-systemd | noble | 2.18.1+dfsg-1ubuntu5+esm2 | fixed |
| Ubuntu | nix | pro | 2.16.1+dfsg-3ubuntu1 | vulnerable |
| Ubuntu | nix | pro | 2.18.1+dfsg-1ubuntu1 | vulnerable |
| Ubuntu | nix | pro | 2.18.1+dfsg-1ubuntu2 | vulnerable |
| Ubuntu | nix | pro | 2.18.1+dfsg-1ubuntu4 | vulnerable |
| Ubuntu | nix | pro | 2.18.1+dfsg-1ubuntu5 | vulnerable |
| Ubuntu | nix | pro | 2.18.1+dfsg-1ubuntu5+esm2 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | nix | source | sid | 2.23.3+dfsg-1 | not yet assigned | Not reported | Not reported |
| Debian | nix | source | forky | 2.23.3+dfsg-1 | not yet assigned | Not reported | Not reported |
| Debian | nix | source | trixie | 2.23.3+dfsg-1 | not yet assigned | Not reported | Not reported |
| Debian | nix | source | bookworm | (unfixed) | not yet assigned | Not reported | Not reported |
| Ubuntu | nix | deb | noble | 2.18.1+dfsg-1ubuntu5+esm2 | Not reported | Not reported | Not reported |
| Ubuntu | nix-bin | deb | noble | 2.18.1+dfsg-1ubuntu5+esm2 | Not reported | Not reported | Not reported |
| Ubuntu | nix-setup-systemd | deb | noble | 2.18.1+dfsg-1ubuntu5+esm2 | Not reported | Not reported | Not reported |
| Ubuntu | nix | deb | pro | 2.18.1+dfsg-1ubuntu5+esm2 | Not reported | UBUNTU-CVE-2024-38531 | Not reported |
Notes
[bookworm] nix: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [nix-bin]Affected
Source package: [nix]
Details (2)
2.8.0-1.1· arm64 · bookwormAffected
usn · nix · debian · bookworm; usn · nix · debian · 12
2.8.0-1.1+b1· amd64 · bookwormAffected
usn · nix · debian · bookworm; usn · nix · debian · 12
- [nix-setup-systemd]Affected
Source package: [nix]
Details (2)
2.8.0-1.1· all · bookwormAffected
usn · nix · debian · bookworm; usn · nix · debian · 12
2.8.0-1.1· all · bookwormAffected
usn · nix · debian · bookworm; usn · nix · debian · 12
[Debian 13 (Trixie)]
- [nix-bin]Fixed
Source package: [nix]
Details (2)
2.26.3+dfsg-1· amd64 · trixieFixed · Fixed:
2.23.3+dfsg-1usn · nix · debian · 13
2.26.3+dfsg-1· arm64 · trixieFixed · Fixed:
2.23.3+dfsg-1usn · nix · debian · 13
- [nix-setup-systemd]Fixed
Source package: [nix]
Details (2)
2.26.3+dfsg-1· all · trixieFixed · Fixed:
2.23.3+dfsg-1usn · nix · debian · 13
2.26.3+dfsg-1· all · trixieFixed · Fixed:
2.23.3+dfsg-1usn · nix · debian · 13
Observed:
References
- [https://osv.dev/vulnerability/DEBIAN-CVE-2024-38531]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2024-38531]
- [https://security-tracker.debian.org/tracker/CVE-2024-38531]
- [https://ubuntu.com/security/notices/USN-7633-1]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Ubuntu Security Notices (USN)]