Skip to content
OpenAdvisories
Critical · 9.8 CVE-2024-21508 EUVD-2024-1197GHSA-fpw7-j2hg-69v5

mysql2 Remote Code Execution (RCE) via the readCodeFor function

Published Apr 11, 2024 · Updated Aug 1, 2024 · Assigned by snyk

Description

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.

Affected products

VendorProductAffectedFixed
— mysql2 < 3.9.4 3.9.4

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling sqlpad +1 7.4.1-r4 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm mysql2 < 3.9.4 3.9.4 GHSA-fpw7-j2hg-69v5

References