Advisory

GHSA-fpw7-j2hg-69v5

Also known as: CVE-2024-21508

Summary

mysql2 Remote Code Execution (RCE) via the readCodeFor function

Details

Versions of the package mysql2 before 3.9.4 are vulnerable to Remote Code Execution (RCE) via the readCodeFor function due to improper validation of the supportBigNumbers and bigNumberStrings values.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

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

Affected packages and fixes

mysql2

npm · All systems

Affected

  • introduced 0, fixed 3.9.4 (semver)

Fixed versions

3.9.4

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