p PatchFirst

PatchFirst · Vulnérabilités récentes

Vulnérabilités de mysql2

Vulnérabilité publiée pour mysql2 au cours des 30 derniers jours : 0. Dans le catalogue KEV : 0.

Filtrer les vulnérabilités
Effacer les filtres

Vulnérabilités : 7

  1. GHSA-3f6p-5ww8-9rcr

    Élevée · CVSS 8.2Correctif disponible

    MySQL2: Auth Plugin Downgrade to mysql_clear_password Leaks Plaintext Credentials

    ## Summary A rogue MySQL server (or MITM) can force mysql2 to send credentials in **plaintext** by requesting an auth switch to `mysql_clear_password`. The driver complies without verifying that TLS is active. ## Details `mysql_clear_password` is registered as a default standard plugin in `lib/commands/auth_switch.js` (line 21). When a server sends an AuthSwitchRequest (0xFE) requesting `mysql_clear_password`, the driver executes it without checking for TLS. The plugin (`lib/auth_plugins/mysql_clear_password.js`) returns `Buffer.from(password + '\0')`. Note: `caching_sha2_password` plugin DOES check for SSL before sending cleartext (line

    • Mettez à jour vers 3.22.0
    Publication Mise à jour
  2. GHSA-rgwj-5xj2-c3m3

    Moyenne · CVSS 5.9Correctif disponible

    MySQL2: Unbounded zlib inflate in compressed MySQL protocol handler allows decompression-bomb DoS

    ## Vulnerability Details **File**: `lib/compressed_protocol.js` **Line**: 43 (`zlib.inflate(body, (err, data) => { ... })` inside `handleCompressedPacket`) ### Root Cause When a connection is created with `compress: true` (and the server advertises `CLIENT_COMPRESS`), every incoming packet is unwrapped by `handleCompressedPacket()` in `lib/compressed_protocol.js`, which calls: ```js zlib.inflate(body, (err, data) => { ... }); ``` No options object (in particular, no `maxOutputLength`) is passed. Node's zlib convenience methods default `maxOutputLength` to `buffer.kMaxLength`, which on this platform is `Number.MAX_SAFE_INTEGER` — i.e. effe

    • Mettez à jour vers 3.23.1
    Publication Mise à jour
  3. CVE-2024-21511

    Critique · CVSS 9.8EPSS 1,03%Correctif disponible

    CVE-2024-21511

    Versions of the package mysql2 before 3.9.7 are vulnerable to Arbitrary Code Injection due to improper sanitization of the timezone parameter in the readCodeFor function by calling a native MySQL Server date/time function.

    • Mettez à jour vers 3.9.7
    Publication Mise à jour
  4. CVE-2024-21508

    Critique · CVSS 9.8EPSS 2,55%Correctif disponible

    CVE-2024-21508

    Versions of the package mysql2 before 3.9.4 are vulnerable to Remote Code Execution (RCE) via the readCodeFor function due to improper validation of the supportBigNumbers and bigNumberStrings values.

    • Mettez à jour vers 3.9.4
    Publication Mise à jour
  5. CVE-2024-21507

    Moyenne · CVSS 6.5EPSS 0,74%Correctif disponible

    CVE-2024-21507

    Versions of the package mysql2 before 3.9.3 are vulnerable to Improper Input Validation through the keyFromFields function, resulting in cache poisoning. An attacker can inject a colon (:) character within a value of the attacker-crafted key.

    • Mettez à jour vers 3.9.3
    Publication Mise à jour
  6. CVE-2024-21509

    Moyenne · CVSS 6.5EPSS 0,95%Correctif disponible

    CVE-2024-21509

    Versions of the package mysql2 before 3.9.4 are vulnerable to Prototype Poisoning due to insecure results object creation and improper user input sanitization passed through parserFn in text_parser.js and binary_parser.js.

    • Mettez à jour vers 3.9.4
    Publication Mise à jour

Vérifiez votre serveur

Comparez votre pile et les versions installées aux bases de vulnérabilités actuelles.

Vérifiez votre serveur →