{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-106440","id":"CVE-2026-106440","title":"Hydra: Optuna custom_search_space can resolve and execute untrusted callables via get_method","description":"Hydra is a framework for elegantly configuring complex applications. From 1.2.0 until 1.3.0 and 1.4.0.dev10, the hydra-optuna-sweeper package accepts a configuration-controlled dotted path in hydra.sweeper.custom_search_space, resolves it with hydra.utils.get_method(), and later invokes the returned callable in the Hydra controller process. Because get_method() is a trusted-input lookup helper and","descriptionLong":"Hydra is a framework for elegantly configuring complex applications. From 1.2.0 until 1.3.0 and 1.4.0.dev10, the hydra-optuna-sweeper package accepts a configuration-controlled dotted path in hydra.sweeper.custom_search_space, resolves it with hydra.utils.get_method(), and later invokes the returned callable in the Hydra controller process. Because get_method() is a trusted-input lookup helper and does not apply the execution policy used by instantiate(), an attacker who controls Optuna sweep configuration or command-line overrides can select importable Python code for execution with the application's privileges, including bypassing a trusted execution whitelist on affected Hydra 1.4 development releases. This issue is fixed in versions 1.3.0 and 1.4.0.dev10.","published":"2026-10-06T18:51:37.549Z","updated":"2026-10-28T02:31:11.947429887Z","reserved":"2026-10-06T16:49:40.590Z","status":"Awaiting Analysis","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"github.com"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["hydra-ecosystem hydra"],"affectedProducts":[{"vendor":"hydra-ecosystem","product":"hydra","defaultStatus":null,"versions":[{"version":">= 1.2.0, < 1.3.0","status":"affected"},{"version":">= 1.4.0.dev4, < 1.4.0.dev10","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"hydra-optuna-sweeper","purl":"pkg:pypi/hydra-optuna-sweeper","ranges":[">=1.2.0 <1.3.0",">=1.4.0.dev4 <1.4.0.dev10"],"fixed":["1.3.0","1.4.0.dev10"],"advisory":"GHSA-5jjj-9xc3-rm56"}],"cwes":["CWE-470"],"aliases":["GHSA-5jjj-9xc3-rm56","PYSEC-2026-4224"],"references":[{"url":"https://github.com/hydra-ecosystem/hydra/security/advisories/GHSA-5jjj-9xc3-rm56","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/hydra-ecosystem/hydra/commit/0dd18084589a3d3e577d1f1a8a48fb485c94a5e6","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/hydra-ecosystem/hydra/commit/4720dfca2bde27fa140ec287a05709668fbdf168","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/hydra-ecosystem/hydra/releases/tag/v1.3.7","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/106xxx/CVE-2026-106440.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-106440","tags":["advisory"]},{"url":"https://github.com/hydra-ecosystem/hydra","tags":["package"]},{"url":"https://pypi.org/project/hydra-optuna-sweeper","tags":["package"]},{"url":"https://github.com/advisories/GHSA-5jjj-9xc3-rm56","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00271,"epssPercentile":0.1972,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-106440","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-106440","ok":true,"note":"Awaiting Analysis"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-106440","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-5jjj-9xc3-rm56","ok":true,"note":"GHSA-5jjj-9xc3-rm56"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-106440","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}