cve-2026-27194 rce python api-security data-visualization injection pandas CVSS 9.8
• 9 min read • David Martin

CVE-2026-27194: Remote Code Execution in D-Tale — When Data Visualization Endpoints Become Attack Vectors

D-Tale's /save-column-filter endpoint allows unauthenticated RCE through Python code injection. If your D-Tale instance is on the network, it's game over.

The Vulnerability at a Glance

D-Tale is a popular open-source Python tool that provides a web-based interface for exploring and visualizing pandas DataFrames. It's widely used by data scientists, analysts, and ML engineers to interactively work with data. Versions prior to 3.20.0 contained a critical Remote Code Execution (RCE) vulnerability in the /save-column-filter endpoint.

The flaw allows an unauthenticated attacker to inject and execute arbitrary code on the server — with zero user interaction required. If your D-Tale instance is accessible over the network (which many are, especially in development and staging environments), it's game over.

Affected versions: D-Tale < 3.20.0
Attack vector: Network, no authentication, no user interaction
Impact: Full system compromise — arbitrary code execution with the privileges of the D-Tale process

The Attack: Injecting Code Through a Filter Endpoint

D-Tale's /save-column-filter endpoint is designed to let users define custom filter expressions for their data. The problem? It processes user-supplied filter expressions without proper sanitization, and those expressions are evaluated in a context where they can execute arbitrary Python code.

http
POST /dtale/save-column-filter/1 HTTP/1.1
Host: target-dtale-instance:40000
Content-Type: application/json

{
  "col": "name",
  "cfg": {
    "type": "string",
    "value": "__import__('os').system('id > /tmp/pwned')",
    "operand": "="
  }
}

This request looks like a normal filter configuration — a user wants to filter a column called "name" by a string value. But the "value" field contains a Python import statement that executes system commands.

The D-Tale backend evaluates this expression without sanitization, resulting in arbitrary command execution on the host.

Why Your WAF Sees a Legitimate Data Request

WAF Check Result Why
SQL Injection ✅ Clean __import__ is not SQL
XSS ✅ Clean No HTML/JS tags
Command Injection signatures ⚠️ Maybe Some WAFs might flag os.system, most won't in JSON context
Request structure ✅ Valid Well-formed JSON to a valid endpoint
Content-Type ✅ Valid application/json
Authentication ❌ Not checked WAF doesn't know this endpoint needs auth

Even if your WAF has Python code injection signatures (most don't), the payload can be trivially obfuscated:

json
{
  "value": "getattr(__builtins__, '__im' + 'port__')('o' + 's').popen('cat /etc/passwd').read()"
}

This bypasses any simple pattern matching while achieving the same result.

This Is a Pattern, Not an Anomaly

CVE-2026-27194 is actually the third RCE in D-Tale. Previous vulnerabilities (CVE-2024-55890 and CVE-2025-0655) exploited similar injection flaws in the Custom Filter Input. This is a systemic problem: any endpoint that evaluates user-supplied expressions is a potential RCE vector.

This pattern appears across the data science ecosystem: Jupyter notebooks, Streamlit apps, Gradio interfaces, and visualization tools like D-Tale all expose web endpoints that process user input in powerful execution contexts.

How ContractShield Blocks This Attack

Step 1: Authentication Enforcement

contractshield.yaml
paths:
  /dtale/save-column-filter/{data_id}:
    post:
      security:
        - bearerAuth: []
      x-contractshield:
        auth:
          required: true

Step 2: Strict Schema Validation — No Arbitrary Expressions

openapi.yaml
components:
  schemas:
    ColumnFilterConfig:
      type: object
      required:
        - type
        - operand
        - value
      properties:
        type:
          type: string
          enum: ["string", "int", "float", "date"]
        operand:
          type: string
          enum: ["=", "!=", ">", "<", ">=", "<=", "contains", "startswith", "endswith"]
        value:
          type: string
          maxLength: 500
          pattern: "^[\\w\\s\\-\\.@,;:]+$"
      additionalProperties: false

Step 3: Business Logic Rules — Expression Injection Prevention

contractshield.yaml
x-contractshield:
  rules:
    - name: "dtale-filter-no-code-injection"
      type: deny-pattern
      config:
        fields: ["cfg.value", "cfg.query"]
        patterns:
          - "__import__"
          - "__builtins__"
          - "eval("
          - "exec("
          - "os.system"
          - "os.popen"
          - "subprocess"
          - "getattr("
        action: reject
        log: true
        severity: critical

The Protection Stack: WAF vs. ContractShield

Attack Vector WAF ContractShield
Unauthenticated endpoint access ❌ No context ✅ Auth enforced per contract
Python code in JSON values ❌ Not a standard signature ✅ Schema rejects non-alphanumeric values
Obfuscated Python injection ❌ Trivially bypassed ✅ Strict allowlist, not denylist
Expression evaluation abuse ❌ Can't detect intent ✅ Contract defines valid filter syntax
Repeated D-Tale RCE pattern ❌ Each CVE needs a new rule ✅ One contract covers all filter endpoints

The Lesson: Data Science Tools Need API Security

The data science ecosystem has a blind spot: tools built for local development are increasingly deployed in production environments — on internal networks, staging servers, and sometimes even public-facing infrastructure. These tools often lack basic security controls because they were designed for trusted environments.

D-Tale, Jupyter, Streamlit, Gradio — they all expose HTTP endpoints that process powerful operations. When these tools are accessible over a network, every endpoint becomes an attack surface.

ContractShield bridges this gap. By wrapping these tools with an API contract, you enforce authentication, input validation, and business logic rules — regardless of whether the underlying tool was designed with security in mind.

Remediation

  1. Immediate: Upgrade D-Tale to version 3.20.0 or later
  2. Network: Restrict D-Tale access to trusted networks using VPN or IP whitelisting
  3. Proactive: Deploy ContractShield in front of any data science tool exposed over a network
  4. Audit: Review all internal tools that expose web endpoints for authentication gaps

Try It Yourself

Our interactive demo includes injection attack scenarios similar to CVE-2026-27194. Test how ContractShield blocks code injection through API parameters in real-time.

Protect your data science APIs from code injection attacks

ContractShield enforces authentication, schema validation, and business logic rules at the API boundary — stopping injection attacks before they reach your application.

CVE data sourced from NVD and D-Tale security advisories.