{ "data_version": "4.0", "data_type": "CVE", "data_format": "MITRE", "CVE_data_meta": { "ID": "CVE-2024-38531", "ASSIGNER": "security-advisories@github.com", "STATE": "PUBLIC" }, "description": { "description_data": [ { "lang": "eng", "value": "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." } ] }, "problemtype": { "problemtype_data": [ { "description": [ { "lang": "eng", "value": "CWE-278: Insecure Preserved Inherited Permissions", "cweId": "CWE-278" } ] } ] }, "affects": { "vendor": { "vendor_data": [ { "vendor_name": "NixOS", "product": { "product_data": [ { "product_name": "nix", "version": { "version_data": [ { "version_affected": "=", "version_value": ">= 2.23.0, < 2.23.1" }, { "version_affected": "=", "version_value": ">= 2.22.0, < 2.22.2" }, { "version_affected": "=", "version_value": ">= 2.21.0, < 2.21.3" }, { "version_affected": "=", "version_value": ">= 2.20.0, < 2.20.7" }, { "version_affected": "=", "version_value": ">= 2.19.0, < 2.19.5" }, { "version_affected": "=", "version_value": ">= 2.18.0, < 2.18.4" } ] } } ] } } ] } }, "references": { "reference_data": [ { "url": "https://github.com/NixOS/nix/security/advisories/GHSA-q82p-44mg-mgh5", "refsource": "MISC", "name": "https://github.com/NixOS/nix/security/advisories/GHSA-q82p-44mg-mgh5" }, { "url": "https://github.com/NixOS/nix/pull/10501", "refsource": "MISC", "name": "https://github.com/NixOS/nix/pull/10501" } ] }, "source": { "advisory": "GHSA-q82p-44mg-mgh5", "discovery": "UNKNOWN" }, "impact": { "cvss": [ { "attackComplexity": "HIGH", "attackVector": "LOCAL", "availabilityImpact": "LOW", "baseScore": 3.6, "baseSeverity": "LOW", "confidentialityImpact": "NONE", "integrityImpact": "LOW", "privilegesRequired": "LOW", "scope": "UNCHANGED", "userInteraction": "NONE", "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L", "version": "3.1" } ] } }