Vulnerabilites related to NixOS - hydra
cve-2024-45049
Vulnerability from cvelistv5
Published
2024-08-27 20:33
Modified
2024-08-28 14:03
Severity ?
EPSS score ?
Summary
Hydra is a Continuous Integration service for Nix based projects. It is possible to trigger evaluations in Hydra without any authentication. Depending on the size of evaluations, this can impact the availability of systems. The problem can be fixed by applying https://github.com/NixOS/hydra/commit/f73043378907c2c7e44f633ad764c8bdd1c947d5 to any Hydra package. Users are advised to upgrade. Users unable to upgrade should deny the `/api/push` route in a reverse proxy. This also breaks the "Evaluate jobset" button in the frontend.
References
▼ | URL | Tags |
---|---|---|
https://github.com/NixOS/hydra/security/advisories/GHSA-xv29-v93r-2f5v | x_refsource_CONFIRM | |
https://github.com/NixOS/nixpkgs/pull/337766 | x_refsource_MISC | |
https://github.com/NixOS/hydra/commit/f73043378907c2c7e44f633ad764c8bdd1c947d5 | x_refsource_MISC | |
https://mastodon.delroth.net/@delroth/113029832631860419 | x_refsource_MISC |
Impacted products
{ "containers": { "adp": [ { "affected": [ { "cpes": [ "cpe:2.3:a:nixos:hydra:-:*:*:*:*:*:*:*" ], "defaultStatus": "unknown", "product": "hydra", "vendor": "nixos", "versions": [ { "lessThan": "f73043378907c2c7e44f633ad764c8bdd1c947d5", "status": "affected", "version": "0", "versionType": "custom" } ] } ], "metrics": [ { "other": { "content": { "id": "CVE-2024-45049", "options": [ { "Exploitation": "none" }, { "Automatable": "yes" }, { "Technical Impact": "partial" } ], "role": "CISA Coordinator", "timestamp": "2024-08-28T14:01:29.127323Z", "version": "2.0.3" }, "type": "ssvc" } } ], "providerMetadata": { "dateUpdated": "2024-08-28T14:03:00.616Z", "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "shortName": "CISA-ADP" }, "title": "CISA ADP Vulnrichment" } ], "cna": { "affected": [ { "product": "hydra", "vendor": "NixOS", "versions": [ { "status": "affected", "version": "\u003c f73043378907c2c7e44f633ad764c8bdd1c947d5" } ] } ], "descriptions": [ { "lang": "en", "value": "Hydra is a Continuous Integration service for Nix based projects. It is possible to trigger evaluations in Hydra without any authentication. Depending on the size of evaluations, this can impact the availability of systems. The problem can be fixed by applying https://github.com/NixOS/hydra/commit/f73043378907c2c7e44f633ad764c8bdd1c947d5 to any Hydra package. Users are advised to upgrade. Users unable to upgrade should deny the `/api/push` route in a reverse proxy. This also breaks the \"Evaluate jobset\" button in the frontend." } ], "metrics": [ { "cvssV3_1": { "attackComplexity": "LOW", "attackVector": "NETWORK", "availabilityImpact": "HIGH", "baseScore": 7.5, "baseSeverity": "HIGH", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "privilegesRequired": "NONE", "scope": "UNCHANGED", "userInteraction": "NONE", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H", "version": "3.1" } } ], "problemTypes": [ { "descriptions": [ { "cweId": "CWE-306", "description": "CWE-306: Missing Authentication for Critical Function", "lang": "en", "type": "CWE" } ] } ], "providerMetadata": { "dateUpdated": "2024-08-27T20:33:01.326Z", "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "shortName": "GitHub_M" }, "references": [ { "name": "https://github.com/NixOS/hydra/security/advisories/GHSA-xv29-v93r-2f5v", "tags": [ "x_refsource_CONFIRM" ], "url": "https://github.com/NixOS/hydra/security/advisories/GHSA-xv29-v93r-2f5v" }, { "name": "https://github.com/NixOS/nixpkgs/pull/337766", "tags": [ "x_refsource_MISC" ], "url": "https://github.com/NixOS/nixpkgs/pull/337766" }, { "name": "https://github.com/NixOS/hydra/commit/f73043378907c2c7e44f633ad764c8bdd1c947d5", "tags": [ "x_refsource_MISC" ], "url": "https://github.com/NixOS/hydra/commit/f73043378907c2c7e44f633ad764c8bdd1c947d5" }, { "name": "https://mastodon.delroth.net/@delroth/113029832631860419", "tags": [ "x_refsource_MISC" ], "url": "https://mastodon.delroth.net/@delroth/113029832631860419" } ], "source": { "advisory": "GHSA-xv29-v93r-2f5v", "discovery": "UNKNOWN" }, "title": "Nix Hydra Missing authentication when triggering evaluations" } }, "cveMetadata": { "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "assignerShortName": "GitHub_M", "cveId": "CVE-2024-45049", "datePublished": "2024-08-27T20:33:01.326Z", "dateReserved": "2024-08-21T17:53:51.331Z", "dateUpdated": "2024-08-28T14:03:00.616Z", "state": "PUBLISHED" }, "dataType": "CVE_RECORD", "dataVersion": "5.1" }
cve-2025-32435
Vulnerability from cvelistv5
Published
2025-04-15 22:19
Modified
2025-04-16 13:32
Severity ?
EPSS score ?
Summary
Hydra is a Continuous Integration service for Nix based projects. Evaluation of untrusted non-flake nix code could potentially access secrets that are accessible by the hydra user/group. This should not affect the signing keys, that are owned by the hydra-queue-runner and hydra-www users respectively.
References
▼ | URL | Tags |
---|---|---|
https://github.com/NixOS/hydra/security/advisories/GHSA-j7w7-965w-vjxw | x_refsource_CONFIRM | |
https://github.com/NixOS/nixpkgs/pull/397919 | x_refsource_MISC | |
https://github.com/NixOS/hydra/commit/8d750265135b7e203520036a742afdf301b4013f | x_refsource_MISC | |
https://github.com/nix-community/nix-eval-jobs/releases/tag/v2.28.1 | x_refsource_MISC |
Impacted products
{ "containers": { "adp": [ { "metrics": [ { "other": { "content": { "id": "CVE-2025-32435", "options": [ { "Exploitation": "none" }, { "Automatable": "no" }, { "Technical Impact": "partial" } ], "role": "CISA Coordinator", "timestamp": "2025-04-16T13:32:43.320086Z", "version": "2.0.3" }, "type": "ssvc" } } ], "providerMetadata": { "dateUpdated": "2025-04-16T13:32:55.159Z", "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "shortName": "CISA-ADP" }, "title": "CISA ADP Vulnrichment" } ], "cna": { "affected": [ { "product": "hydra", "vendor": "NixOS", "versions": [ { "status": "affected", "version": "\u003c 8d750265135b7e203520036a742afdf301b4013f" } ] } ], "descriptions": [ { "lang": "en", "value": "Hydra is a Continuous Integration service for Nix based projects. Evaluation of untrusted non-flake nix code could potentially access secrets that are accessible by the hydra user/group. This should not affect the signing keys, that are owned by the hydra-queue-runner and hydra-www users respectively." } ], "metrics": [ { "cvssV3_1": { "attackComplexity": "HIGH", "attackVector": "NETWORK", "availabilityImpact": "NONE", "baseScore": 2.6, "baseSeverity": "LOW", "confidentialityImpact": "LOW", "integrityImpact": "NONE", "privilegesRequired": "LOW", "scope": "UNCHANGED", "userInteraction": "REQUIRED", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N", "version": "3.1" } } ], "problemTypes": [ { "descriptions": [ { "cweId": "CWE-95", "description": "CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code (\u0027Eval Injection\u0027)", "lang": "en", "type": "CWE" } ] } ], "providerMetadata": { "dateUpdated": "2025-04-15T22:19:46.856Z", "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "shortName": "GitHub_M" }, "references": [ { "name": "https://github.com/NixOS/hydra/security/advisories/GHSA-j7w7-965w-vjxw", "tags": [ "x_refsource_CONFIRM" ], "url": "https://github.com/NixOS/hydra/security/advisories/GHSA-j7w7-965w-vjxw" }, { "name": "https://github.com/NixOS/nixpkgs/pull/397919", "tags": [ "x_refsource_MISC" ], "url": "https://github.com/NixOS/nixpkgs/pull/397919" }, { "name": "https://github.com/NixOS/hydra/commit/8d750265135b7e203520036a742afdf301b4013f", "tags": [ "x_refsource_MISC" ], "url": "https://github.com/NixOS/hydra/commit/8d750265135b7e203520036a742afdf301b4013f" }, { "name": "https://github.com/nix-community/nix-eval-jobs/releases/tag/v2.28.1", "tags": [ "x_refsource_MISC" ], "url": "https://github.com/nix-community/nix-eval-jobs/releases/tag/v2.28.1" } ], "source": { "advisory": "GHSA-j7w7-965w-vjxw", "discovery": "UNKNOWN" }, "title": "Hydra no restricted eval after nix-eval-jobs migration" } }, "cveMetadata": { "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "assignerShortName": "GitHub_M", "cveId": "CVE-2025-32435", "datePublished": "2025-04-15T22:19:46.856Z", "dateReserved": "2025-04-08T10:54:58.368Z", "dateUpdated": "2025-04-16T13:32:55.159Z", "state": "PUBLISHED" }, "dataType": "CVE_RECORD", "dataVersion": "5.1" }
cve-2024-32657
Vulnerability from cvelistv5
Published
2024-04-22 22:24
Modified
2024-08-02 02:13
Severity ?
EPSS score ?
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.
References
▼ | URL | Tags |
---|---|---|
https://github.com/NixOS/hydra/security/advisories/GHSA-2p75-6g9f-pqgx | x_refsource_CONFIRM | |
https://github.com/NixOS/nixpkgs/pull/306017 | x_refsource_MISC | |
https://github.com/NixOS/nixpkgs/pull/306018 | x_refsource_MISC | |
https://github.com/NixOS/hydra/commit/b72528be5074f3e62e9ae2c2ae8ef9c07a0b4dd3 | x_refsource_MISC |
Impacted products
{ "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" }