Medium severity · published Apr 22, 2024
CVE-2024-32657
Hydra has persistent XSS vulnerability serving HTML build outputs
5.4
CVSS
0.5%
EPSS
No
On KEV
Description
Hydra is a Continuous Integration service for Nix based projects. Attackers can execute arbitrary code in the browser context of Hydra and execute authenticated HTTP requests. The abused feature allows Nix builds to specify files that Hydra serves to clients. One use of this functionality is serving NixOS `.iso` files. The issue is only with html files served by Hydra. The issue has been patched on https://hydra.nixos.org around 2024-04-21 14:30 UTC. The nixpkgs package were fixed in unstable and 23.11. Users with custom Hydra packages can apply the fix commit to their local installations. The vulnerability is only triggered when opening HTML build artifacts, so not opening them until the vulnerability is fixed works around the issue.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
Required
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.5% · higher than 40% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
HY
hydra · NixOS
< b72528be5074f3e62e9ae2c2ae8ef9c07a0b4dd3; < 23.11 · source: vendor, NVD, CISA
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-32657
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-32657
Patch
https://github.com/NixOS/hydra/commit/b72528be5074f3e62e9ae2c2ae8ef9c07a0b4dd3
Vendor Advisory
https://github.com/NixOS/hydra/security/advisories/GHSA-2p75-6g9f-pqgx
Issue Tracking
https://github.com/NixOS/nixpkgs/pull/306017
Issue Tracking
https://github.com/NixOS/nixpkgs/pull/306018
More from hydra
7.5
CVE-2025-54864
Hydra missing authentication when triggering evaluations through GitHub and Gitea plugins
7.5
CVE-2024-45049
Nix Hydra Missing authentication when triggering evaluations
6.1
CVE-2025-54800
Hydra persistent XSS in build metrics
2.6
CVE-2025-32435
Hydra no restricted eval after nix-eval-jobs migration
