CVE-2024-27297
Nix Corruption of fixed-output derivations
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.
Attack profile
How easy it is to exploit
- Attack vector
- Adjacent network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- High
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
6.3
Nix Corruption of fixed-output derivations
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.
- Record
CVE-2024-27297- CVSS 3.1
- 6.3 Medium
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L - Weakness
- CWE-367
- Updated
- 2026-11-02
EUVDEUVD-2024-24524
6.3
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.
- Record
EUVD-2024-24524- CVSS 3.1
- 6.3 Medium
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L - Updated
- 2026-11-02
NVD
6.3
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.
- Record
CVE-2024-27297- CVSS 3.1
- 6.3 Medium
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L - CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N - Weakness
- CWE-367
- Updated
- 2026-11-02
OSVALPINE-CVE-2024-27297
5.9
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.
- Record
ALPINE-CVE-2024-27297- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N - Updated
- 2026-11-03
OSV
6.3
Nix Corruption of fixed-output derivations
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.
- Record
CVE-2024-27297- CVSS 3.1
- 6.3 Medium
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L - Weakness
- CWE-367
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2024-27297
5.9
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.
- Record
DEBIAN-CVE-2024-27297- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N - Updated
- 2026-11-02
OSVUBUNTU-CVE-2024-27297
6.3
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.
- Record
UBUNTU-CVE-2024-27297- CVSS 3.1
- 6.3 Medium
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L - CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N - Updated
- 2026-11-02
OSVUSN-7633-1 No score
nix vulnerabilities
Linus Heckemann discovered that Nix did not correctly handle certain binaries. An attacker could possibly use this issue to execute arbitrary code. (CVE-2024-38531)
Pierre-Etienne Meunier discovered that Nix did not correctly handle TLS certificates. A remote attacker could possibly use this issue to leak sensitive information. (CVE-2024-47174)
It was discovered that Nix did not correctly handle Unix sockets. An attacker could possibly use this issue execute arbitrary code. This issue only affected Ubuntu 24.04 LTS. (CVE-2024-27297)
It was discovered that Nix did not correctly handle unpacking Nix archives (NARS). If a user or automated system were tricked into opening a specially crafted file, an attacker could possibly use this issue to cause a denial of service or execute arbitrary code. (CVE-2024-45593)
- Record
USN-7633-1- Updated
- 2026-11-02
OSVUSN-8773-1 No score
guix vulnerability
It was discovered that GNU Guix incorrectly made build outputs accessible to local users before their file metadata was finalized. A local attacker could possibly use this issue to gain elevated privileges.
- Record
USN-8773-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
guixAlpine:v3.19 |
before 1.4.0-r5 | 1.4.0-r5 |
guixAlpine:v3.20 |
before 1.4.0-r5 | 1.4.0-r5 |
guixAlpine:v3.21 |
before 1.4.0-r5 | 1.4.0-r5 |
guixAlpine:v3.22 |
before 1.4.0-r5 | 1.4.0-r5 |
guixAlpine:v3.23 |
before 1.4.0-r5 | 1.4.0-r5 |
guixAlpine:v3.24 |
before 1.4.0-r5 | 1.4.0-r5 |
nixAlpine:v3.20 |
2.4 up to 2.20.5-r0 | 2.20.5-r0 |
nixAlpine:v3.21 |
2.4 up to 2.20.5-r0 | 2.20.5-r0 |
nixAlpine:v3.22 |
2.4 up to 2.20.5-r0 | 2.20.5-r0 |
nixAlpine:v3.23 |
2.4 up to 2.20.5-r0 | 2.20.5-r0 |
Show 10 moreShow less
| Package | Affected | Fixed |
|---|---|---|
nixAlpine:v3.24 |
2.4 up to 2.20.5-r0 | 2.20.5-r0 |
nixDebian:12 |
All versions, plus listed versions 2.16.1+dfsg-12.16.1+dfsg-22.16.1+dfsg-32.17.1+dfsg-12.18.1+dfsg-1 Show 16 moreShow less2.22.1+dfsg-12.23.3+dfsg-12.23.3+dfsg-22.24.12+dfsg-12.24.8+dfsg-12.24.9+dfsg-12.24.9+dfsg-22.25.4+dfsg-12.26.3+dfsg-12.32.5+dfsg-12.32.5+dfsg-22.34.3+dfsg-12.34.6+dfsg-12.34.8+dfsg-12.35.4+dfsg-12.8.0-1.1 |
None known |
nixDebian:13 |
before 2.22.1+dfsg-1 | 2.22.1+dfsg-1 |
nixDebian:14 |
before 2.22.1+dfsg-1 | 2.22.1+dfsg-1 |
guixDebian:11 |
before 1.2.0-4+deb11u2, plus listed versions 1.2.0-41.2.0-4+deb11u1 |
1.2.0-4+deb11u2 |
guixDebian:12 |
before 1.4.0-3+deb12u1, plus listed versions 1.4.0-3 |
1.4.0-3+deb12u1 |
guixUbuntu:Pro:22.04:LTS |
before 1.3.0-4ubuntu0.1~esm1, plus listed versions 1.2.0-41.3.0-21.3.0-4 |
1.3.0-4ubuntu0.1~esm1 |
nixUbuntu:Pro:24.04:LTS |
before 2.18.1+dfsg-1ubuntu5+esm2, plus listed versions 2.16.1+dfsg-3ubuntu12.18.1+dfsg-1ubuntu12.18.1+dfsg-1ubuntu22.18.1+dfsg-1ubuntu42.18.1+dfsg-1ubuntu5 |
2.18.1+dfsg-1ubuntu5+esm2 |
nixUbuntu:Pro:22.04:LTS |
before 2.6.0+dfsg-3ubuntu0.1~esm1, plus listed versions 2.3.10+dfsg1-12.3.10+dfsg1-1build12.6.0+dfsg-22.6.0+dfsg-3 |
2.6.0+dfsg-3ubuntu0.1~esm1 |
guixUbuntu:Pro:24.04:LTS |
before 1.4.0-6ubuntu0.1~esm1, plus listed versions 1.4.0-51.4.0-61.4.0-6build1 |
1.4.0-6ubuntu0.1~esm1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, aliases, references | OSV | |
| first indexed | CVE List, EUVD, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-27297 is a medium vulnerability (CVSS 6.3) in Nixos Nix, published March 11, 2024. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.59%, the 48th percentile. Fixed in guix 1.4.0-r5.
References
github.com/NixOS/nix/security/advisories/GHSA-2ffj-w4mj-pg37
github.com/NixOS/nix/commit/f8170ce9f119e5e6724eb81ff1b5a2d4c0024000
hackmd.io/03UGerewRcy3db44JQoWvw
guix.gnu.org/en/blog/2025/privilege-escalation-vulnerabilities-2025
security.alpinelinux.org/vuln/CVE-2024-27297
github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27297.json
Show 12 moreShow less
nvd.nist.gov/vuln/detail/CVE-2024-27297
security-tracker.debian.org/tracker/CVE-2024-27297
ubuntu.com/security/CVE-2024-27297
guix.gnu.org/en/blog/2024/fixed-output-derivation-sandbox-bypass-cve-2024-27297
github.com/NixOS/nix/commit/244f3eee0bbc7f11e9b383a15ed7368e2c4becc9
cve.org/CVERecord?id=CVE-2024-27297
ubuntu.com/security/notices/USN-7633-1
ubuntu.com/security/notices/USN-8773-1
ubuntu.com/security/CVE-2024-38531
ubuntu.com/security/CVE-2024-45593
ubuntu.com/security/CVE-2024-47174
ubuntu.com/security/CVE-2024-52867