GHSA-5F7M-MMPC-QHH4
Vulnerability from github – Published: 2019-05-23 09:27 – Updated: 2022-08-03 20:30Versions of mysql before 2.14.0 are vulnerable to remove memory exposure.
Affected versions of mysql package allocate and send an uninitialized memory over the network when a number is provided as a password.
Only mysql running on Node.js versions below 6.0.0 are affected due to a throw added in newer node.js versions.
Proof of Concept:
require('mysql').createConnection({
host: 'localhost',
user: 'user',
password : USERPROVIDEDINPUT, // number
database : 'my_db'
}).connect();
Recommendation
Update to version 2.14.0 or later.
{
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "mysql"
},
"ranges": [
{
"events": [
{
"introduced": "2.0.0-alpha8"
},
{
"fixed": "2.14.0"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [],
"database_specific": {
"cwe_ids": [
"CWE-201"
],
"github_reviewed": true,
"github_reviewed_at": "2019-05-23T07:40:10Z",
"nvd_published_at": null,
"severity": "MODERATE"
},
"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(\u0027mysql\u0027).createConnection({\n host: \u0027localhost\u0027,\n user: \u0027user\u0027,\n password : USERPROVIDEDINPUT, // number\n database : \u0027my_db\u0027\n}).connect();\n```\n\n\n\n## Recommendation\n\nUpdate to version 2.14.0 or later.",
"id": "GHSA-5f7m-mmpc-qhh4",
"modified": "2022-08-03T20:30:06Z",
"published": "2019-05-23T09:27:00Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/mysqljs/mysql/commit/192fe45593ba5768534afb6f2154432ca67a5002"
},
{
"type": "WEB",
"url": "https://github.com/mysqljs/mysql/commit/310c6a7d1b2e14b63b572dbfbfa10128f20c6d52"
},
{
"type": "PACKAGE",
"url": "https://github.com/mysqljs/mysql"
},
{
"type": "WEB",
"url": "https://www.npmjs.com/advisories/602"
}
],
"schema_version": "1.4.0",
"severity": [],
"summary": "mysql Node.JS Module Vulnerable to Remote Memory Exposure"
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.