PT-2024-6583 · Mysql2 · Mysql2

·

CVE-2024-21511

·

Published

2024-04-23

·

Updated

2026-08-18

CVSS v2.0

10

Critical

VectorAV:N/AC:L/Au:N/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions: mysql2 versions prior to 3.9.7
Description: The issue is related to improper sanitization of the timezone parameter in the readCodeFor function, which can lead to Arbitrary Code Injection when calling a native MySQL Server date/time function. This can allow a remote attacker to execute arbitrary code.
Recommendations: For versions prior to 3.9.7, update to version 3.9.7 or later to resolve the issue. As a temporary workaround, consider restricting the use of the readCodeFor function or sanitizing the timezone parameter to minimize the risk of exploitation.

Exploit

Fix

Code Injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BDU:2024-07729
CVE-2024-21511
GHSA-4RCH-2FH8-94VW

Affected Products

Mysql2