~ / search / GHSA-4rch-2fh8-94vw

GHSA-4rch-2fh8-94vw

MySQL2 for Node Arbitrary Code Injection

Source: GitHub Advisory Database (reviewed) Critical CVE-2024-21511

Packages

EcosystemPackageAffectedFixed in
npm mysql2 < 3.9.7 3.9.7

Details

As written in the advisory (Markdown source, shown as plain text).

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.

References

External links from the advisory. They lead to third-party sites.