CVE-2024-32657 (GCVE-0-2024-32657)

Vulnerability from cvelistv5 – Published: 2024-04-22 22:24 – Updated: 2024-08-02 02:13
VLAI?
Title
Hydra has persistent XSS vulnerability serving HTML build outputs
Summary
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.
CWE
  • CWE-79 - Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Assigner
Impacted products
Vendor Product Version
NixOS hydra Affected: < b72528be5074f3e62e9ae2c2ae8ef9c07a0b4dd3
Affected: < 23.11
Create a notification for this product.
Show details on NVD website

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


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…