Advisory

GHSA-4rch-2fh8-94vw

Also known as: CVE-2024-21511

Summary

MySQL2 for Node Arbitrary Code Injection

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2024-04-23 06:30 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

mysql2

npm · All systems

Affected

  • introduced 0, fixed 3.9.7 (semver)

Fixed versions

3.9.7

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences