CVE-2024-32657

Hydra has persistent XSS vulnerability serving HTML build outputs

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.

Category

4.6
CVSS
Severity: Medium
CVSS 3.1 •
EPSS 0.14%
Affected: NixOS hydra
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2024-32657?
CVE-2024-32657 has been scored as a medium severity vulnerability.
How to fix CVE-2024-32657?
To fix CVE-2024-32657, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2024-32657 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2024-32657 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2024-32657?
CVE-2024-32657 affects NixOS hydra.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.