CVE-2025-32435 Hydra no restricted eval after nix-eval-jobs migration
Attackers can execute arbitrary code in Hydra to access secrets accessible by the hydra user, bypassing intended evaluation restrictions.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2025-32435?
CVE-2025-32435 is a low-severity code injection vulnerability in NixOS hydra, published on 15 Apr 2025. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
Hydra is a Continuous Integration service for Nix based projects. Evaluation of untrusted non-flake nix code could potentially access secrets that are accessible by the hydra user/group. This should not affect the signing keys, that are owned by the hydra-queue-runner and hydra-www users respectively.
Weakness: CWE-95
Which versions are affected by CVE-2025-32435?
It affects 1 product.
Products include Nixos Hydra.
How do I fix CVE-2025-32435?
No fix has been published for CVE-2025-32435 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2025-32435 being exploited?
There is no known exploitation of CVE-2025-32435 in the wild and no public exploit code.
Other vulnerabilities in NixOS hydra
- CVE-2024-45049 Nix Hydra Missing authentication when triggering evaluations
- 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
Sources
Also known as GHSA-j7w7-965w-vjxw.