CVE-2026-68508CWE-470CWE-94code-injection

CVE-2026-68508

High · published August 22, 2026

CVSS v3.1
7.8
EPSS
0%
Percentile
38.6
In the wild
Unconfirmed
What it is

Hydra is a framework for elegantly configuring complex applications. Prior to 1.3.4, hydra.utils.instantiate() resolves and calls Python objects selected by configuration through _resolve_target() in hydra/_internal/instantiate/_instantiate2.py, allowing attacker-controlled target values and arguments to choose dangerous callables. A consuming application, library, CLI workflow, or model loader that passes untrusted configuration, CLI overrides, or model metadata into hydra.utils.instantiate() can therefore execute arbitrary code in its own process, including reading or modifying files and credentials or terminating the process. Version 1.3.4 adds target blocking with an explicit HYDRA_INSTANTIATE_ALLOWLIST_OVERRIDE escape hatch. This issue is fixed in version 1.3.4.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00456 · 38.6th percentile
Weaknesses
CWE-470 · Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection'); CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2026-08-22T01:17Z
References (5)
EPSS history
Timeline
  • 21 AUG 20:09Z
    Hydra: hydra.utils.instantiate with untrusted config can lead to code execution
    cvelistv5