Skip to content

mysql2 cache poisoning vulnerability

Moderate severity GitHub Reviewed Published Apr 10, 2024 to the GitHub Advisory Database • Updated Apr 12, 2024

Package

npm mysql2 (npm)

Affected versions

< 3.9.3

Patched versions

3.9.3

Description

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.

References

Published by the National Vulnerability Database Apr 10, 2024
Published to the GitHub Advisory Database Apr 10, 2024
Last updated Apr 12, 2024
Reviewed Apr 12, 2024

Severity

Moderate
6.5
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
Low
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L

Weaknesses

CVE ID

CVE-2024-21507

GHSA ID

GHSA-mqr2-w7wj-jjgr

Source code

Checking history
See something to contribute? Suggest improvements for this vulnerability.