Bug 2276801 (CVE-2024-21511) - CVE-2024-21511 mysql2: Arbitrary Code Injection due to improper sanitization of the timezone parameter
Summary: CVE-2024-21511 mysql2: Arbitrary Code Injection due to improper sanitization ...
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2024-21511
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 2276802
TreeView+ depends on / blocked
 
Reported: 2024-04-24 04:37 UTC by Avinash Hanwate
Modified: 2024-04-24 12:57 UTC (History)
6 users (show)

Fixed In Version: mysql2 3.9.7
Clone Of:
Environment:
Last Closed: 2024-04-24 12:57:00 UTC
Embargoed:


Attachments (Terms of Use)

Description Avinash Hanwate 2024-04-24 04:37:17 UTC
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.

https://github.com/sidorares/node-mysql2/commit/7d4b098c7e29d5a6cb9eac2633bfcc2f0f1db713
https://github.com/sidorares/node-mysql2/pull/2608
https://github.com/sidorares/node-mysql2/releases/tag/v3.9.7
https://security.snyk.io/vuln/SNYK-JS-MYSQL2-6670046


Note You need to log in before you can comment on or make changes to this bug.