Improper Certificate Validation in nix - CVE-2024-47174

 

Improper Certificate Validation in nix - CVE-2024-47174

Published: September 26, 2024 / Updated: April 8, 2026


Vulnerability identifier: #VU125375
CSH Severity: Medium
CVSS v4: 8.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2024-47174
CWE-ID: CWE-295
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to disclose sensitive information.

The vulnerability exists due to improper certificate validation in <nix/fetchurl.nix> when establishing HTTPS connections. A remote attacker can perform a man-in-the-middle attack to disclose sensitive information.

Credentials may be exposed when authentication is supplied through a netrc file or through derivations using impureEnvVars.


Affected software

nix
Ubuntu
nix (Ubuntu package)

How to mitigate CVE-2024-47174

Install security update from vendor's website.

nix - addressed in versions 2.18.8, 2.24.8
nix (Ubuntu package) - addressed in versions 2.6.0+dfsg-3ubuntu0.1~esm1, 2.18.1+dfsg-1ubuntu5+esm2

External References

Related Security Bulletins