VAITP Dataset

← Back to the dataset

CVE-2026-115727

Remote code exec via Flask debug mode bound to 0.0.0.0 with discoverable Werkzeug PIN.

  • CVSS 9.2
  • CWE-489
  • Configuration Issues
  • Remote

AgenticSeek before commit 409840c contains a remote code execution vulnerability because llm_server/app.py hardcodes Flask debug mode while binding to all interfaces. Attackers who reach the server port and obtain the derivable Werkzeug debugger PIN can execute Python code and operating system commands with llm_server privileges.

CVSS base score
9.2
Published
2026-10-23
OWASP
A05 Security Misconfiguration
Orthogonal defect classification
Checking
Code defect classification
Missing Check
Category
Configuration Issues
Subcategory
Remote File Inclusion (RFI)
Accessibility scope
Remote
Impact
Arbitrary Code Execution
Affected component
Flask

Solution

Upgrade llm_server to the commit 5d9f2a1 (or later) where Flask debug mode is disabled by default and the debugger PIN is no longer exposed. This removes the remote code execution risk.

Vulnerable code sample

from flask import Flask, request, jsonify

app = Flask(__name__)

# VULNERABLE: debug mode enabled on all interfaces allows Werkzeug debugger RCE
app.run(host="0.0.0.0", port=5000, debug=True)

@app.route("/predict", methods=["POST"])
def predict():
    data = request.get_json()
    # placeholder for model inference
    result = {"output": "dummy"}
    return jsonify(result)

Patched code sample

from flask import Flask, request, jsonify

app = Flask(__name__)

# FIX: disable debug mode and bind to localhost only
app.run(host="127.0.0.1", port=5000, debug=False)

@app.route("/predict", methods=["POST"])
def predict():
    data = request.get_json()
    # placeholder for model inference
    result = {"output": "dummy"}
    return jsonify(result)

Published fix

Public sources link this CVE to the changes below. The code samples above were generated to illustrate the defect; these links lead to the code the project actually changed.

Cite this entry

@misc{vaitp:cve2026115727,
  title        = {{Remote code exec via Flask debug mode bound to 0.0.0.0 with discoverable Werkzeug PIN.}},
  author       = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
  year         = {2026},
  note         = {VAITP Python Vulnerability Dataset, entry CVE-2026-115727},
  howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-115727/}}
}

Download this entry as JSON Download the whole dataset

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

Before you use the VAITP AI models

Please read and accept the following disclaimer:

By choosing "I understand and accept", you acknowledge that you understand and agree to these terms.