Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSupply attacker-controlled Hydra logging config
-
ExploitPoint handler/factory at importable callable
-
ExecutiondictConfig imports and invokes callable
-
ImpactExecute code with application privileges
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The attacker must control Hydra's logging configuration - specifically the values passed to logging.config.dictConfig() via hydra.hydra_logging, including handler class values or the formatter, filter, handler, queue, and listener factory entries - and set one of them to an importable class or factory. A victim must then execute the Hydra application with that configuration (UI:R), and the config must be delivered locally (AV:L), e.g., through a malicious config file, a command-line override, or a shared/untrusted config source. Critically, this is exploitable even in deployments that rely on Hydra's instantiate() target whitelist, because the logging path does not go through instantiate() and did not apply the target policy before the fix. Exploitation is LIMITED by the need for attacker influence over logging config and for the victim to actually run the app; it is mitigated by upgrading to 1.3.6 or 1.4.0.dev9, which apply the target whitelist to the logging path. |
| Impact | This is a code-injection flaw (CWE-94) in the Hydra Python configuration framework, rated CVSS 7.8 with vector AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. The signals are internally consistent: the vendor CVSS correctly models this as a LOCAL vector requiring user interaction (UI:R) rather than remote network exploitation, because the attacker must get control of the Hydra logging configuration and a victim must then run the application. No EPSS score, KEV listing, or SSVC decision data was provided in the input, so probabilistic exploitation likelihood cannot be quantified here. The exploitation status is 'no public exploit identified at time of analysis' - the input contains fix commits and a GHSA advisory but no proof-of-concept or active-exploitation evidence. The real-world priority is MODERATE and strongly context-dependent: it is only dangerous where logging configuration is attacker-influenceable (e.g., untrusted config overrides, shared config repositories, or user-supplied YAML). The notable nuance is that this path bypasses Hydra's instantiate() target-whitelist protection, so environments that believed they were protected by the target policy are NOT protected on the logging path - this elevates its importance for security-conscious deployments. Data gap: no EPSS/KEV/SSVC provided, so widespread opportunistic exploitation cannot be confirmed or ruled out from the input. |
| Exploit ScenarioDerived | An attacker who can supply or tamper with Hydra's logging configuration (a malicious config file, a YAML override, or a poisoned shared config) sets a handler class value or a formatter/filter/handler/queue/listener factory to an arbitrary importable callable. When a victim runs the Hydra application, logging.config.dictConfig() imports and invokes that attacker-chosen callable with the application's privileges, achieving code execution. No public proof-of-concept is identified in the provided data. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 06, 2026
Code injection in the Hydra configuration framework (all releases prior to 1.3.6 and 1.4.0.dev9) lets an attacker who controls the application's Hydra logging configuration name an arbitrary importable class or factory that Hydra will then import and invoke with the application's own privileges. Hydra routes logging settings to Python's logging.config.dictConfig() without applying its own target policy, so the handler 'class' values and the formatter, filter, handler, queue and listener factories are resolved and called directly - this bypasses the _target_whitelist_ protection that otherwise guards instantiate(), meaning even hardened deployments are exposed. The assessed vector is CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (7.8): a local, unprivileged attacker must plant malicious logging configuration (a config file, an override, or a shared/untrusted config source) and the victim must then run the Hydra application, yielding high confidentiality, integrity and availability impact; no public exploit code has been identified at time of analysis and the flaw is not in CISA KEV, but exploitation only requires that the victim execute the tampered configuration.
RemediationAI
Vendor-released patch: upgrade to Hydra 1.3.6 or 1.4.0.dev9, which apply the target whitelist to the logging configuration path (see advisory GHSA-c3wx-c55w-pxjq; upstream fixes are the commits https://github.com/hydra-ecosystem/hydra/commit/76bfc30ce1f3105416941dd2e3a562568e369120 and https://github.com/hydra-ecosystem/hydra/commit/ff3e4dba890c29a21d8c2bb867ee87d37ccf21d0, tracked by pull request https://github.com/hydra-ecosystem/hydra/pull/3420). If an immediate upgrade is not possible, treat every hydra.hydra_logging document as executable code: refuse to load logging configuration from untrusted, shared or user-writable sources, and pin the config loader to a vetted repository that end users cannot override. Audit existing configs for 'class', '()' and formatter/filter/handler/queue/listener factory entries that name anything other than a small allowlist of known-safe logging handlers such as logging.StreamHandler or logging.FileHandler, and reject configs containing dotted paths outside that allowlist - the trade-off is that legitimate custom handlers and factories will stop loading, and because Hydra resolves these values itself before the fix there is no runtime interception point, so such filtering must be done by the harness that supplies the config, not by Hydra. Blocking command-line overrides of hydra/hydra_logging (for example by disabling the command-line config source or running with a locked-down config search path) reduces the attack surface but does not fix configs read from disk. Note that Hydra's pre-fix name-based blocklist is explicitly documented upstream as not being a security boundary, so relying on it is not an acceptable compensating control.
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
Hydra is a Python framework for composing and configuring complex applications; its logging setup calls logging.config.dictConfig() with the user-supplied hydra.hydra_logging block. dictConfig is inherently a code-loading API: it imports dotted paths given in 'class' keys and calls any callable placed under the '()' factory key, and the same resolution applies to formatter, filter, handler, queue and listener factory entries. Hydra's own defense for configuration-driven object creation is the _target_whitelist_ / target policy enforced inside hydra._internal.instantiate, but the logging path never goes through instantiate(), so the policy was silently skipped and any importable name - including standard-library or third-party callables with side effects - could be resolved and invoked as the application. This is CWE-94 (improper control of generation of code / code injection) rather than a memory-safety issue: the attacker supplies data that the framework treats as code. The upstream fix hardens that path by threading target_whitelist through configure_log in hydra/_internal/core_plugins/basic_launcher.py, resolving the active whitelist via _get_active_target_whitelist() in hydra/_internal/hydra.py (run and multirun), and consolidating the previous best-effort DEFAULT_BLOCKLISTED_MODULES / callback-dispatch blocklist into a hydra/_internal/target_policy module that mediates target names, discovery paths, resolved identities and invocation for the logging configuration as well. The commit message's own commentary notes the legacy name-based blocklist was explicitly 'NOT a security boundary', confirming the whitelist mediation is the real control.
Know when Python 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
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Config is supplied as data and executed when the victim runs the app, so AV:L/UI:R/PR:N; arbitrary code execution yields full C/I/A impact with no scope change.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.org
Hydra is a framework for elegantly configuring complex applications. Prior to 1.3.6 and 1.4.0.dev9, Hydra passes Python logging configuration to logging.config.dictConfig() without applying Hydra's target policy to handler class values or formatter, filter, handler, queue, and listener factories. An attacker who controls Hydra logging configuration can therefore select an importable class or factory and cause it to be invoked with the application's privileges, even in versions where instantiate() is protected because the logging path does not use instantiate(). This issue is fixed in versions 1.3.6 and 1.4.0.dev9.
Articles & Coverage 1
Technical POC Analysis
Bug class: CWE-94 (Improper Control of Generation of Code / Code Injection).
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 widely used Python configuration framework, contains a high-severity code injection flaw that can let an unauthenticated local attacker execute code with the privileges of any application loading attacker-controlled logging configuration. The issue affects all releases prior to 1.3.6 and 1.4.0.dev9 and bypasses Hydra's existing target whitelist, so environments using shared, overridden, or untrusted Hydra configs face full confidentiality, integrity, and availability loss. No public exploit identified at time of analysis, and no vendor-released patch identified at time of analysis, making interim controls and monitoring critical for leadership attention.
No vendor-released patch identified at time of analysis. Interim mitigations: restrict write access to Hydra config files, overrides, and shared/untrusted config sources; review and sanitize logging configuration class, formatter, filter, handler, queue, and listener factory values; run Hydra applications with least privilege; monitor for unexpected imports or process behavior; and avoid loading logging configuration from untrusted or shared sources until a patched release is confirmed available.
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
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2026-93664
GHSA-c3wx-c55w-pxjq
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB