Skip to content

Corruption of fixed-output derivations

Moderate
thufschmitt published GHSA-2ffj-w4mj-pg37 Mar 7, 2024

Package

nix (Nix)

Affected versions

<=2.20.3

Patched versions

2.3.18,2.18.2,2.19.4,2.20.5

Description

Impact

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.

Patches

See below.

Workarounds

Do not allow untrusted builds to occur on shared infrastructure.

References

https://hackmd.io/03UGerewRcy3db44JQoWvw

Severity

Moderate
6.3
/ 10

CVSS base metrics

Attack vector
Adjacent
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
Low
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L

CVE ID

CVE-2024-27297

Weaknesses

No CWEs

Credits