Skip to main content

Hydra Framework CVE-2026-106439

| EUVDEUVD-2026-93658 HIGH
Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') (CWE-470)
2026-10-06 GitHub_M GHSA-mwj6-rfh8-7qf4
8.5
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Supply attacker-controlled Hydra config to instantiate()
  2. Exploit
    Resolve target_policy blocklist.discard via sibling target
  3. Execution
    Remove denied target from process-global policy
  4. Impact
    Invoke sibling target for code execution with app privileges

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V15 - Secure Coding and Architecture Reflection safety, class allowlisting
Exploitation Conditions

Exploitation requires the application to call instantiate() on a Hydra configuration whose sibling target entries are attacker-controlled: one sibling must resolve hydra._internal.target_policy.UNCONTROLLED_EXECUTION_TARGETS.discard to remove a denied target from the module-level (process-global) blocklist, and a later sibling - relying on insertion-order processing against that same mutated policy - must invoke the now-permitted target. Limiting factors: this only applies to versions 1.3.4 through before 1.3.7 (and before 1.4.0.dev10); it is NOT exploitable where Hydra configs are fully static/trusted, since untrusted config content is the attack surface (AV:L, UI:P - the app must passively process the malicious config); the attacker must control multiple sibling targets; and critically, a narrow execution whitelist supplied by trusted Python code is NOT bypassed by this reported direct mutation path, so environments relying on that whitelist retain protection against the disclosed vector.

Impact

The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P, score 8.5) describes a local, low-complexity flaw with high confidentiality, integrity and availability impact on the vulnerable system (VC/VI/VA:H) but no subsequent-system scope change. Despite the high score, the real-world urgency is tempered: AV:L and UI:P mean this is not remotely triggerable against a running service - it requires the application to process an attacker-controlled Hydra configuration, so the practical threat is confined to deployments that feed untrusted or externally-sourced config into instantiate(). No EPSS score, KEV listing, or public POC was provided in the input, so there is no signal of active or probable near-term exploitation (no public exploit identified at time of analysis). The description also explicitly states the reported direct mutation path does NOT bypass a narrow execution whitelist supplied by trusted Python code, which further narrows exploitability. Net: a genuinely serious code-execution weakness (CWE-470 unsafe reflection via mutable process-global policy state) for any app accepting untrusted configs, but a lower practical priority for the common case where Hydra configs are static and trusted - this is a high-severity-but-conditional issue rather than a drop-everything internet-facing emergency.

Exploit ScenarioDerived

An application loads a Hydra configuration influenced by an untrusted source and calls instantiate() on it. The attacker supplies sibling target entries where one resolves hydra._internal.target_policy.UNCONTROLLED_EXECUTION_TARGETS.discard to delete a denied target from the process-global blocklist, and a later sibling - processed in insertion order against the now-mutated policy - invokes that previously-blocked target, achieving code execution with the application's privileges. No public exploit was identified at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 06, 2026

Code execution with the hosting application's privileges is possible in Hydra 1.3.4 through versions before 1.3.7 (and before 1.4.0.dev10) when an attacker controls multiple sibling target entries in a configuration that the application passes to instantiate(). One sibling resolves hydra._internal.target_policy.UNCONTROLLED_EXECUTION_TARGETS.discard to delete a denied target from Hydra's process-global blocklist, and a later sibling - processed in insertion order against the same mutated policy - invokes the now-permitted callable; the mutation persists for the life of the process. The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P, 8.5) indicates no privileges are required and only passive user interaction, and no public exploit identified at time of analysis (not in CISA KEV, no POC referenced); exploitation is limited to deployments that feed untrusted configuration content to instantiate(), and a narrow execution whitelist supplied by trusted Python code is not bypassed by the reported direct mutation path.

RemediationAI

