GHSA-5F7M-MMPC-QHH4

Vulnerability from github – Published: 2019-05-23 09:27 – Updated: 2022-08-03 20:30
VLAI?
Summary
mysql Node.JS Module Vulnerable to Remote Memory Exposure
Details

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

Show details on source website

{
  "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"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

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.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…