CVE-2024-38531

Nix sandbox escape

LOW
3.6
CVSS Score
Published: June 28, 2024 at 01:18 PM UTC
Updated: June 17, 2026 at 07:40 AM UTC
1 product affected across 1 vendorNix

Using nix by NixOS?

Get instant alerts when new vulnerabilities affect nix - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
LOW3.6
Exploit prediction
EPSS 0.1%
SSVC
No known exploit

Description

Nix is a package manager for Linux and other Unix systems that makes package management reliable and reproducible. A build process has access to and can change the permissions of the build directory. After creating a setuid binary in a globally accessible location, a malicious local user can assume the permissions of a Nix daemon worker and hijack all future builds. This issue was patched in version(s) 2.23.1, 2.22.2, 2.21.3, 2.20.7, 2.19.5 and 2.18.4.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 2.18.4v < 2.19.5v < 2.20.7v < 2.21.3v < 2.22.2v < 2.23.1
Affected range stops below 2.18.4, so it looks safe — our inference, not a vendor statement
Affected range stops below 2.19.5, so it looks safe — our inference, not a vendor statement
Affected range stops below 2.20.7, so it looks safe — our inference, not a vendor statement
Affected range stops below 2.21.3, so it looks safe — our inference, not a vendor statement
Affected range stops below 2.22.2, so it looks safe — our inference, not a vendor statement
Affected range stops below 2.23.1, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

3.6LOWGitHub_M
Attack Vector
LOCAL
Complexity
HIGH
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
LOW
Availability
LOW
Vector?

Quick Info

StatusDEFERRED
CWE
CWE-278

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card