Upgrade Hydra to 1.3.7 or 1.4.0.dev10, which convert the execution-policy collections to immutable frozensets, relocate the policy to hydra/_internal/execution_policy.py and add context-scoped policy handling; the vendor advisory is at https://github.com/hydra-ecosystem/hydra/security/advisories/GHSA-mwj6-rfh8-7qf4 and the release is https://github.com/hydra-ecosystem/hydra/releases/tag/v1.3.7, with the principal fix commits at https://github.com/hydra-ecosystem/hydra/commit/0dd18084589a3d3e577d1f1a8a48fb485c94a5e6 and https://github.com/hydra-ecosystem/hydra/commit/4720dfca2bde27fa140ec287a05709668fbdf168. If upgrading is not immediately possible, stop passing attacker-influenced configuration content to instantiate(): treat Hydra configs that select targets as trusted input only, which removes the attack surface entirely but requires auditing every config source (files, env vars, CLI overrides, remote config stores) and may break legitimate dynamic-configuration workflows. Because the mutation is process-global and persists, running instantiate() on untrusted configs in a short-lived subprocess or disposable container limits blast radius at the cost of process-startup overhead and complicates returning objects back to the parent. Finally, keep (and do not weaken) the narrow execution whitelist supplied by trusted Python code - the disclosed direct-mutation path does not bypass that whitelist, so environments that enforce it retain protection even on unpatched versions.

Affected VersionsENISA

hydra 1.3.4, < 1.3.7
hydra 1.4.0.dev4, < 1.4.0.dev10

Affected Packages

pypi hydra-core fix: 1.3.7, 1.4.0.dev10
euvd hydra_1_3_4 fix: 1.3.7
euvd hydra_1_4_0_dev4 fix: 1.4.0.dev10

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in pypi, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause is CWE-470 (Use of Externally-Controlled Input to Select Classes or Code), specifically the storage of execution-policy collections as mutable module-level state. Hydra's legacy instantiate() blocklist - the set named hydra._internal.target_policy.UNCONTROLLED_EXECUTION_TARGETS along with related policy collections such as DEFAULT_BLACKLISTED_MODULES, CALLBACK_DISPATCH_TARGETS and the callable-descriptor binding map - was defined as ordinary mutable set/dict objects rather than immutable ones, so a configuration could name the set's own bound method (UNCONTROLLED_EXECUTION_TARGETS.discard) as an instantiate target. Resolving that entry executes the set mutation, removing a denied callable from a policy shared by every subsequent sibling target in the same process, and because sibling nodes are evaluated in insertion order, a following sibling can then invoke the previously denied target. The upstream fix renames the module to hydra/_internal/execution_policy.py, converts the collections to frozenset, removes the mutable callable-descriptor binding targets and functools.partial.__call__ from callback dispatch, adds additional callback-dispatch entries (builtins.filter, itertools.dropwhile/filterfalse/takewhile), and introduces a ContextVar/Context-based policy with a documented threat model stating that declarative instantiation and logging configuration are untrusted while installed Python code and trusted exec-whitelists are trusted, and that the policy is an authorization guard rather than a Python sandbox.

Know when Hydra gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 8.5 HIGH
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 7.8 HIGH

Config is untrusted input requiring no privileges (PR:N) but the app must load/process the malicious local config (AV:L, UI:R); mutation yields full code execution, so C/I/A:H.

3.1 AV:L/AC:L/PR:N/UI:R/S:N/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 7.8 HIGH

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Oct 06, 2026 - 20:04 EUVD
CVE Published
Oct 06, 2026 - 18:49 cve.org
HIGH 8.5

DescriptionCVE.org

Hydra is a framework for elegantly configuring complex applications. From 1.3.4 until 1.3.7 and 1.4.0.dev10, Hydra stores legacy instantiate target blocklists and related execution-policy collections in mutable module-level state. An attacker who controls multiple sibling target entries can resolve hydra._internal.target_policy.UNCONTROLLED_EXECUTION_TARGETS.discard through instantiate(), remove a denied target, and then invoke that target because sibling nodes are processed in insertion order against the same modified policy. The mutation persists in process-global state and can enable code execution with the application's privileges, while a narrow execution whitelist supplied by trusted Python code is not bypassed by the reported direct mutation path. This issue is fixed in versions 1.3.7 and 1.4.0.dev10.

