CVE-2024-27297

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

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
guix (PTS)bullseye1.2.0-4+deb11u2fixed
bullseye (security)1.2.0-4+deb11u3fixed
bookworm1.4.0-3+deb12u1fixed
bookworm (security)1.4.0-3+deb12u2fixed
sid, trixie1.4.0-8fixed
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
guixsourcebullseye1.2.0-4+deb11u2DSA-5669-1
guixsourcebookworm1.4.0-3+deb12u1DSA-5669-1
guixsource(unstable)1.4.0-61066113
nixsource(unstable)2.22.1+dfsg-11066812

Notes

[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)

Search for package or bug name: Reporting problems