CVE-2025-32438 Details
Description
make-initrd-ng is a tool for copying binaries and their dependencies. Local privilege escalation affecting all NixOS users. With systemd.shutdownRamfs.enable enabled (the default) a local user is able to create a program that will be executed by root during shutdown. Patches exist for NixOS 24.11 and 25.05 / unstable. As a workaround, set systemd.shutdownRamfs.enable = false;.
A local privilege escalation vulnerability has been identified in the make-initrd-ng tool, which is used for copying binaries and their dependencies. This issue affects all NixOS users. The vulnerability arises when the systemd.shutdownRamfs.enable option is activated, which is the default setting. Under these conditions, a local user can create a program that is executed by the root user during the shutdown process.
Users can disable the vulnerable behavior by setting systemd.shutdownRamfs.enable to false. Patches are also available for NixOS versions 24.11 and 25.05/unstable.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Apr 15, 2025CISA-ADP
Assessed Apr 15, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/NixOS/nixpkgs/commit/b17590193d8e5697000c23c66afcf11e1753734d | [email protected] | Source CodeVendor |
| https://github.com/NixOS/nixpkgs/commit/fbf76bf72b161b9f4ab97704a8258776d5f3ffba | [email protected] | Source CodeVendor |
| https://github.com/NixOS/nixpkgs/security/advisories/GHSA-m7pq-h9p4-8rr4 | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-378 | Creation of Temporary File With Insecure Permissions | [email protected] |
| CWE-379 | Creation of Temporary File in Directory with Insecure Permissions | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| NixOS | >= 22.05, <= 24.11 |
CPE
Remediation
| |
| NixOS make-initrd-ng | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 15, 2025 | New CVE Received | [email protected] |
Volerion