{"id":"CVE-2026-106440","published":"2026-10-06T18:51:37Z","modified":"2026-10-09T01:39:38Z","title":"Hydra: Optuna custom_search_space can resolve and execute untrusted callables via get_method","vendor":"hydra-ecosystem","product":"hydra","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00412,"percentile":0.27005,"provenance":"source"},"cwes":[{"id":"CWE-470","name":"Use of Externally-Controlled Input to Select Classes or Code"}],"references":[{"url":"https://github.com/hydra-ecosystem/hydra/security/advisories/GHSA-5jjj-9xc3-rm56","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/hydra-ecosystem/hydra/commit/0dd18084589a3d3e577d1f1a8a48fb485c94a5e6","tags":["x_refsource_MISC"]},{"url":"https://github.com/hydra-ecosystem/hydra/commit/4720dfca2bde27fa140ec287a05709668fbdf168","tags":["x_refsource_MISC"]},{"url":"https://github.com/hydra-ecosystem/hydra/releases/tag/v1.3.7","tags":["x_refsource_MISC"]}],"priority":{"score":10.9,"factors":[{"name":"EPSS percentile","points":5.4},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"hydra-ecosystem","affectedVersions":[{"vendor":"hydra-ecosystem","product":"hydra","versions":[">= 1.2.0, < 1.3.0",">= 1.4.0.dev4, < 1.4.0.dev10"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-10-09T01:39:29.434404Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"hydra-optuna-sweeper","vulnerableRanges":[">=1.2.0, <1.3.0",">=1.4.0.dev4, <1.4.0.dev10"],"patched":["1.3.0","1.4.0.dev10"],"from":["GHSA-5jjj-9xc3-rm56","PYSEC-2026-4224"],"provenance":"source"}],"summary":{"text":"Hydra's hydra-optuna-sweeper package (affected from 1.2.0 until 1.3.0 and 1.4.0.dev10) resolves a configuration-supplied dotted path in hydra.sweeper.custom_search_space via get_method(), then invokes the resulting callable in the Hydra controller process. An attacker who can control Optuna sweep configuration or command-line overrides, and who can get a user to run the affected application, can cause importable Python code of their choosing to run with the application's privileges, including bypassing the execution whitelist on affected 1.4 development releases.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:04:47Z"},"euvd":{"id":"EUVD-2026-93661","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-hydra-ecosystem-hydra-cve-2026-106439","children":[{"from":"CVE-2026-106440","to":"CVE-2026-106441","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":[".flake8","hydra/_internal/hydra.py","hydra/_internal/instantiate/_instantiate2.py","hydra/_internal/logging_config.py","hydra/_internal/target_policy.py"],"commits":["https://github.com/hydra-ecosystem/hydra/commit/0dd18084589a3d3e577d1f1a8a48fb485c94a5e6","https://github.com/hydra-ecosystem/hydra/commit/4720dfca2bde27fa140ec287a05709668fbdf168","https://github.com/hydra-ecosystem/hydra/commit/76bfc30ce1f3105416941dd2e3a562568e369120","https://github.com/hydra-ecosystem/hydra/commit/ff3e4dba890c29a21d8c2bb867ee87d37ccf21d0"],"basis":"shared function","functions":["_resolve_target","run_job"]}]},{"from":"CVE-2026-106440","to":"CVE-2026-106442","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["hydra/_internal/instantiate/_instantiate2.py","news/3411.bugfix"],"commits":["https://github.com/hydra-ecosystem/hydra/commit/0dd18084589a3d3e577d1f1a8a48fb485c94a5e6","https://github.com/hydra-ecosystem/hydra/commit/4720dfca2bde27fa140ec287a05709668fbdf168","https://github.com/hydra-ecosystem/hydra/commit/2c82bbb3f39603b336cb852461739fdf7a38798a","https://github.com/hydra-ecosystem/hydra/commit/f462811117b5ecfd2ed652ed52d6b4e3771bd943"],"basis":"shared function","functions":["_call_target","_resolve_target"]}]}]}}