CVE-2026-106439: CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') in hydra-ecosystem hydra
Description
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.
CVSS v4.0
Score 8.5high
Affected software
hydra-ecosystem
hydra
pkg:pypi/hydra-ecosystem/hydraRun 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 versions >=1.3.4 <1.3.7 and >=1.4.0.dev4 <1.4.0.dev10 store legacy instantiate target blocklists and execution-policy collections in mutable module-level state. An attacker controlling multiple sibling target entries can mutate the global execution policy by removing denied targets via instantiate(), then invoke those targets because sibling nodes are processed in insertion order against the modified policy. This mutation persists in process-global state, enabling code execution with the application's privileges. The vulnerability is related to unsafe reflection (CWE-470) and improper input control (CWE-693). The issue is fixed in versions 1.3.7 and 1.4.0.dev10.
Potential Impact
Successful exploitation allows an attacker with control over multiple sibling target entries to bypass execution blocklists by mutating global execution policy state, leading to arbitrary code execution with the application's privileges. This can compromise the affected application and potentially the host system depending on the application's privilege level.
Mitigation Recommendations
Upgrade hydra to version 1.3.7 or later, or 1.4.0.dev10 or later, where this vulnerability is fixed. No other mitigation or workaround is indicated. Patch status is confirmed fixed in these versions.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-10-06T16:49:40.590Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6ac546652cdf04f656d4a162
Added to database: 10/06/2026, 19:05:09 UTC
Last enriched: 10/06/2026, 19:18:26 UTC
Last updated: 10/06/2026, 20:04:26 UTC
Views: 4
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.