GHSA-4rch-2fh8-94vw

Suggest an improvement
Source
https://github.com/advisories/GHSA-4rch-2fh8-94vw
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/04/GHSA-4rch-2fh8-94vw/GHSA-4rch-2fh8-94vw.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-4rch-2fh8-94vw
Aliases
Related
Published
2024-04-23T06:30:47Z
Modified
2024-04-23T21:11:53.942953Z
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 for Node Arbitrary Code Injection
Details

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.

Database specific
{
    "nvd_published_at": "2024-04-23T05:15:48Z",
    "cwe_ids": [
        "CWE-94"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2024-04-23T20:50:56Z"
}
References

Affected packages

npm / mysql2

Package

Affected ranges

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