Vulnerability · Published Apr 23, 2024 · Assigned by snyk

CVE-2024-21511

Critical 9.8

In plain English

A critical-severity code injection in mysql2. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 64% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)1.0%top 36.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmmysql23.9.7GHSA-4rch-2fh8-94vw

Affected products (as reported)

VendorProductVersions
n/a mysql2 0 – before 3.9.7

Weakness: CWE-94 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P

References