Paper/Archive/CVE-2024-21511

CVE-2024-21511

mysql2 mysql2 — Versions of the package mysql2 before 3.9.7 are vulnerable to Arbitrary Code Injection due to improper sanitization of the timezone param…

Description · from the CVE record

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

ProductAffectedFixed inSource
mysql2< 3.9.73.9.7CNA
mysql2< 3.9.73.9.7CISA-ADP

Scores by source

snyk (CNA)9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P
CISA ADPSSVCExploitation: poc · Automatable: yes · Technical impact: total

References

refsecurity.snyk.io/vuln/SNYK-JS-MYSQL2-6670046refgithub.com/sidorares/node-mysql2/releases/tag/v3.9.7refgithub.com/sidorares/node-mysql2/pull/2608refgithub.com/sidorares/node-mysql2/commit/7d4b098c7e29d5a6cb9eac2633bfcc2f0f1db713