Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-112086 Overview
CVE-2026-112086 is an insecure deserialization vulnerability in ESPnet versions up to 202610.post2. The flaw affects the build_model function in espnet3/publication/inference_model.py, part of the Inference Model Handler component. Attackers can manipulate the _target_ argument to trigger unsafe deserialization through Hydra's class instantiation mechanism. The vulnerability is network-exploitable but requires user interaction, limiting its practical severity. A public proof-of-concept exists, and the maintainers have published a fix in commit f217b24f06de55e332cab10231469d5890dbbe00. The weakness is categorized under CWE-20: Improper Input Validation.
Critical Impact
Remote attackers can trigger deserialization of attacker-controlled class targets in ESPnet inference pipelines, potentially leading to arbitrary object instantiation when a user loads a malicious model configuration.
Affected Products
- ESPnet speech processing toolkit versions through 202610.post2
- espnet3/publication/inference_model.py module (Inference Model Handler)
- Deployments that load untrusted model bundles or Hydra configurations
Discovery Timeline
- 2026-10-19 - CVE-2026-112086 published to the National Vulnerability Database (NVD)
- 2026-10-19 - Last updated in NVD database
- Patch commit - f217b24f06de55e332cab10231469d5890dbbe00 merged via Pull Request #6829
Technical Details for CVE-2026-112086
Vulnerability Analysis
ESPnet is an open-source end-to-end speech processing toolkit widely used for automatic speech recognition and text-to-speech research. The build_model function in espnet3/publication/inference_model.py uses Hydra's get_class utility to resolve a _target_ string into a Python class, which is then instantiated. When the _target_ value is attacker-controlled, Hydra will import and instantiate arbitrary classes available in the runtime environment. This yields object injection semantics similar to insecure deserialization patterns described in CWE-502, gated here under the broader [CWE-20] input validation category.
Exploitation requires user interaction, typically loading a model bundle or configuration file originating from an untrusted source. The confidentiality, integrity, and availability impacts are rated low, reflecting the constrained execution context of the inference loader.
Root Cause
The root cause is the absence of an allowlist for the _target_ parameter passed to Hydra class resolution. Any importable class could be referenced and instantiated, with no validation that the target belongs to an expected set of ESPnet model classes.
Attack Vector
An attacker crafts a malicious ESPnet model bundle or Hydra configuration containing a chosen _target_ value. The victim downloads and loads the bundle through the inference pipeline. When build_model runs, Hydra imports the attacker-specified class and invokes it with attacker-controlled arguments, enabling object instantiation outside the intended ESPnet model hierarchy.
from hydra.utils import get_class
from espnet3.api.inference import InferenceAPI, ModelTagError, load_model, locate_pack
+from espnet3.api.inference.loading import _disallowed_targets
def parse_rate(value: Any) -> int:
# Source: https://github.com/espnet/espnet/commit/f217b24f06de55e332cab10231469d5890dbbe00
# The patch introduces _disallowed_targets, enforcing a target allowlist for Hydra class resolution in the ESPnet3 bundle loader.
Stop Remote Code Execution Before It Runs
Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.
Stop Exploit AttemptsDetection Methods for CVE-2026-112086
Indicators of Compromise
- ESPnet model bundles or Hydra YAML files originating from untrusted repositories or shared outside official channels
- _target_ values in model configurations pointing to classes outside the espnet or espnet2/espnet3 namespaces
- Unexpected Python import events (for example, os, subprocess, builtins) triggered by inference worker processes shortly after a model load
Detection Strategies
- Scan model configuration files for _target_ entries and compare against an approved class allowlist before loading
- Instrument the ESPnet inference loader with logging around get_class calls to capture every resolved target string
- Monitor process trees of ML inference services for child processes or interpreter activity inconsistent with normal model execution
Monitoring Recommendations
- Enable auditd or eBPF-based process monitoring on hosts running ESPnet inference services
- Alert on new outbound network connections initiated by Python inference workers directly after model load events
- Track file reads targeting inference_model.py and correlate with the originating configuration source
How to Mitigate CVE-2026-112086
Immediate Actions Required
- Upgrade ESPnet to a build that includes commit f217b24f06de55e332cab10231469d5890dbbe00 or later
- Audit any ESPnet model bundles currently in production and verify their origin
- Restrict inference workers to load models only from internal, trusted artifact stores
Patch Information
The fix is provided in GitHub Commit f217b24, merged via Pull Request #6829 titled fix/espnet3-bundle-target-allowlist. The patch imports a _disallowed_targets helper in espnet3/systems/base/backend_inference.py to enforce a target allowlist during Hydra class resolution. The upstream issue is tracked in GitHub Issue #6828, and a public proof-of-concept archive is referenced on the VulDB entry for CVE-2026-112086.
Workarounds
- Validate and sanitize all Hydra _target_ values against an explicit allowlist before invoking build_model
- Run inference services under least-privilege accounts with no outbound internet access by default
- Isolate model-loading operations in sandboxed containers to limit the blast radius of malicious instantiation
# Pin ESPnet to a patched revision when installing from source
pip install --upgrade "git+https://github.com/espnet/espnet.git@f217b24f06de55e332cab10231469d5890dbbe00"
# Verify the patched module is present
python -c "from espnet3.api.inference.loading import _disallowed_targets; print('allowlist present')"
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

