Intel

AIKIDO-2026-794998

hydra-optuna-sweeper is vulnerable to Unsafe Reflection

Unsafe ReflectionGHSA-5jjj-9xc3-rm56 Published 2 days ago

78

High Risk

This Affects:

PYTHONhydra-optuna-sweeper
1.2.0 - 1.2.0
Fixed in 1.3.0
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.

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.

Background info

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

How to fix this

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

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform