CVE-2026-102664

ProxySQL: Uninitialized heap read in MySQL compressed packet decompression via zlib path

Published Nov 4, 2026 CVSS 3.1 · 7.1 High EPSS < 1% KEV · Not listed
Description
ProxySQL is a proxy for MySQL and its forks, as well as PostgreSQL. Prior to 3.0.10, 3.1.10, and 4.0.10, decompress_mysql_payload() in lib/mysql_data_stream.cpp accepts a zlib stream when uncompress() returns Z_OK without checking that the actual output length equals the attacker-controlled payload_length. An authenticated MySQL client that negotiates compression can overstate payload_length, causing buffer2array() to parse the uninitialized tail of a heap buffer as MySQL packet headers and forward stale data to the backend. Backend error responses can disclose prior SQL queries, result data, credentials, or session state, and malformed lengths can also cause excessive allocations. This issue is fixed in versions 3.0.10, 3.1.10, and 4.0.10.

Analysis

AI-generated

Technical impact

An uninitialized heap read occurs during the decompression of MySQL packets in ProxySQL. The decompress_mysql_payload() function accepts a zlib stream and, after a successful uncompression, does not validate that the resulting data length equals the attacker‑controlled payload_length field. If an authenticated MySQL client sends a larger payload_length than the actual compressed data, ProxySQL reads beyond the allocated buffer, interprets stale bytes as MySQL packet headers, and forwards them to the backend. This can lead to the disclosure of prior SQL queries, result data, credentials, or session state.

Affected Systems

Sysown ProxySQL is the affected product. Versions prior to 3.0.10, 3.1.10, and 4.0.10 are vulnerable. Any installation of these releases or earlier versions is at risk, while the vulnerability is fixed in the indicated new releases.

Risk and Exploitability

The CVSS score of 7.1 places the vulnerability in the medium‑high severity range. EPSS data is not available, and the issue is not listed in the CISA KEV catalog. The most probable attack vector involves an authenticated MySQL client that has negotiated compression and can manipulate the payload_length field to trigger the overread, resulting in the leakage of sensitive data.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update ProxySQL to version 3.0.10, 3.1.10, or 4.0.10 or later
  • Disable MySQL packet compression in the ProxySQL configuration to eliminate the vulnerable decompression path
  • Restrict connections to trusted hosts and limit compression negotiation to trusted clients

Generated by OpenCVE AI on November 4, 2026 at 21:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Sysown
Sysown proxysql
Vendors & Products Sysown
Sysown proxysql
Type Values Removed Values Added
Description ProxySQL is a proxy for MySQL and its forks, as well as PostgreSQL. Prior to 3.0.10, 3.1.10, and 4.0.10, decompress_mysql_payload() in lib/mysql_data_stream.cpp accepts a zlib stream when uncompress() returns Z_OK without checking that the actual output length equals the attacker-controlled payload_length. An authenticated MySQL client that negotiates compression can overstate payload_length, causing buffer2array() to parse the uninitialized tail of a heap buffer as MySQL packet headers and forward stale data to the backend. Backend error responses can disclose prior SQL queries, result data, credentials, or session state, and malformed lengths can also cause excessive allocations. This issue is fixed in versions 3.0.10, 3.1.10, and 4.0.10.
Title ProxySQL: Uninitialized heap read in MySQL compressed packet decompression via zlib path
Weaknesses CWE-908
References
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:L'}

Weaknesses
  • CWE-908

    Use of Uninitialized Resource

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 9, 2026, 4:58 PM
Reserved
Sep 29, 2026, 3:56 PM
Status
Awaiting Analysis
Published
Nov 4, 2026, 9:17 PM
Modified
Nov 12, 2026, 8:04 PM
Severity
Important
Public date
Nov 4, 2026, 8:42 PM