Intel

AIKIDO-2024-10340

mysql-connector-python is vulnerable to SQL Injection

CVE-2024-21272Published Oct 15, 2024
October 15, 2024

60

CVE Score

Medium

SQL Injection

Are you affected? Scan for Free

TL;DR

Affected versions of the package are vulnerable to SQL Injection. Malicious strings can be injected when using dictionary-based query parameterization with the cursor.execute() API command, particularly in the C-based implementation of the connector. This could allow attackers to manipulate SQL queries and gain unauthorized access to or modify the database.

How do I fix this?

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

Who does this affect?

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

Versions

8.3.0 - 9.0.0

Fixed in 9.1.0

Background info

mysql-connector-python is vulnerable to SQL Injection in versions 8.3.0 - 9.0.0.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea