Hydra Optuna sweeper executes untrusted callables from configuration
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
Hydra and the hydra-optuna-sweeper package from 1.2.0 before 1.3.0 and from 1.4.0.dev4 before 1.4.0.dev10 are affected. The sweeper resolves hydra.sweeper.custom_search_space with get_method(), which skips the execution policy used by instantiate(). An attacker who controls sweep configuration or command-line overrides can run importable Python code with the application's privileges. On affected 1.4 development releases this also bypasses a trusted execution whitelist.
Written with Claude Haiku 5.5 from the sources below · 2026-10-29
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| hydra-ecosystem | hydra | 1.2.0 to before 1.3.0; 1.4.0.dev4 to before 1.4.0.dev10 | 1.3.0, 1.4.0.dev10 | Patch available | CNA |
| — | hydra-optuna-sweeper (PyPI) | 1.2.0 to before 1.3.0 | 1.3.0 | Patch available | GHSA-5jjj-9xc3-rm56 |
| — | hydra-optuna-sweeper (PyPI) | 1.4.0.dev4 to before 1.4.0.dev10 | 1.4.0.dev10 | Patch available | GHSA-5jjj-9xc3-rm56 |
- hydra Vendorhydra-ecosystem Affected 1.2.0 to before 1.3.0; 1.4.0.dev4 to before 1.4.0.dev10 Fixed in 1.3.0, 1.4.0.dev10 Patch available CNA
- hydra-optuna-sweeper (PyPI) Vendor— Affected 1.2.0 to before 1.3.0 Fixed in 1.3.0 Patch available GHSA-5jjj-9xc3-rm56
- hydra-optuna-sweeper (PyPI) Vendor— Affected 1.4.0.dev4 to before 1.4.0.dev10 Fixed in 1.4.0.dev10 Patch available GHSA-5jjj-9xc3-rm56
Remediation
Update hydra-optuna-sweeper to 1.3.0 or 1.4.0.dev10. The sources list no fixed version for hydra.
Written with Claude Haiku 5.5 from the sources below · 2026-10-29
- Fix · CNA hydra (hydra-ecosystem) Fixed in 1.3.0, 1.4.0.dev10
- Fix · GHSA-5jjj-9xc3-rm56 hydra-optuna-sweeper (PyPI) Fixed in 1.3.0 Advisory →
- Fix · GHSA-5jjj-9xc3-rm56 hydra-optuna-sweeper (PyPI) Fixed in 1.4.0.dev10 Advisory →
Vendor assessments
Timeline
- 2026-10-06 Threatist record created from CVE-2026-106440
- 2026-10-07 Alias added: GHSA-5jjj-9xc3-rm56
- 2026-10-07 Fix available: PyPI/[email protected], PyPI/[email protected] · GHSA-5jjj-9xc3-rm56
- 2026-10-07 CVSS score added · GHSA-5jjj-9xc3-rm56
- 2026-10-07 Weakness changed · GHSA-5jjj-9xc3-rm56
- 2026-10-07 6 new references · GHSA-5jjj-9xc3-rm56
- 2026-10-07 Priority changed: MEDIUM → LOW
- 2026-10-08 Affected versions changed · Red Hat
- 2026-10-08 CVSS score added · Red Hat
- 2026-10-09 CISA SSVC decision points changed
References
Other 5
- https://github.com/hydra-ecosystem/hydra/security/advisories/GHSA-5jjj-9xc3-rm56
- https://github.com/hydra-ecosystem/hydra/commit/0dd18084589a3d3e577d1f1a8a48fb485c94a5e6
- https://github.com/hydra-ecosystem/hydra/commit/4720dfca2bde27fa140ec287a05709668fbdf168
- https://github.com/hydra-ecosystem/hydra/releases/tag/v1.3.7
- https://github.com/hydra-ecosystem/hydra
More hydra-ecosystem vulnerabilities
- TI-2026-68891 Mutable policy state in Hydra allows blocklist bypass CVSS 4.0HIGH 8.5
- TI-2026-68894 Hydra instantiate() blacklist bypass allows code execution CVSS 3.1HIGH 7.8
- TI-2026-68893 Hydra logging configuration lets attackers invoke importable classes CVSS 3.1HIGH 7.8
- TI-2026-79750 Arbitrary module import in hydra-ray-launcher CVSS 4.0MEDIUM 4.8
Sources
- CVE-2026-106440 · CVE Program
- CVE-2026-106440 · NVD
- FIRST EPSS
- GHSA-5jjj-9xc3-rm56 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-106440 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences