CVE-2024-32657
published medium CVSS 3.1 · 4.6Hydra has persistent XSS vulnerability serving HTML build outputs
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| NixOS | — | hydra< b72528be5074f3e62e9ae2c2ae8ef9c07a0b4dd3 · < 23.11 | Affected | Not stated | GitHub_M |
| nixos | — | hydra0 to < 23.11 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| nixos | — | hydra0 to < b72528be5074f3e62e9ae2c2ae8ef9c07a0b4dd3 · Other versions: unknown | Affected | Not stated | CISA-ADP |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.6 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| NixOS | hydra | < b72528be5074f3e62e9ae2c2ae8ef9c07a0b4dd3 (affected)< 23.11 (affected) | GitHub_M · cna |
| nixos | hydra | 0 to < 23.11 (affected · semver)Default: unknown | CISA-ADP · adp |
| nixos | hydra | 0 to < b72528be5074f3e62e9ae2c2ae8ef9c07a0b4dd3 (affected · git)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-79 CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
4Provider assertions
3GitHub_M · cna
Hydra has persistent XSS vulnerability serving HTML build outputs
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- ae9d6b806a31b77ddb4849509605dfd87bab6e26107cfaac4477731e74999a1f
- Ingested
- 23 Sep 2026, 08:22:54 UTC
- Source record
- Official CVE record