CVE-2025-32438

Local privilege escalation in make-initrd-ng

State
Published
Severity
8.8 High
Published
Apr 15, 2025
Updated
Apr 15, 2025
Reserved
Apr 8, 2025

Read the record on cve.org

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;.

Scores

CVSSScoreVectorSource
3.18.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:HGitHub_M

Weaknesses

  • CWE-378 Creation of Temporary File With Insecure Permissions
  • CWE-379 Creation of Temporary File in Directory with Insecure Permissions

Affected Products

ProductVersions
nixpkgsNixOS
  • < b17590193d8e5697000c23c66afcf11e1753734dAffected
  • < fbf76bf72b161b9f4ab97704a8258776d5f3ffbaAffected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.