CVE-2024-38531

NameCVE-2024-38531
DescriptionNix 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
nix (PTS)bullseye2.3.7+dfsg1-1vulnerable
bookworm2.8.0-1.1vulnerable
sid, trixie2.24.9+dfsg-2fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
nixsource(unstable)2.23.3+dfsg-1

Notes

[bookworm] - nix <no-dsa> (Minor issue)
[bullseye] - nix <no-dsa> (Minor issue)
https://github.com/NixOS/nix/pull/10501
https://github.com/NixOS/nix/security/advisories/GHSA-q82p-44mg-mgh5

Search for package or bug name: Reporting problems