Vulnerability · Published Aug 21, 2026 · Assigned by GitHub_M

CVE-2026-68508Hydra: hydra.utils.instantiate with untrusted config can lead to code execution

High 7.8

In plain English

A high-severity code injection in hydra from facebookresearch. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 40% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.8High
Exploit odds (30 days)0.5%top 60.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIhydra-core1.3.4GHSA-2cp2-2r3c-7p7r
PyPIhydra-core1.3.4PYSEC-2026-3850

Affected products (as reported)

VendorProductVersions
facebookresearch hydra < 1.3.4

Weakness: CWE-94, CWE-470 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

References