GHSA-2cp2-2r3c-7p7r: Hydra: hydra.utils.instantiate with untrusted config can lead to code execution
Summary
Hydra's `instantiate()` function (which constructs objects and calls functions based on configuration files) can execute arbitrary code if an attacker controls the `_target_` field in untrusted config. This means if your application loads config from an untrusted source and passes it to `instantiate()`, an attacker can trick it into running malicious code.
Solution / Mitigation
Upgrade to Hydra 1.3.4 or newer, which adds a blacklist of dangerous targets. For applications handling untrusted config, validate `_target_` values against a trusted allowlist (a list of approved values) before calling `instantiate()`. The unreleased Hydra 1.4 uses an allowlist-based model that fully addresses this vulnerability.
Vulnerability Details
EPSS: 0.0%
Yes
August 21, 2026
Classification
Affected Vendors
Affected Packages
Related Issues
CVE-2026-63086: text-generation-inference through 3.3.7 contains a server-side request forgery (SSRF) vulnerability in the OpenAI-compat
CVE-2024-37052: Deserialization of untrusted data can occur in versions of the MLflow platform running version 1.1.0 or newer, enabling
Original source: https://github.com/advisories/GHSA-2cp2-2r3c-7p7r
First tracked: August 21, 2026 at 08:00 PM
Classified by LLM (prompt v3) · confidence: 92%