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

CVE-2026-111991: WongKinYiu yolov9 RCE Vulnerability

CVE-2026-111991 is a code injection flaw in WongKinYiu yolov9 0.1 affecting the DetectMultiBackend function in ONNX Metadata Handler. Attackers can exploit this remotely 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-111991 Overview

CVE-2026-111991 is a code injection vulnerability in WongKinYiu YOLOv9 version 0.1, a popular open-source object detection framework. The flaw resides in the DetectMultiBackend.__init__ function within models/common.py, specifically in the ONNX Metadata Handler component. Attackers can manipulate the names and stride arguments to inject code that executes when a crafted ONNX model is loaded. The vulnerability has been publicly disclosed and maps to CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component. The maintainers were notified through a GitHub issue but have not yet responded.

Critical Impact

Loading an attacker-controlled ONNX model file into a YOLOv9 pipeline can trigger arbitrary code execution within the host Python process, compromising confidentiality, integrity, and availability of the inference environment.

Affected Products

  • WongKinYiu YOLOv9 version 0.1
  • models/common.py — DetectMultiBackend.__init__ function
  • ONNX Metadata Handler component

Discovery Timeline

  • 2026-10-18 - CVE-2026-111991 published to the National Vulnerability Database (NVD)
  • 2026-10-22 - Last updated in NVD database

Technical Details for CVE-2026-111991

Vulnerability Analysis

The vulnerability affects the DetectMultiBackend.__init__ constructor in YOLOv9's models/common.py. This constructor loads inference backends, including ONNX models, and parses embedded metadata to recover class names and model stride. The ONNX Metadata Handler trusts the metadata fields and feeds the names and stride values into a Python evaluation path without sanitization. When a user loads a malicious ONNX file, the attacker-supplied strings are interpreted as code rather than data. Exploitation is network-reachable in scenarios where YOLOv9 consumes remotely sourced or shared model files, but it requires user interaction to initiate model loading.

Root Cause

The root cause is unsafe parsing of untrusted ONNX metadata. The handler converts stringified Python literals in the names and stride fields using an evaluation primitive instead of a safe parser such as ast.literal_eval or JSON decoding. Because ONNX metadata is attacker-controllable at model build time, any downstream consumer executes whatever expression the metadata contains. This is a classic [CWE-74] injection pattern applied to a machine learning model format.

Attack Vector

An attacker publishes a weaponized .onnx file through a model hub, Git repository, shared storage bucket, or supply-chain channel. When a developer or production pipeline loads the model with YOLOv9's DetectMultiBackend, the injected payload inside the names or stride metadata executes in the Python process. The attacker gains the privileges of the inference user, which in training or MLOps environments often includes access to GPUs, datasets, cloud credentials, and container secrets. No authentication is required on the victim side; only the act of loading the model is needed.

No verified public proof-of-concept code is referenced in the enriched data. See the GitHub YOLOv9 Issue #670 and VulDB CVE-2026-111991 entries for additional technical context.

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-111991

Indicators of Compromise

  • ONNX model files from untrusted sources whose metadata names or stride fields contain Python expressions, function calls, or __import__ references rather than simple lists or integers.
  • Python inference processes spawning unexpected child processes such as sh, bash, curl, wget, or python -c shortly after a model load.
  • Outbound network connections initiated by a YOLOv9 inference host immediately following ingestion of a new model artifact.

Detection Strategies

  • Inspect ONNX files prior to loading using the onnx Python library and validate that metadata fields deserialize as expected primitive types.
  • Hunt in EDR telemetry for python processes with command lines invoking DetectMultiBackend that subsequently fork shell interpreters or network utilities.
  • Review MLOps CI/CD logs for model artifacts introduced from external registries without checksum or signature validation.

Monitoring Recommendations

  • Alert on process-tree anomalies where machine learning worker containers initiate unexpected outbound connections or write to sensitive paths.
  • Monitor file integrity on model repositories and flag new or modified .onnx files that lack signed provenance.
  • Correlate model-load events with authentication activity on cloud credential endpoints (for example, IMDS or token services) to catch credential theft following exploitation.

How to Mitigate CVE-2026-111991

Immediate Actions Required

  • Treat all third-party YOLOv9 ONNX models as untrusted until vendor remediation is confirmed; load them only in isolated, non-privileged sandboxes.
  • Audit internal model registries for .onnx files whose metadata contains executable Python syntax in the names or stride fields and quarantine any matches.
  • Restrict which users and services can push models into shared MLOps pipelines and require signed artifacts.

Patch Information

At the time of publication, no official patch has been released. The project was informed through GitHub YOLOv9 Issue #670 but has not responded. Track the GitHub YOLOv9 Repository for upstream fixes and consider forking and patching DetectMultiBackend.__init__ locally to replace unsafe evaluation with ast.literal_eval or strict JSON parsing.

Workarounds

  • Replace unsafe metadata parsing in models/common.py with ast.literal_eval so attacker-supplied strings cannot execute as code.
  • Run inference workloads in rootless containers with no outbound network access and read-only mounts for the model directory.
  • Verify ONNX model provenance using cryptographic signatures (for example, Sigstore or in-toto attestations) before any load operation.
  • Pin YOLOv9 to a known-safe internal fork and block automatic installation of version 0.1 from public package sources.
bash
# Configuration example: safely inspect ONNX metadata before loading
python - <<'EOF'
import onnx, ast, sys
model = onnx.load(sys.argv[1])
for prop in model.metadata_props:
    if prop.key in ("names", "stride"):
        try:
            ast.literal_eval(prop.value)
        except (ValueError, SyntaxError):
            print(f"REJECT: unsafe metadata in field {prop.key}")
            sys.exit(1)
print("OK: metadata parses as safe literals")
EOF

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.