CVE-2024-21511

mysql2: Arbitrary Code Injection due to improper sanitization of the timezone parameter

Published Apr 23, 2024 CVSS 3.1 · 9.8 Critical EPSS 1.0% KEV · Not listed
Description
Versions of the package mysql2 before 3.9.7 are vulnerable to Arbitrary Code Injection due to improper sanitization of the timezone parameter in the readCodeFor function by calling a native MySQL Server date/time function.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-1092 Versions of the package mysql2 before 3.9.7 are vulnerable to Arbitrary Code Injection due to improper sanitization of the timezone parameter in the readCodeFor function by calling a native MySQL Server date/time function.
Github GHSA Github GHSA GHSA-4rch-2fh8-94vw MySQL2 for Node Arbitrary Code Injection
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00093}

epss

{'score': 0.00071}

Subscriptions

No data.

Weaknesses

Sources

Status
PUBLISHED
Assigner
snyk
Published
Updated
Aug 1, 2024, 10:20 PM
Reserved
Dec 22, 2023, 12:33 PM
Status
Deferred
Published
Apr 23, 2024, 5:15 AM
Modified
Jun 17, 2026, 7:09 AM
Severity
Important
Public date
Apr 23, 2024, 12:00 AM