Skip to content

CVE-2026-44028 nix: coroutine stack-to-heap overflow via unbounded recursion in NAR directory parser

HighCVSS 7.5 EPSS 0.18%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
UbuntuDebianRed Hat

Description

An issue was discovered in Nix before 2.34.7 and Lix before 2.95.2. Unbounded recursion in the NAR (Nix Archive) parser could lead to a stack-to-heap overflow when the parser is run on a coroutine stack. The stack is allocated without a guard page, which means that a stack overflow could overwrite memory on the heap and could allow arbitrary code execution as the Nix daemon (run as root in multi-user installations) if ASLR hardening is bypassed. This can be exploited by all users able to connect to the daemon (e.g., in Nix, this is configurable via the allowed-users setting, defaulting to all users). The fixed versions are 2.34.7, 2.33.6, 2.32.8, 2.31.5, 2.30.5, 2.29.4, and 2.28.7 for Nix (introduced in 2.24.4); and 2.95.2, 2.94.2, and 2.93.4 for Lix (introduced in 2.93.0).

Upgrade path

12 packages: 7 fixed, 5 with no fix yet.

PackageAffectedFixed inStatus
debian/nix(Debian 13) = 2.26.3+dfsg-1; = 2.32.5+dfsg-1; = 2.32.5+dfsg-2; = 2.34.3+dfsg-1 +3 more No fix listed No fix yet
ubuntu/nix(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/nix(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/nix(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/nix(Ubuntu 26.10) All versions No fix listed No fix yet
debian/nix(Debian 14) < 2.34.8+dfsg-1; = 2.26.3+dfsg-1; = 2.32.5+dfsg-1; = 2.32.5+dfsg-2 +2 more 2.34.8+dfsg-1 Fixed
Lix Project Lix >= 2.93.0, < 2.93.4; >= 2.94.0, < 2.94.2; >= 2.95.0, < 2.95.2 2.93.4, 2.94.2, 2.95.2 Fixed
NixOS Nix >= 2.24.4, < 2.28.7; >= 2.29.0, < 2.29.4; >= 2.30.0, < 2.30.5; >= 2.31.0, < 2.31.5 +3 more 2.28.7, 2.29.4, 2.30.5, 2.31.5, 2.32.8, 2.33.6, 2.34.7 Fixed
redhat/bootc-main(Red Hat hummingbird 1) < 1.14.0-0.1.1.hum1 1.14.0-0.1.1.hum1 Fixed
redhat/chunkah-main(Red Hat hummingbird 1) < 0.4.0-1.hum1 0.4.0-1.hum1 Fixed
redhat/ruff-main(Red Hat hummingbird 1) < 0.15.11-1.hum1 0.15.11-1.hum1 Fixed
redhat/rust-main(Red Hat hummingbird 1) < 1.95.0-2.hum1 1.95.0-2.hum1 Fixed

Affected products

ProductAffected versionsFixed in
NixOS Nix >= 2.24.4, < 2.28.7 2.28.7
NixOS Nix >= 2.29.0, < 2.29.4 2.29.4
NixOS Nix >= 2.30.0, < 2.30.5 2.30.5
NixOS Nix >= 2.31.0, < 2.31.5 2.31.5
NixOS Nix >= 2.32.0, < 2.32.8 2.32.8
NixOS Nix >= 2.33.0, < 2.33.6 2.33.6
NixOS Nix >= 2.34.0, < 2.34.7 2.34.7
Lix Project Lix >= 2.93.0, < 2.93.4 2.93.4
Lix Project Lix >= 2.94.0, < 2.94.2 2.94.2
Lix Project Lix >= 2.95.0, < 2.95.2 2.95.2
redhat/chunkah-main(Red Hat:hummingbird:1) < 0.4.0-1.hum1 0.4.0-1.hum1
redhat/ruff-main(Red Hat:hummingbird:1) < 0.15.11-1.hum1 0.15.11-1.hum1
redhat/bootc-main(Red Hat:hummingbird:1) < 1.14.0-0.1.1.hum1 1.14.0-0.1.1.hum1
redhat/rust-main(Red Hat:hummingbird:1) < 1.95.0-2.hum1 1.95.0-2.hum1
debian/nix(Debian:13) All versions No fix listed
debian/nix(Debian:13) = 2.26.3+dfsg-1 No fix listed
debian/nix(Debian:13) = 2.32.5+dfsg-1 No fix listed
debian/nix(Debian:13) = 2.32.5+dfsg-2 No fix listed
debian/nix(Debian:13) = 2.34.3+dfsg-1 No fix listed
debian/nix(Debian:13) = 2.34.6+dfsg-1 No fix listed
debian/nix(Debian:13) = 2.34.8+dfsg-1 No fix listed
debian/nix(Debian:14) < 2.34.8+dfsg-1 2.34.8+dfsg-1
debian/nix(Debian:14) = 2.26.3+dfsg-1 No fix listed
debian/nix(Debian:14) = 2.32.5+dfsg-1 No fix listed
debian/nix(Debian:14) = 2.32.5+dfsg-2 No fix listed
Show 6 more
ProductAffected versionsFixed in
debian/nix(Debian:14) = 2.34.3+dfsg-1 No fix listed
debian/nix(Debian:14) = 2.34.6+dfsg-1 No fix listed
ubuntu/nix(Ubuntu:22.04) All versions No fix listed
ubuntu/nix(Ubuntu:24.04) All versions No fix listed
ubuntu/nix(Ubuntu:26.04) All versions No fix listed
ubuntu/nix(Ubuntu:26.10) All versions No fix listed

References