logo

CVE-2024-21511 mysql2

Package

Manager: npm
Name: mysql2
Vulnerable Version: >=0 <3.9.7

Severity

Level: Critical

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

EPSS: 0.00071 pctl0.22401

Details

MySQL2 for Node Arbitrary Code Injection 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.

Metadata

Created: 2024-04-23T06:30:47Z
Modified: 2024-04-23T20:50:56Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/04/GHSA-4rch-2fh8-94vw/GHSA-4rch-2fh8-94vw.json
CWE IDs: ["CWE-94"]
Alternative ID: GHSA-4rch-2fh8-94vw
Finding: F422
Auto approve: 1