CVE-2023-36476
NixOS vulnerability analysis and mitigation

Overview

calamares-nixos-extensions, which provides Calamares branding and modules for NixOS (a distribution of GNU/Linux), was found to contain a security vulnerability affecting version 0.3.12 and prior. The vulnerability was discovered in June 2023 and involves the exposure of LUKS encryption key files in plaintext format. Users who installed NixOS through the graphical calamares installer, with an unencrypted /boot, on either non-UEFI systems or with a LUKS partition different from / were affected (GitHub Advisory).

Technical details

The vulnerability exposes LUKS disk encryption key files in /boot as a plaintext CPIO archive attached to the NixOS initrd. The issue has been assigned CVE-2023-36476 and received a CVSS v3.1 base score of 7.9 (HIGH) with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N. The vulnerability is classified under CWE-522 (Insufficiently Protected Credentials) and CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor) (NVD).

Impact

The vulnerability exposes LUKS encryption key files in plaintext, potentially allowing unauthorized access to encrypted partitions. This affects systems installed through the graphical installer with specific configurations, particularly those with unencrypted /boot partitions. The exposure of these encryption keys could compromise the confidentiality of data stored in encrypted partitions (GitHub Advisory).

Mitigation and workarounds

A patch has been released in version 0.3.13 of calamares-nixos-extensions. For affected users, a workaround involves rebooting with a trusted NixOS live environment, mounting the rootfs and LUKS devices, backing up valuable data, performing a re-encryption procedure using cryptsetup reencrypt, removing mentions of boot.initrd.secrets."crypto_keyfile.bin" from the NixOS configuration, and rebuilding the system. The fix has been implemented in commit 837ca4d (GitHub Patch).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-48606HIGH7.8
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48625HIGH7
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48608MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48569MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-65799MEDIUM4.3
  • NixOSNixOS
  • memos
NoYesDec 08, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management