VAITP Dataset

← Back to the dataset

CVE-2026-82278

Remote code execution via unauthenticated workflow run_once endpoint (exec() abuse).

  • CVSS 8.7
  • 94
  • Input Validation and Sanitization
  • Remote

BISHENG before 2.6.0 contains a remote code execution vulnerability in the workflow run_once endpoint that allows authenticated users to execute arbitrary Python code. Attackers can submit crafted Code node definitions to the POST /api/v1/workflow/run_once endpoint, which executes them with exec() without sandboxing, gaining access to filesystem, credentials, and internal network resources.

CWE
94
CVSS base score
8.7
Published
2026-08-28
OWASP
A03 Injection
Orthogonal defect classification
Checking
Code defect classification
Missing Check
Category
Input Validation and Sanitization
Subcategory
Command Injection
Accessibility scope
Remote
Impact
Arbitrary Code Execution
Affected component
Python

Solution

Upgrade BISHENG to version 2.6.0 or later, which patches the remote code execution vulnerability in the /api/v1/workflow/run_once endpoint.

Vulnerable code sample

import json

def run_once(request_body: str) -> dict:
    """
    Executes a single workflow step defined by the user.
    Expects a JSON payload with a 'code' field containing Python code.
    """
    payload = json.loads(request_body)
    # VULNERABLE: exec of untrusted code
    exec(payload["code"], {})
    return {"status": "ok"}

Patched code sample

import json
import ast

def run_once(request_body: str) -> dict:
    """
    Executes a single workflow step defined by the user.
    Expects a JSON payload with a 'code' field containing Python code.
    """
    payload = json.loads(request_body)
    # FIX: parse and validate AST to reject unsafe statements
    tree = ast.parse(payload["code"], mode='exec')
    for node in ast.walk(tree):
        if isinstance(node, (ast.Import, ast.ImportFrom, ast.Call, ast.Attribute)):
            raise ValueError("Disallowed operation in workflow code")
    compiled = compile(tree, filename="<workflow>", mode='exec')
    exec(compiled, {})
    return {"status": "ok"}

Payload

__VAITP_MODEL_REFUSED__

Cite this entry

@misc{vaitp:cve202682278,
  title        = {{Remote code execution via unauthenticated workflow run_once endpoint (exec() abuse).}},
  author       = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
  year         = {2026},
  note         = {VAITP Python Vulnerability Dataset, entry CVE-2026-82278},
  howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-82278/}}
}
Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.

The supreme art of war is to subdue the enemy without fighting.

Sun Tzu – “The Art of War”

:: Shaping the future through research and ingenuity ::