Skip to main content
EPSS 0.5%top 63%

CVE-2026-68508: CWE-94: Improper Control of Generation of Code ('Code Injection') in facebookresearch hydra

0
High
Published: 08/21/2026 (08/21/2026, 20:09:26 UTC)
Source: CVE Database V5
Vendor/Project: facebookresearch
Product: 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

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected software

facebookresearch

hydra

Affected versions
<1.3.4
hydra-core
pkg:pypi/hydra-core
Affected versions
<1.3.4

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

AILast updated: 08/21/2026, 20:37:04 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses