Every CVE Search/ Get API key

CVE-2024-27297

Nix Corruption of fixed-output derivations

6.3 MediumFix available

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

0.59%Up 0.5 points since Mar 12, 2024
90%50%10%1%

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 MediumCVSS: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 MediumCVSS: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 MediumCVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L
CVSS 3.1
5.9 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L
CVSS 3.1
5.9 MediumCVSS: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

Affected packages
PackageAffectedFixed
guix
Alpine:v3.19
before 1.4.0-r5
1.4.0-r5
guix
Alpine:v3.20
before 1.4.0-r5
1.4.0-r5
guix
Alpine:v3.21
before 1.4.0-r5
1.4.0-r5
guix
Alpine:v3.22
before 1.4.0-r5
1.4.0-r5
guix
Alpine:v3.23
before 1.4.0-r5
1.4.0-r5
guix
Alpine:v3.24
before 1.4.0-r5
1.4.0-r5
nix
Alpine:v3.20
2.4 up to 2.20.5-r0
2.20.5-r0
nix
Alpine:v3.21
2.4 up to 2.20.5-r0
2.20.5-r0
nix
Alpine:v3.22
2.4 up to 2.20.5-r0
2.20.5-r0
nix
Alpine:v3.23
2.4 up to 2.20.5-r0
2.20.5-r0
Show 10 moreShow less
Affected packages
PackageAffectedFixed
nix
Alpine:v3.24
2.4 up to 2.20.5-r0
2.20.5-r0
nix
Debian: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 less
2.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
nix
Debian:13
before 2.22.1+dfsg-1
2.22.1+dfsg-1
nix
Debian:14
before 2.22.1+dfsg-1
2.22.1+dfsg-1
guix
Debian:11
before 1.2.0-4+deb11u2, plus listed versions
1.2.0-41.2.0-4+deb11u1
1.2.0-4+deb11u2
guix
Debian:12
before 1.4.0-3+deb12u1, plus listed versions
1.4.0-3
1.4.0-3+deb12u1
guix
Ubuntu: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
nix
Ubuntu: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
nix
Ubuntu: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
guix
Ubuntu: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

History
RecordedChangedSources
affected, aliases, referencesOSV
first indexedCVE 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

Show 12 moreShow less
MoveEnter Open