Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSupply attacker-controlled Hydra config to instantiate()
-
ExploitResolve target_policy blocklist.discard via sibling target
-
ExecutionRemove denied target from process-global policy
-
ImpactInvoke 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.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.
Articles & Coverage 1
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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Hydra is the layer-two scalability solution for Cardano. Rated critical severity (CVSS 9.1), this vulnerability is remot
Hydra is the two-layer scalability solution for Cardano. Rated high severity (CVSS 8.1), this vulnerability is remotely
Hydra through 0.1.8 has a NULL pointer dereference and daemon crash when processing POST requests that lack a Content-Le
ORY Hydra before v1.0.0-rc.3+oryOS.9 has Reflected XSS via the oauth2/fallbacks/error error_hint parameter. Rated medium
Pending deposits in Cardano Hydra heads can be stolen by any third party who can observe the chain and submit a standard
Hydra is the layer-two scalability solution for Cardano. Rated high severity (CVSS 8.1), this vulnerability is remotely
Configuration-controlled code execution in the hydra-optuna-sweeper package (Hydra 1.2.0 up to but not including 1.3.0,
Arbitrary code execution in Facebook Research Hydra prior to version 1.3.4 allows any party who can supply untrusted con
Hydra is a Continuous Integration service for Nix based projects. Rated high severity (CVSS 7.5), this vulnerability is
Hydra is the layer-two scalability solution for Cardano. Rated medium severity (CVSS 6.5), this vulnerability is remotel
Hydra is a Continuous Integration service for Nix based projects. Rated medium severity (CVSS 5.4), this vulnerability i
In Hydra (an OAuth2 Server and OpenID Certified™ OpenID Connect Provider written in Go), before version 1.4.0+oryOS.17,
EUVD-2026-93658
GHSA-mwj6-rfh8-7qf4
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB