CVE-2026-68508: CWE-94: Improper Control of Generation of Code ('Code Injection') in facebookresearch hydra
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.
CVSS v3.1
Score 7.8high
Affected software
facebookresearch
hydra
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Hydra is a configuration framework that prior to version 1.3.4 used hydra.utils.instantiate() to resolve and call Python objects specified by configuration through _resolve_target(). This allowed attacker-controlled target values and arguments to select dangerous callables, enabling arbitrary code execution within the process. Applications passing untrusted configuration, CLI overrides, or model metadata into instantiate() are vulnerable. Version 1.3.4 mitigates this by implementing target blocking with an explicit HYDRA_INSTANTIATE_ALLOWLIST_OVERRIDE escape hatch.
Potential Impact
An attacker able to influence configuration or CLI overrides passed to hydra.utils.instantiate() can execute arbitrary code in the affected process. This includes reading or modifying files and credentials or terminating the process, resulting in high confidentiality, integrity, and availability impact.
Mitigation Recommendations
Upgrade to facebookresearch hydra version 1.3.4 or later, where this vulnerability is fixed by adding target blocking with an explicit allowlist override. Patch status is confirmed fixed in 1.3.4. No other mitigations are indicated.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-30T16:19:08.081Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a88b3a2acd9273b49af19fc
Added to database: 08/21/2026, 20:22:58 UTC
Last enriched: 08/21/2026, 20:37:04 UTC
Last updated: 10/05/2026, 18:48:21 UTC
Views: 134
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.