cve.bz

CVE-2024-38531 nixos nix: Insecure Preserved Inherited Permissions

3.6 lowEPSS 0.2%

Low (3.6) in nixos nix. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

3.6 low
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L
EPSS
0.2% (unchanged from 0.1% a week ago; 0.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 6th percentile. Scored 2026-11-30. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-07-05. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-278 Insecure Preserved Inherited Permissions
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-38531 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-38531?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-38531?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-38531 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
NixOS nix>= 2.23.0, < 2.23.1
NixOS nix>= 2.22.0, < 2.22.2
NixOS nix>= 2.21.0, < 2.21.3
NixOS nix>= 2.20.0, < 2.20.7
NixOS nix>= 2.19.0, < 2.19.5
NixOS nix>= 2.18.0, < 2.18.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12nixno fix listedDEBIAN-CVE-2024-38531
Debian13, 14nix2.23.3+dfsg-1DEBIAN-CVE-2024-38531
UbuntuPro:22.04:LTSnix2.6.0+dfsg-3ubuntu0.1~esm1UBUNTU-CVE-2024-38531 USN-7633-1
UbuntuPro:24.04:LTSnix2.18.1+dfsg-1ubuntu5+esm2UBUNTU-CVE-2024-38531 USN-7633-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

References

Check your stackJSON