CVE-2024-45049 Nix Hydra Missing authentication when triggering evaluations
Attackers can trigger unauthenticated evaluations in Nix Hydra, potentially causing denial of service by consuming system resources.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-45049?
CVE-2024-45049 is a high-severity missing authorization vulnerability in NixOS hydra, published on 27 Aug 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Hydra is a Continuous Integration service for Nix based projects. It is possible to trigger evaluations in Hydra without any authentication. Depending on the size of evaluations, this can impact the availability of systems. The problem can be fixed by applying https://github.com/NixOS/hydra/commit/f73043378907c2c7e44f633ad764c8bdd1c947d5 to any Hydra package. Users are advised to upgrade. Users unable to upgrade should deny the `/api/push` route in a reverse proxy. This also breaks the "Evaluate jobset" button in the frontend.
Weakness: CWE-306
Which versions are affected by CVE-2024-45049?
It affects 1 product.
Products include Nixos Hydra.
How do I fix CVE-2024-45049?
No fix has been published for CVE-2024-45049 yet. Limit exposure of the affected software until one is available.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2024-45049 being exploited?
There is no known exploitation of CVE-2024-45049 in the wild and no public exploit code.
Other vulnerabilities in NixOS hydra
- CVE-2025-54800 Hydra persistent XSS in build metrics
- CVE-2025-54864 Hydra missing authentication when triggering evaluations through GitHub and Gitea plugins
- CVE-2024-32657 Hydra has persistent XSS vulnerability serving HTML build outputs
- CVE-2025-32435 Hydra no restricted eval after nix-eval-jobs migration
Sources
Also known as GHSA-xv29-v93r-2f5v.