VAITP Dataset

← Back to the dataset

CVE-2026-83404

Unauthenticated remote code execution in MySQL Connector/Python 26.7.0 (CVSS 7.5).

  • CVSS 7.5
  • CWE-306
  • Authentication, Authorization, and Session Management
  • Remote

Vulnerability in the MySQL Connectors product of Oracle MySQL (component: Connector/Python). The supported version that is affected is 26.7.0. Easily exploitable vulnerability allows unauthenticated attacker with network access via multiple protocols to compromise MySQL Connectors. Successful attacks of this vulnerability can result in unauthorized access to critical data or complete access to all MySQL Connectors accessible data. CVSS 3.1 Base Score 7.5 (Confidentiality impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).

CVSS base score
7.5
Published
2026-10-20
OWASP
A01 Broken Access Control
Orthogonal defect classification
Checking
Code defect classification
Missing Check
Category
Authentication, Authorization, and Session Management
Subcategory
Insecure Authentication Mechanisms
Accessibility scope
Remote
Impact
Unauthorized Access
Affected component
Python
Fixed by upgrading
Yes

Solution

Upgrade MySQL Connector/Python to version 26.7.1 (or later).

Vulnerable code sample

import mysql.connector

def get_connection():
    # VULNERABLE: connects without supplying authentication credentials
    conn = mysql.connector.connect(host='127.0.0.1')
    return conn

def fetch_data():
    conn = get_connection()
    cursor = conn.cursor()
    cursor.execute("SELECT * FROM sensitive_table")
    return cursor.fetchall()

Patched code sample

import mysql.connector
import os

def get_connection():
    # FIX: enforce explicit authentication credentials
    user = os.getenv('MYSQL_USER')
    password = os.getenv('MYSQL_PASSWORD')
    conn = mysql.connector.connect(
        host='127.0.0.1',
        user=user,
        password=password
    )
    return conn

def fetch_data():
    conn = get_connection()
    cursor = conn.cursor()
    cursor.execute("SELECT * FROM sensitive_table")
    return cursor.fetchall()

Cite this entry

@misc{vaitp:cve202683404,
  title        = {{Unauthenticated remote code execution in MySQL Connector/Python 26.7.0 (CVSS 7.5).}},
  author       = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
  year         = {2026},
  note         = {VAITP Python Vulnerability Dataset, entry CVE-2026-83404},
  howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-83404/}}
}

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.