Read the docs

Hydra Optuna sweeper executes untrusted callables from configuration

Priority LOW 36CWE-470Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00271 19th percentileScored 2026-11-07
Fix Fixed hydra (hydra-ecosystem): 1.3.0, 1.4.0.dev10hydra-optuna-sweeper (PyPI): 1.3.0, 1.4.0.dev10

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

VendorProductAffected versionsFixed inStatusSource
hydra-ecosystemhydra1.2.0 to before 1.3.0; 1.4.0.dev4 to before 1.4.0.dev101.3.0, 1.4.0.dev10Patch availableCNA
—hydra-optuna-sweeper (PyPI)1.2.0 to before 1.3.01.3.0Patch availableGHSA-5jjj-9xc3-rm56
—hydra-optuna-sweeper (PyPI)1.4.0.dev4 to before 1.4.0.dev101.4.0.dev10Patch availableGHSA-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

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-10-06 Threatist record created from CVE-2026-106440
  2. 2026-10-07 Alias added: GHSA-5jjj-9xc3-rm56
  3. 2026-10-07 Fix available: PyPI/[email protected], PyPI/[email protected] · GHSA-5jjj-9xc3-rm56
  4. 2026-10-07 CVSS score added · GHSA-5jjj-9xc3-rm56
  5. 2026-10-07 Weakness changed · GHSA-5jjj-9xc3-rm56
  6. 2026-10-07 6 new references · GHSA-5jjj-9xc3-rm56
  7. 2026-10-07 Priority changed: MEDIUM → LOW
  8. 2026-10-08 Affected versions changed · Red Hat
  9. 2026-10-08 CVSS score added · Red Hat
  10. 2026-10-09 CISA SSVC decision points changed

References

  • 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