logo

GHSA-5f7m-mmpc-qhh4 mysql

Package

Manager: npm
Name: mysql
Vulnerable Version: >=2.0.0-alpha8 <2.14.0

Severity

Level: Medium

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N/E:U/RL:U/RC:C

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N

EPSS: N/A pctlN/A

Details

mysql Node.JS Module Vulnerable to Remote Memory Exposure 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.

Metadata

Created: 2019-05-23T09:27:00Z
Modified: 2022-08-03T20:30:06Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/05/GHSA-5f7m-mmpc-qhh4/GHSA-5f7m-mmpc-qhh4.json
CWE IDs: ["CWE-201"]
Alternative ID: N/A
Finding: F038
Auto approve: 1