NixOS nix up to 2.23.0 insecure preserved inherited permissions
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 3.5 | $0-$5k | 0.00 |
Summary
A vulnerability has been found in NixOS nix up to 2.23.0 and classified as problematic. Affected by this vulnerability is an unknown functionality. The manipulation leads to insecure preserved inherited permissions. This vulnerability is documented as CVE-2024-38531. The attack needs to be performed locally. There is not any exploit available. The affected component should be upgraded.
Details
A vulnerability was found in NixOS nix up to 2.23.0 and classified as problematic. This issue affects an unknown part. The manipulation with an unknown input leads to a insecure preserved inherited permissions vulnerability. Using CWE to declare the problem leads to CWE-278. A product inherits a set of insecure permissions for an object, e.g. when copying from an archive file, without user awareness or involvement. Impacted is integrity, and availability. The summary by CVE is:
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.
It is possible to read the advisory at github.com. The identification of this vulnerability is CVE-2024-38531 since 06/18/2024. The exploitation is known to be difficult. Attacking locally is a requirement. The technical details are unknown and an exploit is not publicly available. The attack technique deployed by this issue is T1222 according to MITRE ATT&CK.
The vulnerability scanner Nessus provides a plugin with the ID 242201 (Ubuntu 22.04 LTS / 24.04 LTS : Nix vulnerabilities (USN-7633-1)), which helps to determine the existence of the flaw in a target environment.
Upgrading eliminates this vulnerability.
The vulnerability is also documented in the vulnerability database at Tenable (242201). Be aware that VulDB is the high quality source for vulnerability data.
Product
Vendor
Name
Version
- 2.0
- 2.1
- 2.2
- 2.3
- 2.4
- 2.5
- 2.6
- 2.7
- 2.8
- 2.9
- 2.10
- 2.11
- 2.12
- 2.13
- 2.14
- 2.15
- 2.16
- 2.17
- 2.18
- 2.18.0
- 2.18.1
- 2.18.2
- 2.18.3
- 2.19
- 2.19.0
- 2.19.1
- 2.19.2
- 2.19.3
- 2.19.4
- 2.20
- 2.20.0
- 2.20.1
- 2.20.2
- 2.20.3
- 2.20.4
- 2.20.5
- 2.20.6
- 2.21
- 2.21.0
- 2.21.1
- 2.21.2
- 2.22
- 2.22.0
- 2.22.1
- 2.23.0
Website
- Product: https://github.com/NixOS/nix/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 3.6VulDB Meta Temp Score: 3.5
VulDB Base Score: 3.6
VulDB Temp Score: 3.5
VulDB Vector: 🔍
VulDB Reliability: 🔍
CNA Base Score: 3.6
CNA Vector: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
Exploiting
Class: Insecure preserved inherited permissionsCWE: CWE-278 / CWE-266
CAPEC: 🔍
ATT&CK: 🔍
Physical: Partially
Local: Yes
Remote: No
Availability: 🔍
Status: Not defined
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 242201
Nessus Name: Ubuntu 22.04 LTS / 24.04 LTS : Nix vulnerabilities (USN-7633-1)
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Timeline
06/18/2024 🔍06/28/2024 🔍
06/28/2024 🔍
07/17/2025 🔍
Sources
Product: github.comAdvisory: github.com
Status: Confirmed
CVE: CVE-2024-38531 (🔍)
GCVE (CVE): GCVE-0-2024-38531
GCVE (VulDB): GCVE-100-269951
Entry
Created: 06/28/2024 16:17Updated: 07/17/2025 11:13
Changes: 06/28/2024 16:17 (60), 06/29/2024 15:48 (1), 07/17/2025 11:13 (3)
Complete: 🔍
Cache ID: 216::103
Be aware that VulDB is the high quality source for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.