Intel

AIKIDO-2026-794998

hydra-optuna-sweeper is vulnerable to Unsafe Reflection

CVE-2026-106440Published Sep 22, 2026
September 22, 2026

78

CVE Score

High

Unsafe Reflection

Are you affected? Scan for Free

TL;DR

The Optuna sweeper's custom_search_space configuration option resolves a config-controlled dotted path with the lower-level hydra.utils.get_method() API and later invokes the returned callable. get_method() and its sibling object-lookup helpers intentionally trust their input and skip the execution policy used by instantiate(), so an Optuna multirun configuration or command-line override can select any importable callable in the application's environment for execution in the Hydra controller process. The selected code runs with the privileges of the application and requires only control over the sweep configuration plus an importable target. The fix resolves the configured callback through hydra.utils.instantiate() as a partial callable instead, so the active execution policy authorizes it before use.

How do I fix this?

Upgrade the hydra-optuna-sweeper library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you set the Optuna sweeper's custom_search_space option to a configuration-controlled or externally influenced dotted path.

Versions

1.2.0 - 1.2.0

Fixed in 1.3.0

Background info

hydra-optuna-sweeper is vulnerable to Unsafe Reflection in versions 1.2.0 - 1.2.0.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea