GHSA-5f7m-mmpc-qhh4

    Dashboard / Vulnerabilities / GHSA-5f7m-mmpc-qhh4

    GHSA-5f7m-mmpc-qhh4

    Published: 23 May 2019Last Modified: 3 Aug 2022

    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.

    Affected packages

    Package

    Name: mysql

    Purl: pkg:npm/mysql

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 2.0.0-alpha8
    Fixed -2.14.0

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High