Improper Certificate Validation in nix - CVE-2024-47174
Published: September 26, 2024 / Updated: April 8, 2026
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
Ubuntu
nix (Ubuntu package)
How to mitigate CVE-2024-47174
nix (Ubuntu package) - addressed in versions 2.6.0+dfsg-3ubuntu0.1~esm1, 2.18.1+dfsg-1ubuntu5+esm2