Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to ProxySQL with valid MySQL credentials
-
DeliveryNegotiate default zlib compression (CLIENT_COMPRESS)
-
ExploitSend compressed packet overstating payload_length
-
ExecutionUninitialized heap tail parsed as packet headers, forwarded to backend
-
ImpactRead backend error responses to harvest leaked heap contents
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Variable initialization
|
| Exploitation Conditions | Requires an authenticated MySQL client (valid credentials, since compression is negotiated post-authentication) that enables the MySQL compressed protocol - specifically the zlib path, which is the default because mysql-have_compress=true and CLIENT_COMPRESS is on by default. The attacker must craft a compressed packet declaring a payload_length larger than the zlib stream actually inflates to. Meaningful confidentiality impact depends on a multi-tenant / shared ProxySQL deployment where the stale heap can contain other connections' data; in a single-tenant deployment the leaked heap is the attacker's own. Limiting factors: valid credentials are mandatory, the disclosure is opportunistic (whatever stale heap bytes happen to parse as headers and survive as readable backend error text), and the data returned is non-deterministic rather than directly chosen by the attacker. The zstd compression path is not affected (it already validated the decompressed size). |
| Impact | This is a credible but not emergency-grade priority. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:L, 7.1) aligns well with the mechanism confirmed in the GHSA advisory and commit diff: an authenticated (PR:L) network attacker reads uninitialized heap memory (C:H) and can trigger excessive allocations (A:L), with no integrity impact (I:N). The confidentiality impact is real and multi-tenant in nature - leaked heap may contain other users' SQL queries, result data, credentials, and session state - which justifies the HIGH confidentiality rating. Tempering factors: exploitation requires valid MySQL credentials, so this is not an unauthenticated internet-facing bug, and real-world value depends on a multi-tenant deployment where one authenticated tenant can harvest another tenant's data. No EPSS score, no CISA KEV listing, and no weaponized exploit are present in the input; the only exploitation-related artifact is a vendor regression unit test shipped with the fix, which is not working attacker exploit code. The vuln.today decision label is 'this_week' rather than act_now/emergency, consistent with a serious-but-not-actively-exploited issue. Net: treat as a prompt patching task (this week) for multi-tenant ProxySQL operators, not a drop-everything incident, absent any evidence of active exploitation. |
| Exploit ScenarioDerived | In a shared/multi-tenant ProxySQL deployment, an attacker holding valid MySQL credentials connects and negotiates the default zlib compression, then sends a compressed MySQL packet whose header overstates payload_length far beyond what the zlib stream actually inflates to. ProxySQL walks the full claimed length, parsing the uninitialized tail of the heap buffer as MySQL packet headers and forwarding that stale data to the backend; the backend's error responses (e.g., reflecting the bad input near a SQL fragment) are returned to the attacker, disclosing other connections' queries, result data, credentials, or session state. No public working exploit is identified in the input - only a vendor regression unit test accompanies the fix. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 04, 2026
Heap information disclosure in ProxySQL releases before 3.0.10, 3.1.10, and 4.0.10 allows an authenticated MySQL client that negotiates the compressed protocol (CLIENT_COMPRESS, on by default via mysql-have_compress=true) to declare a larger payload_length than its zlib stream actually inflates to, causing buffer2array() to parse the uninitialized tail of a heap buffer as MySQL packet headers and forward that garbage to the backend; the resulting backend error text can echo stale SQL queries, result data, credentials, or session state. The zstd compression path already enforced the size check and is not affected, and the leak is opportunistic rather than attacker-selected, so meaningful confidentiality loss is concentrated in multi-tenant or shared ProxySQL deployments while single-tenant setups mostly expose the attacker's own heap. No public exploit code and no CISA KEV entry were identified at time of analysis; vendor fixes are released in 3.0.10, 3.1.10, and 4.0.10, which places this at a this-week rather than emergency priority.
RemediationAI
Upgrade to ProxySQL 3.0.10, 3.1.10, or 4.0.10 according to the branch in use - these are the vendor-released fixed versions, documented in advisory https://github.com/sysown/proxysql/security/advisories/GHSA-fvch-fpgq-pwfx and the release tags https://github.com/sysown/proxysql/releases/tag/v3.0.10, .../v3.1.10, and .../v4.0.10, with the code changes in commits 396c742f7d50b1f479e1157e296ee9d0aff1b724 and a8c1cef4d44c4beea7f6aa21b8a09a7cb8c75520 (plus a regression unit test mysql_decompress_payload_unit-t). If the upgrade cannot be applied immediately, set mysql-have_compress=false so CLIENT_COMPRESS is never negotiated - this removes the vulnerable zlib decompression path entirely, at the cost of losing compressed-protocol bandwidth and CPU savings for every client connection. Because the trigger requires valid MySQL credentials and the exposed heap is other sessions' data, also restrict ProxySQL client accounts to trusted callers and avoid sharing a single ProxySQL instance across tenants until patched; the zstd compression path already performed the output-size validation, so deployments running zstd rather than zlib were not exposed to this specific defect.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw lives in the MySQL compressed-protocol handling of the proxy: lib/mysql_data_stream.cpp::decompress_mysql_payload() wraps zlib's uncompress(), whose destLen argument is an in/out parameter updated to the number of bytes actually written. ProxySQL passed it by value and only accepted rc Z_OK, discarding the real output size, while the parallel zstd branch correctly required rc destLen. In buffer2array() the 3-byte wire header supplies a fully attacker-controlled payload_length, which becomes datalength; the destination is a malloc'd buffer of that claimed size, so after a short inflate the bytes between the actual decompressed size and the claimed length are uninitialized heap. The inner loop memcpy's sizeof(mysql_hdr) chunks from that buffer and treats them as packet headers, forwarding the parsed result to the backend, which is why this is classified as CWE-908 (use of uninitialized resource) rather than a straightforward overflow - no out-of-bounds write occurs, and an under-declared length is safely rejected with Z_BUF_ERROR. The corresponding fix captures the claimed length before the call and requires destLen == claimed_len on return. The CPE cpe:2.3:a:sysown:proxysql:*:*:*:*:*:*:*:* is unbounded, but the description and release tags scope affected builds to those prior to 3.0.10, 3.1.10, and 4.0.10; exploitation additionally requires valid MySQL credentials because compression is negotiated only after authentication.
Know when Proxysql gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:L
Authenticated MySQL client over the network (AV:N/PR:L), simple compressed-packet trigger (AC:L), heap disclosure of others' data (C:H), no integrity change (I:N), excessive-allocation DoS (A:L).
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
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.
Technical POC Analysis
CWE-908 (Use of Uninitialized Resource), specifically an uninitialized heap read in decompressmysqlpayload() in lib/mysqldatastream.cpp (advisory cites line 38).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-102664 is a heap information disclosure in ProxySQL that could expose sensitive data such as credentials or session state to authenticated users, particularly in multi-tenant deployments. Leadership should prioritize patching to mitigate potential confidentiality breaches and meet compliance requirements.
Disable the compressed protocol by setting mysql-have_compress=false; enforce least privilege for MySQL users; segment ProxySQL deployments to limit cross-tenant data exposure.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Source-address spoofing in ProxySQL 2.0.0 through 3.0.8 lets any TCP peer that can reach the MySQL frontend port forge t
Pre-authentication heap memory corruption in ProxySQL 2.0.18 through 3.0.8 allows remote unauthenticated attackers to co
Improper input validation in ProxySQL versions 3.0.0 through 3.0.8 lets MCP callers bypass the GenAI `run_sql_readonly`
EUVD-2026-117097
NVD
CVE.org
EPSS
GitHub
Exploit-DB