Skip to content
OpenAdvisories
Critical · 9.8 CVE-2024-21511 EUVD-2024-1092GHSA-4rch-2fh8-94vw

MySQL2 for Node Arbitrary Code Injection

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

Description

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.

Affected products

VendorProductAffectedFixed
— mysql2 < 3.9.7 3.9.7

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.7 3.9.7 GHSA-4rch-2fh8-94vw

References