Technical POC Analysis

CWE-470 (Use of Externally-Controlled Input to Select Classes or Code, "Unsafe Reflection"), with CWE-693 (Protection Mechanism Failure) as the secondary classification.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

Hydra, a Python configuration framework, contains a HIGH-severity code execution flaw in versions 1.3.4 through before 1.3.7 and before 1.4.0.dev10 that can let attackers run code with the hosting application's privileges when untrusted configuration content is passed to instantiate(). The flaw is unauthenticated but requires passive user interaction, and no public exploit identified at time of analysis; exploitation is limited to deployments that feed untrusted configs to instantiate(). Leadership should care because affected services, CI/CD pipelines, or data science environments that consume external or user-supplied Hydra configs could become a foothold for broader compromise, and no vendor-released patch is identified at time of analysis.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis; interim mitigations include never passing untrusted configuration content to instantiate(), enforcing a narrow trusted allowlist of callables, validating and reviewing Hydra configs, running affected applications with least privilege, isolating workloads, and monitoring for suspicious target-policy or callable-resolution activity.

Threat Intelligence Overview

EPSS Score
0.5%
Top 62% exploitable
Prevalence
Medium
popular Python ML/config library, not universally deployed everywhere
Threat Intel
1
1 source
Data Quality
4 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Hydra

View all
CVE-2023-38701 CRITICAL POC
9.1 Oct 04

Hydra is the layer-two scalability solution for Cardano. Rated critical severity (CVSS 9.1), this vulnerability is remot

CVE-2023-42449 HIGH POC
8.1 Oct 04

Hydra is the two-layer scalability solution for Cardano. Rated high severity (CVSS 8.1), this vulnerability is remotely

CVE-2019-17502 HIGH POC
7.5 Oct 12

Hydra through 0.1.8 has a NULL pointer dereference and daemon crash when processing POST requests that lack a Content-Le

CVE-2019-8400 MEDIUM POC
6.1 Feb 17

ORY Hydra before v1.0.0-rc.3+oryOS.9 has Reflected XSS via the oauth2/fallbacks/error error_hint parameter. Rated medium

CVE-2026-62162 HIGH
8.2 Oct 30

Pending deposits in Cardano Hydra heads can be stolen by any third party who can observe the chain and submit a standard

CVE-2023-42448 HIGH
8.1 Oct 04

Hydra is the layer-two scalability solution for Cardano. Rated high severity (CVSS 8.1), this vulnerability is remotely

CVE-2026-106440 HIGH
7.8 Oct 06

Configuration-controlled code execution in the hydra-optuna-sweeper package (Hydra 1.2.0 up to but not including 1.3.0,

CVE-2026-68508 HIGH
7.8 Aug 21

Arbitrary code execution in Facebook Research Hydra prior to version 1.3.4 allows any party who can supply untrusted con

CVE-2024-45049 HIGH
7.5 Aug 27

Hydra is a Continuous Integration service for Nix based projects. Rated high severity (CVSS 7.5), this vulnerability is

CVE-2023-42806 MEDIUM
6.5 Sep 21

Hydra is the layer-two scalability solution for Cardano. Rated medium severity (CVSS 6.5), this vulnerability is remotel

CVE-2024-32657 MEDIUM
5.4 Apr 22

Hydra is a Continuous Integration service for Nix based projects. Rated medium severity (CVSS 5.4), this vulnerability i

CVE-2020-5300 MEDIUM
5.3 Apr 06

In Hydra (an OAuth2 Server and OpenID Certified™ OpenID Connect Provider written in Go), before version 1.4.0+oryOS.17,

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy