Intel

AIKIDO-2024-10418

mysql-connector-python is vulnerable to SQL Injection

SQL Injection Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Nov 5, 2024

69

Medium Risk

This Affects:

pythonmysql-connector-python
8.0.4 - 8.0.10
Fixed in 8.0.11
Are you affected? Scan for Free

TL;DR

Affected versions of this package allow SQL injection due to improper sanitization of schema and table names. Attackers can exploit this vulnerability by injecting malicious SQL queries, potentially gaining unauthorized access to or modifying database contents.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

mysql-connector-python is vulnerable to SQL Injection in versions 8.0.4 - 8.0.10.

How to fix this

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