CVE-2024-45593: Nix affected by unsafe NAR unpacking

Published Sep 10, 2024
·
Updated

Nix is a package manager for Linux and other Unix systems. A bug in Nix 2.24 prior to 2.24.6 allows a substituter or malicious user to craft a NAR that, when unpacked by Nix, causes Nix to write to arbitrary file system locations to which the Nix process has access. This will be with root permissions when using the Nix daemon. This issue is fixed in Nix 2.24.6.

Affected Software

1 affected component
NixOS Nix>=2.24.0<2.24.6

Event History

Sep 10, 2024
CVE Published
via MITRE·03:51 PM
Data Sourced
via MITRE·03:51 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:15 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2024-45593?

CVE-2024-45593 has a high severity due to its potential for arbitrary file system writes by malicious users.

2

How do I fix CVE-2024-45593?

To fix CVE-2024-45593, upgrade Nix to version 2.24.6 or later.

3

What systems are affected by CVE-2024-45593?

CVE-2024-45593 affects Nix versions from 2.24.0 up to 2.24.5.

4

What exploitation methods are possible with CVE-2024-45593?

An attacker can exploit CVE-2024-45593 by crafting a malicious NAR file that Nix will unpack to write to arbitrary file system locations.

5

What is the impact of CVE-2024-45593?

The impact of CVE-2024-45593 includes unauthorized access and potential modification of files on the file system.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203