{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2024-32657",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2024-04-16T14:15:26.877Z",
        "datePublished": "2024-04-22T22:24:06.762Z",
        "dateUpdated": "2024-08-02T02:13:40.333Z"
    },
    "containers": {
        "cna": {
            "title": "Hydra has persistent XSS vulnerability serving HTML build outputs",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-79",
                            "lang": "en",
                            "description": "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "attackComplexity": "LOW",
                        "attackVector": "NETWORK",
                        "availabilityImpact": "NONE",
                        "baseScore": 4.6,
                        "baseSeverity": "MEDIUM",
                        "confidentialityImpact": "LOW",
                        "integrityImpact": "LOW",
                        "privilegesRequired": "LOW",
                        "scope": "UNCHANGED",
                        "userInteraction": "REQUIRED",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N",
                        "version": "3.1"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/NixOS/hydra/security/advisories/GHSA-2p75-6g9f-pqgx",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/NixOS/hydra/security/advisories/GHSA-2p75-6g9f-pqgx"
                },
                {
                    "name": "https://github.com/NixOS/nixpkgs/pull/306017",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/NixOS/nixpkgs/pull/306017"
                },
                {
                    "name": "https://github.com/NixOS/nixpkgs/pull/306018",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/NixOS/nixpkgs/pull/306018"
                },
                {
                    "name": "https://github.com/NixOS/hydra/commit/b72528be5074f3e62e9ae2c2ae8ef9c07a0b4dd3",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/NixOS/hydra/commit/b72528be5074f3e62e9ae2c2ae8ef9c07a0b4dd3"
                }
            ],
            "affected": [
                {
                    "vendor": "NixOS",
                    "product": "hydra",
                    "versions": [
                        {
                            "version": "< b72528be5074f3e62e9ae2c2ae8ef9c07a0b4dd3",
                            "status": "affected"
                        },
                        {
                            "version": "< 23.11",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2024-04-22T22:24:06.762Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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."
                }
            ],
            "source": {
                "advisory": "GHSA-2p75-6g9f-pqgx",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "affected": [
                    {
                        "vendor": "nixos",
                        "product": "hydra",
                        "cpes": [
                            "cpe:2.3:a:nixos:hydra:*:*:*:*:*:*:*:*"
                        ],
                        "defaultStatus": "unknown",
                        "versions": [
                            {
                                "version": "0",
                                "status": "affected",
                                "lessThan": "23.11",
                                "versionType": "semver"
                            }
                        ]
                    },
                    {
                        "vendor": "nixos",
                        "product": "hydra",
                        "cpes": [
                            "cpe:2.3:a:nixos:hydra:-:*:*:*:*:*:*:*"
                        ],
                        "defaultStatus": "unknown",
                        "versions": [
                            {
                                "version": "0",
                                "status": "affected",
                                "lessThan": "b72528be5074f3e62e9ae2c2ae8ef9c07a0b4dd3",
                                "versionType": "git"
                            }
                        ]
                    }
                ],
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2024-04-23T15:14:39.830005Z",
                                "id": "CVE-2024-32657",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "yes"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-06-18T18:08:52.714Z"
                }
            },
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-02T02:13:40.333Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "name": "https://github.com/NixOS/hydra/security/advisories/GHSA-2p75-6g9f-pqgx",
                        "tags": [
                            "x_refsource_CONFIRM",
                            "x_transferred"
                        ],
                        "url": "https://github.com/NixOS/hydra/security/advisories/GHSA-2p75-6g9f-pqgx"
                    },
                    {
                        "name": "https://github.com/NixOS/nixpkgs/pull/306017",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/NixOS/nixpkgs/pull/306017"
                    },
                    {
                        "name": "https://github.com/NixOS/nixpkgs/pull/306018",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/NixOS/nixpkgs/pull/306018"
                    },
                    {
                        "name": "https://github.com/NixOS/hydra/commit/b72528be5074f3e62e9ae2c2ae8ef9c07a0b4dd3",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/NixOS/hydra/commit/b72528be5074f3e62e9ae2c2ae8ef9c07a0b4dd3"
                    }
                ]
            }
        ]
    }
}