GHSA-fpw7-j2hg-69v5

Suggest an improvement
Source
https://github.com/advisories/GHSA-fpw7-j2hg-69v5
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/04/GHSA-fpw7-j2hg-69v5/GHSA-fpw7-j2hg-69v5.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-fpw7-j2hg-69v5
Aliases
Related
Published
2024-04-11T06:30:35Z
Modified
2024-04-12T14:13:52.978459Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
mysql2 Remote Code Execution (RCE) via the readCodeFor function
Details

Versions of the package mysql2 before 3.9.4 are vulnerable to Remote Code Execution (RCE) via the readCodeFor function due to improper validation of the supportBigNumbers and bigNumberStrings values.

Database specific
{
    "nvd_published_at": "2024-04-11T05:15:47Z",
    "cwe_ids": [
        "CWE-94"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2024-04-12T13:50:58Z"
}
References

Affected packages

npm / mysql2

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.9.4