Skip to main content
Vulnerability Database/CVE-2026-112145

CVE-2026-112145: Speaches-AI RCE Vulnerability

CVE-2026-112145 is a remote code execution vulnerability in speaches-ai speaches affecting versions up to 0.9.0-rc.3. Attackers can exploit externally-controlled input in Pyannote Diarization Model Loading to execute arbitrary code. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

Published:

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-112145 Overview

CVE-2026-112145 affects the speaches-ai speaches project through version 0.9.0-rc.3. The flaw lives in the PyannoteDiarizationModelManager._load_fn function within src/speaches/executors/pyannote_diarization.py. An attacker can supply a crafted model argument that the loader uses to select classes or code at runtime, matching the pattern described in CWE-470: Use of Externally-Controlled Input to Select Classes or Code. The issue was introduced in PR #628 and merged as commit 870e1e16a73452496e99d49f759eabd692a8e0e0. Exploitation is possible over the network without authentication, and a public proof of concept is already available.

Critical Impact

Remote, unauthenticated attackers can influence class or module selection inside the Pyannote diarization model loader, leading to limited confidentiality, integrity, and availability impact on the host application.

Affected Products

  • speaches-ai speaches versions up to and including 0.9.0-rc.3
  • Component: Pyannote Diarization Model Loading (src/speaches/executors/pyannote_diarization.py)
  • Function: PyannoteDiarizationModelManager._load_fn

Discovery Timeline

  • 2026-10-19 - CVE-2026-112145 published to the National Vulnerability Database
  • 2026-10-22 - Last updated in NVD database

Technical Details for CVE-2026-112145

Vulnerability Analysis

The speaches project exposes an HTTP interface for audio processing, including speaker diarization built on top of the Pyannote audio stack. When a client requests diarization, PyannoteDiarizationModelManager._load_fn receives a model argument that drives which model class or module path is resolved and instantiated. Because the loader trusts externally supplied values, an attacker can steer the loader toward unintended classes or code paths. The behavior aligns with Unsafe Reflection semantics tracked under CWE-470. Public references on VulDB and GitHub issue #679 describe the attack surface and link to a proof-of-concept archive.

Root Cause

The root cause is externally-controlled input flowing directly into a class or code selection operation inside _load_fn. The feature was introduced when the project switched to pyannote audio in PR #628, merged as commit 870e1e16a73452496e99d49f759eabd692a8e0e0. The loader does not constrain the model argument to a vetted allow-list of model identifiers before performing reflection-style resolution.

Attack Vector

The attack vector is Network. A remote, unauthenticated attacker sends a diarization request that specifies a crafted model value. The server passes that value into PyannoteDiarizationModelManager._load_fn, where it is used to select the class or code object loaded for inference. No user interaction or prior privileges are required. A public proof-of-concept is distributed in the poc.zip archive referenced by the advisory.

No verified exploit code is reproduced here. Refer to the GitHub Issue #679 discussion and the VulDB entry for technical details on request shape and parameter abuse.

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 Attempts

Detection Methods for CVE-2026-112145

Indicators of Compromise

  • Inbound HTTP requests to speaches diarization endpoints containing model parameter values that reference arbitrary module paths, file system locations, or non-pyannote class identifiers.
  • Unexpected child processes or Python imports spawned by the speaches service after a diarization request.
  • Outbound network connections initiated by the speaches process to unknown hosts shortly after a model-loading request.

Detection Strategies

  • Instrument PyannoteDiarizationModelManager._load_fn with logging that records the resolved class or module for every model argument received.
  • Alert on application logs where the loaded model identifier does not match a known pyannote model name.
  • Correlate web server access logs with Python import events to flag reflection-driven loads triggered by remote requests.

Monitoring Recommendations

  • Monitor the speaches service for anomalous memory growth, new file writes under model cache directories, and unexpected import activity.
  • Baseline normal diarization request patterns and alert on deviations in model parameter cardinality or entropy.
  • Forward application and process telemetry to a centralized analytics backend so reflection-based loading attempts can be reviewed across hosts.

How to Mitigate CVE-2026-112145

Immediate Actions Required

  • Restrict network exposure of the speaches service to trusted internal clients until a fix is available, since the project has not yet responded to the issue report.
  • Place the speaches endpoint behind an authenticating reverse proxy and deny anonymous access to diarization routes.
  • Enforce an allow-list at the gateway for permitted model identifiers and reject requests that specify anything outside that list.
  • Audit recent diarization requests for suspicious model values and investigate any matches identified in logs.

Patch Information

At the time of publication, no vendor patch has been released. The upstream project was notified via GitHub issue #679 but has not responded. Track the speaches repository and the VulDB advisory for fix availability. The vulnerable code was introduced in PR #628 and merged as commit 870e1e16a73452496e99d49f759eabd692a8e0e0; defenders can review that diff to understand the affected code path.

Workarounds

  • Run the speaches service as an unprivileged user inside a container with no outbound internet access and read-only mounts for model directories.
  • Apply a local patch that validates the model argument against a hardcoded set of pyannote model identifiers before invoking _load_fn.
  • Disable the diarization endpoint entirely if the pyannote integration is not required in your deployment.
bash
# Example reverse-proxy allow-list for the diarization model parameter
# (nginx snippet - reject any request whose model argument is not explicitly allowed)
map $arg_model $diarization_model_allowed {
    default                                 0;
    "pyannote/speaker-diarization-3.1"      1;
    "pyannote/speaker-diarization-community-1" 1;
}

server {
    location /v1/audio/diarization {
        if ($diarization_model_allowed = 0) { return 403; }
        proxy_pass http://speaches_upstream;
    }
}

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.