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

CVE-2026-108961: PaddlePaddle PaddleX RCE Vulnerability

CVE-2026-108961 is a remote code execution flaw in PaddlePaddle PaddleX affecting versions up to 3.7.2. The vulnerability allows attackers to inject malicious code through the preprocessor component. 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-108961 Overview

CVE-2026-108961 is a code injection vulnerability [CWE-74] in PaddlePaddle PaddleX versions up to 3.7.2. The flaw resides in the NormalizeImage.__init__ function within paddlex/inference/models/text_detection/processors.py, part of the Preprocessor component. Attackers can manipulate the scale argument to inject code into the preprocessing pipeline. The attack can be initiated remotely but requires user interaction to trigger. At publication, the pull request to address this issue awaits acceptance by the maintainers.

Critical Impact

Remote attackers can inject code through the scale parameter of the PaddleX text detection preprocessor, potentially compromising machine learning inference workloads.

Affected Products

  • PaddlePaddle PaddleX versions up to and including 3.7.2
  • paddlex/inference/models/text_detection/processors.py module
  • Preprocessor component (NormalizeImage class)

Discovery Timeline

  • 2026-10-13 - CVE-2026-108961 published to NVD
  • 2026-10-15 - Last updated in NVD database

Technical Details for CVE-2026-108961

Vulnerability Analysis

The vulnerability affects the image preprocessing stage of PaddleX, a machine learning toolkit built on PaddlePaddle. The NormalizeImage.__init__ constructor accepts a scale argument used to normalize input image tensors before text detection inference. Insufficient validation of this argument allows attacker-controlled content to be interpreted as executable code during object initialization.

Because PaddleX pipelines commonly accept configuration from external sources such as YAML files, model manifests, or inference APIs, the scale value can originate from untrusted input. When the constructor processes the tainted argument, it evaluates attacker-supplied content within the Python interpreter running the inference service.

Root Cause

The root cause is improper neutralization of special elements in downstream components [CWE-74]. The NormalizeImage constructor treats the scale argument as trusted input and routes it through a code evaluation path rather than a strict numeric parser. Any string or expression supplied for scale is executed in the context of the Python process loading the preprocessor.

Attack Vector

Exploitation requires network reachability and user interaction, typically achieved by convincing a victim to load a malicious configuration file, pipeline definition, or model artifact. Once the preprocessor is instantiated with the attacker-controlled scale value, code execution occurs inside the inference process. Impact includes manipulation of model outputs, exfiltration of model weights, and lateral movement from ML serving infrastructure. Technical details are tracked in GitHub Issue #5210 and the proposed fix in Pull Request #5212.

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

Indicators of Compromise

  • Unexpected child processes spawned by Python interpreters hosting PaddleX inference workers.
  • PaddleX configuration files or pipeline YAML containing non-numeric values in the scale field.
  • Outbound network connections originating from inference containers to attacker-controlled hosts shortly after model load.

Detection Strategies

  • Inspect all PaddleX pipeline configurations and model manifests for scale values that are not strict numeric literals or lists of floats.
  • Audit application logs for exceptions originating in paddlex/inference/models/text_detection/processors.py during preprocessor initialization.
  • Deploy runtime process monitoring on ML serving hosts to flag shell execution, subprocess spawning, or dynamic imports from Python inference processes.

Monitoring Recommendations

  • Enable file integrity monitoring on PaddleX installation directories and user-supplied configuration paths.
  • Forward Python application logs and system telemetry from inference nodes to a centralized analytics platform for correlation.
  • Alert on network egress from inference workloads to destinations outside the expected model registry and telemetry endpoints.

How to Mitigate CVE-2026-108961

Immediate Actions Required

  • Restrict the sources from which PaddleX loads pipeline configurations and model definitions to trusted repositories only.
  • Validate the scale parameter upstream of PaddleX by enforcing strict numeric types before invocation.
  • Run PaddleX inference services under least-privilege accounts within isolated containers to limit the impact of code execution.

Patch Information

No official patched release is available at publication. The proposed fix is tracked in PaddleX Pull Request #5212 and remains pending acceptance. Monitor the PaddleX repository for a release incorporating the fix. Additional vulnerability metadata is available via VulDB entry 416780.

Workarounds

  • Disable or avoid use of the text detection pipeline until a patched release is available if configurations originate from untrusted users.
  • Wrap NormalizeImage instantiation in a validation layer that rejects any scale value that is not a float or list of floats.
  • Apply network egress controls on inference hosts to block outbound connections not required for operation.
bash
# Example validation wrapper for the scale parameter before instantiating NormalizeImage
# Reject any non-numeric input to prevent code injection via the scale argument
python -c "
import numbers
def safe_scale(value):
    if isinstance(value, numbers.Real):
        return float(value)
    if isinstance(value, (list, tuple)) and all(isinstance(v, numbers.Real) for v in value):
        return [float(v) for v in value]
    raise ValueError('Invalid scale value supplied to NormalizeImage')
"

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.