# CVE-2024-38531: Nix sandbox escape

- Severity: Low 3.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 6% of CVEs (2026-11-30)
- Published: 2024-06-28T13:18:58.604Z
- Modified: 2026-06-17T07:40:28.927Z
- Weaknesses: CWE-278
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

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

## References

- <https://github.com/NixOS/nix/security/advisories/GHSA-q82p-44mg-mgh5>
- <https://github.com/NixOS/nix/pull/10501>

## Sources

- CVE List: [CVE-2024-38531](https://www.cve.org/CVERecord?id=CVE-2024-38531), CVE Terms of Use, modified 2024-08-02
- NVD: [CVE-2024-38531](https://nvd.nist.gov/vuln/detail/CVE-2024-38531), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-38531 · Whole record: https://cve.day/CVE-2024-38531.json · Rebuilt by cve.day 2026-11-25T22:58:42.318Z
