SecurityContext

CVE-2024-51481: Nix - Sandbox Bypass

  • Cve: CVE-2024-51481
  • Name: Nix - Sandbox Bypass
  • Description: Nix is a package manager for Linux and other Unix systems. On macOS, built-in builders (such as `builtin:fetchurl`, exposed to users with `import <nix/fetchurl.nix>`) were not executed in the macOS sandbox. Thus, these builders (which are running under the `nixbld*` users) had read access to world-readable paths and write access to world-writable paths outside of the sandbox. This issue is fixed in 2.18.9, 2.19.7, 2.20.9, 2.21.5, 2.22.4, 2.23.4, and 2.24.10. Note that sandboxing is not enabled by default on macOS. The Nix sandbox is not primarily intended as a security mechanism, but as an aid to improve reproducibility and purity of Nix builds. However, sandboxing *can* mitigate the impact of other security issues by limiting what parts of the host system a build has access to.
  • Impact: Attackers can access sensitive files and modify system paths outside the sandbox, potentially leading to information disclosure or system compromise.
  • Remediation: Update to version 2.24.10 or later.
  • Vulnerability type: sandbox_bypass
  • Vulnerability impact: information_disclosure, file_system_read, file_system_write
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: low
  • Cvss score: 1
  • Cvss vector: CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Epss score: 0.00171
  • Epss percentile: 0.06392
  • Assignee: [email protected]
  • Published at: 2024-10-31T17:15:13Z
  • Age in days: 754
  • Modified at: 2026-06-17T08:05:46Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-51481
  • Nvd status: deferred
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-693Protection Mechanism Failure

References

UrlSourceTags
https://github.com/NixOS/nix/commit/597fcc98e18e3178734d06a9e7306250e8cb8d74nvd
https://github.com/NixOS/nix/security/advisories/GHSA-wf4c-57rh-9pjgnvd

Products

ProductAffectedPlatform boundSourcesUrl
nixos:nix= 2.24.10; >= 2.24.0, < 2.24.10; = 2.23.4; >= 2.23.0, < 2.23.4; = 2.22.4; >= 2.22.0, < 2.22.4; = 2.21.5; >= 2.21.0, < 2.21.5; = 2.20.9; >= 2.20.0, < 2.20.9; >= 2.19.0, < 2.19.7; < 2.18.9nocna_alias_text/v1/products/nixos/nix

Projects

RepositoryLink kindsIndexedUrl
NixOS/nixcommit, security_advisoryyes/v1/repositories/NixOS/nix

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts