Skip to content

mysql2 Remote Code Execution (RCE) via the readCodeFor function

Critical severity GitHub Reviewed Published Apr 11, 2024 to the GitHub Advisory Database • Updated Apr 12, 2024

Package

npm mysql2 (npm)

Affected versions

< 3.9.4

Patched versions

3.9.4
Published by the National Vulnerability Database Apr 11, 2024
Published to the GitHub Advisory Database Apr 11, 2024
Reviewed Apr 12, 2024
Last updated Apr 12, 2024

Severity

Critical
9.8
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weaknesses

CVE ID

CVE-2024-21508

GHSA ID

GHSA-fpw7-j2hg-69v5

Source code

Checking history
See something to contribute? Suggest improvements for this vulnerability.