Name | CVE-2024-27297 |
Description | Nix is a package manager for Linux and other Unix systems. A fixed-output derivations on Linux can send file descriptors to files in the Nix store to another program running on the host (or another fixed-output derivation) via Unix domain sockets in the abstract namespace. This allows to modify the output of the derivation, after Nix has registered the path as "valid" and immutable in the Nix database. In particular, this allows the output of fixed-output derivations to be modified from their expected content. This issue has been addressed in versions 2.3.18 2.18.2 2.19.4 and 2.20.5. Users are advised to upgrade. There are no known workarounds for this vulnerability. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DSA-5669-1 |
Debian Bugs | 1066113, 1066812 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
guix (PTS) | bullseye (security), bullseye | 1.2.0-4+deb11u2 | fixed |
bookworm (security), bookworm | 1.4.0-3+deb12u1 | fixed | |
sid | 1.4.0-8 | fixed | |
nix (PTS) | bullseye | 2.3.7+dfsg1-1 | vulnerable |
bookworm | 2.8.0-1.1 | vulnerable | |
sid, trixie | 2.24.9+dfsg-2 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
guix | source | bullseye | 1.2.0-4+deb11u2 | DSA-5669-1 | ||
guix | source | bookworm | 1.4.0-3+deb12u1 | DSA-5669-1 | ||
guix | source | (unstable) | 1.4.0-6 | 1066113 | ||
nix | source | (unstable) | 2.22.1+dfsg-1 | 1066812 |
[bookworm] - nix <no-dsa> (Minor issue)
[bullseye] - nix <no-dsa> (Minor issue)
Fixed by: https://git.savannah.gnu.org/cgit/guix.git/commit/?id=8f4ffb3fae133bb21d7991e97c2f19a7108b1143
Followup: https://git.savannah.gnu.org/cgit/guix.git/commit/?id=ff1251de0bc327ec478fc66a562430fbf35aef42
https://guix.gnu.org/en/blog/2024/fixed-output-derivation-sandbox-bypass-cve-2024-27297/
https://github.com/NixOS/nix/security/advisories/GHSA-2ffj-w4mj-pg37
https://github.com/NixOS/nix/commit/244f3eee0bbc7f11e9b383a15ed7368e2c4becc9 (2.20.5)
https://github.com/NixOS/nix/commit/c3878f510ec12ca6bf24505989e7463249dab61a (2.21.0)