原始 OSV JSON
{
"id": "GHSA-5f7m-mmpc-qhh4",
"aliases": [],
"details": "Versions of `mysql` before 2.14.0 are vulnerable to remove memory exposure.\n\nAffected versions of `mysql` package allocate and send an uninitialized memory over the network when a number is provided as a password.\n\nOnly `mysql` running on Node.js versions below 6.0.0 are affected due to a throw added in newer node.js versions.\n\nProof of Concept:\n\n```\nrequire('mysql').createConnection({\n host: 'localhost',\n user: 'user',\n password : USERPROVIDEDINPUT, // number\n database : 'my_db'\n}).connect();\n```\n\n\n\n## Recommendation\n\nUpdate to version 2.14.0 or later.",
"summary": "mysql Node.JS Module Vulnerable to Remote Memory Exposure",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "2.0.0-alpha8"
},
{
"fixed": "2.14.0"
}
]
}
],
"package": {
"name": "mysql",
"ecosystem": "npm"
}
}
],
"modified": "2022-08-03T20:30:06Z",
"severity": [],
"published": "2019-05-23T09:27:00Z",
"references": [
{
"url": "https://github.com/mysqljs/mysql/commit/192fe45593ba5768534afb6f2154432ca67a5002",
"type": "WEB"
},
{
"url": "https://github.com/mysqljs/mysql/commit/310c6a7d1b2e14b63b572dbfbfa10128f20c6d52",
"type": "WEB"
},
{
"url": "https://github.com/mysqljs/mysql",
"type": "PACKAGE"
},
{
"url": "https://www.npmjs.com/advisories/602",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-201"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": null,
"github_reviewed_at": "2019-05-23T07:40:10Z"
}
}