Vulnerability · Published Apr 10, 2024 · Assigned by snyk

CVE-2024-21507

Medium 6.5

In plain English

A medium-severity improper input validation in mysql2. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 55% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)0.7%top 45.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmmysql23.9.3GHSA-mqr2-w7wj-jjgr

Affected products (as reported)

VendorProductVersions
n/a mysql2 0 – before 3.9.3

Weakness: CWE-20 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L/E:P

References