SQL injection via recursive dictionary parameter substitution
Published Oct 15, 2024 · Updated Oct 16, 2024
SQL injection in Oracle MySQL Connector/Python 9.0.0 and earlier allows remote authenticated users to take over connector operations. In the C-extension cursor.execute() path, dictionary-based substitution repeatedly replaces placeholder text, so a value containing another placeholder becomes query syntax. Exploitation requires low-privileged MySQL protocol access and attacker-controlled dictionary parameters, enabling unauthorized reads, writes, and service interruption under the connector's database privileges.
Summary
What happened
SQL injection in Oracle MySQL Connector/Python 9.0.0 and earlier allows remote authenticated users to take over connector operations. In the C-extension cursor.execute() path, dictionary-based substitution repeatedly replaces placeholder text, so a value containing another placeholder becomes query syntax. Exploitation requires low-privileged MySQL protocol access and attacker-controlled dictionary parameters, enabling unauthorized reads, writes, and service interruption under the connector's database privileges.
The record
- CVE
- CVE-2024-21272
- Published
- Oct 15, 2024
- Updated
- Oct 16, 2024
- Vendor
- Oracle Corporation
- Product
- MySQL Connectors
- Classifications
- CWE-89
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Oct 15, 2024CVE publishedPublication date reported by the CVE source.
- Oct 16, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=* <=9.0.0
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Connector/Python parameterized-query injection regression casesproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo