CVE-2024-21507: Versions of the package mysql2 before 3.9.3 are vulnerable to Improper Input Validation through the keyFromFie
CVE-2024-21507 is a medium-severity flaw (CVSS 6.5) affecting mysql2. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
Versions of the package mysql2 before 3.9.3 are vulnerable to Improper Input Validation through the keyFromFields function, resulting in cache poisoning. An attacker can inject a colon (:) character within a value of the attacker-crafted key.
Why this priority
- Public exploit reference
- Remotely exploitable, no login, no user action
- On your watchlist
A fixed release or distro patch exists.
Risk facts
| CVSS score | 6.5 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 0.7% (top 45%) |
| CISA exploited list | No |
| Weakness | CWE-20 |
| Published | 2024-04-10 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2024-21507?
mysql2: upgrade to 3.9.3. Exact commands for each OS are on this page.
Is CVE-2024-21507 being exploited?
CVE-2024-21507 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2024-21507 affect?
CVE-2024-21507 affects mysql2. Severity is medium (CVSS 6.5). Versions of the package mysql2 before 3.9.3 are vulnerable to Improper Input Validation through the keyFromFields function, resulting in cache poisoning. An attacker can inject a colon (:) character within a value of the attacker-crafted ke
How urgent is CVE-2024-21507?
Priority 51/100. Public exploit reference; Remotely exploitable, no login, no user action; On your watchlist
Related CVEs
- CVE-2024-21509 MEDIUM 6.5 UPGRADE Versions of the package mysql2 before 3.9.4 are vulnerable to Prototype Poisoning due to insecure results obje