Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V8 - Authorization Privilege dropping
|
| Impact | The CVSS 3.1 vector (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:L) indicates: (1) local attack vector requiring physical or logical access, (2) low attack complexity with no special conditions, (3) low privilege requirement (standard user can trigger), (4) high integrity impact (code execution as root), and (5) scope change affecting the system boundary. The real-world risk is substantial for macOS Nix users. The privilege escalation nature and integrity-focused impact classify this as a high-priority issue despite no current KEV listing or public POC. SSVC considerations: exploitation is likely possible (builds are user-triggerable), the impact is technical (full system compromise), and automatable exploitation is probable since any package build in Nix can serve as the attack vector. This is NOT a theoretical high-CVSS-low-risk issue—it is a genuine local privilege escalation affecting a critical system component. Organizations using Nix on macOS for development or CI/CD should prioritize patching immediately. |
| Exploit ScenarioDerived | A macOS developer or CI/CD system running Nix 2.30.0 initiates a package build (e.g., 'nix build' or 'nix flake check'). Normally, the build would execute under an unprivileged '_nixbld' user. Due to the vulnerability, the build process instead executes with the invoking user's privileges—or if invoked via sudo, with root privileges. A malicious package dependency or a crafted Nix expression in the build phase can execute arbitrary shell commands, including installing rootkits, modifying system files, stealing SSH/GPG keys, or compromising the entire system. Because the attack requires only a local user to trigger a build (low privilege requirement, no user interaction), an attacker could embed a malicious dependency in a package or contribute a backdoored Nix package to a public repository, affecting multiple users. The low attack complexity and lack of user interaction requirements make this a high-risk vector for development environments and supply-chain attacks targeting macOS Nix users. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAI
CVE-2025-53819 is a privilege escalation vulnerability in Nix 2.30.0 on macOS where package builds are incorrectly executed with root privileges instead of restricted build user accounts. This affects macOS systems running Nix 2.30.0, allowing local attackers with standard user privileges to execute arbitrary code with root-level access during package builds. The vulnerability was patched in Nix 2.30.1, and no public exploits or known workarounds are currently available, though the high CVSS score (7.9) reflects the severity of privilege escalation with potential system-wide impact.
RemediationAI
{'action': 'Upgrade Nix immediately', 'details': "Update from Nix 2.30.0 to Nix 2.30.1 or later. On macOS systems, run 'nix upgrade-nix' or reinstall via the official installer from https://nixos.org/download.html"} {'action': 'Verify patch installation', 'details': "Confirm version with 'nix --version' and ensure output shows 2.30.1 or higher"} {'action': 'No workarounds available', 'details': 'The vendor explicitly noted no known workarounds; patching is the only mitigation'} {'action': 'Review build audit logs', 'details': 'On systems that ran Nix 2.30.0, audit any packages built during the vulnerable period, as builds may have executed with elevated privileges'} {'action': 'Restrict Nix access if patching delayed', 'details': 'If immediate patching is not possible, restrict Nix invocation to trusted administrators only via file permissions and sudo rules'}
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Nix is a purely functional package manager that uses declarative configuration and implements multi-user build isolation through dedicated unprivileged build users. The vulnerability stems from CWE-271 (Improper Privilege Management), indicating a flaw in the privilege dropping mechanism on macOS. On Unix-like systems, Nix normally spawns builds under restricted user accounts to sandbox package builds and prevent malicious or buggy build scripts from gaining system access. The macOS implementation in version 2.30.0 failed to properly enforce this user context switching, causing build processes to execute with the invoking user's privileges (potentially root if sudo was used, or with elevated capabilities) rather than the intended unprivileged build user. This is specific to the macOS platform; Linux builds were not affected. The affected CPE scope includes nix-package-manager versions 2.30.0 on macOS systems (cpe:2.3:a:nixos:nix:2.30.0:*:*:*:*:macos:*:*).
Know when macOS gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:L
Primary rating from GitHub Advisory.
CVSS VectorGitHub Advisory
Lifecycle Timeline
2DescriptionGitHub Advisory
Nix is a package manager for Linux and other Unix systems. Builds with Nix 2.30.0 on macOS were executed with elevated privileges (root), instead of the build users. The fix was applied to Nix 2.30.1. No known workarounds are available.
Executive ViewAI
CVE-2025-53819 affects Nix package manager users on macOS, where build processes execute with root privileges instead of restricted build users, creating a significant privilege escalation risk. Organizations using Nix 2.30.0 for software builds face potential compromise of build integrity and unauthorized system access, with no patch currently available.
Disable Nix builds on affected macOS systems immediately; isolate affected build infrastructure from production networks; require manual code review and verification of all build artifacts from Nix 2.30.0; restrict Nix execution to non-privileged accounts only through OS-level access controls; monitor process execution logs for privilege escalation anomalies; consider temporary substitution with alternative package managers until patch availability.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
An unauthenticated remote code execution vulnerability exists in Remote for Mac, a macOS remote control utility develope
Out-of-bounds write in Apple's iOS, iPadOS, and macOS file-parsing code lets remote attackers achieve arbitrary code exe
Apple's kernel across all platforms (iOS, macOS, watchOS, visionOS, tvOS) contains a memory corruption vulnerability (CV
The issue was addressed with improved checks. Rated high severity (CVSS 7.0). Actively exploited in the wild (cisa kev)
A logic issue was addressed with improved restrictions. Rated high severity (CVSS 7.8), this vulnerability is no authent
In Sudo before 1.9.12p2, the sudoedit (aka -e) feature mishandles extra arguments passed in the user-provided environmen
A race condition was addressed with additional validation. Rated high severity (CVSS 7.0), this vulnerability is no auth
This issue was addressed with improved checks. Rated critical severity (CVSS 10.0), this vulnerability is remotely explo
A carefully crafted request body can cause a buffer overflow in the mod_lua multipart parser (r:parsebody() called from
Cross-Site Request Forgery (CSRF) vulnerability in Laundry on Linux, MacOS allows to perform an Account Takeover. This i
A vulnerability was found in LibTIFF. Rated high severity (CVSS 8.8), this vulnerability is remotely exploitable, no aut
Use of Out-of-range Pointer Offset in GitHub repository vim/vim prior to 8.2.4440. Rated high severity (CVSS 8.8), this
Same weakness CWE-271 – Privilege Dropping / Lowering Errors
View allSame technique Information Disclosure
View allVendor StatusVendor
Ubuntu
Priority: Medium| Release | Status | Version |
|---|---|---|
| jammy | not-affected | macOS only |
| noble | not-affected | macOS only |
| plucky | not-affected | macOS only |
| upstream | not-affected | debian: Specific to MacOS |
Debian
| Release | Status | Fixed Version | Urgency |
|---|---|---|---|
| bullseye | fixed | 2.3.7+dfsg1-1 | - |
| bookworm | fixed | 2.8.0-1.1 | - |
| trixie | fixed | 2.26.3+dfsg-1 | - |
| forky, sid | fixed | 2.32.5+dfsg-2 | - |
| (unstable) | not-affected | - | - |
EUVD-2025-21392
NVD
CVE.org
EPSS
GitHub
Exploit-DB