Intel

AIKIDO-2025-10034

mysql-connector-python is vulnerable to Remote Code Execution (RCE)

Remote Code Execution (RCE) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jan 22, 2025

35

Low Risk

This Affects:

pythonmysql-connector-python
2.0.0 - 9.1.0
Fixed in 9.2.0
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to remote code execution (RCE) due to improper validation and handling of configuration files. Specifically, an attacker can craft a malicious configuration file containing arbitrary code or commands that the application processes unsafely. When the application reads and executes the contents of this file, the embedded code runs with the same privileges as the application, allowing the attacker to execute arbitrary commands on the host system.

Who does this affect?

You are affected if you are using a version of this package = 9.1.0.

Background info

mysql-connector-python is vulnerable to Remote Code Execution (RCE) in versions 2.0.0 - 9.1.0.

How to fix this

Upgrade the mysql-connector-python library to the patch version.