Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify exposed ProxySQL listener
-
DeliveryOpen TCP connection to port 6033
-
ExploitSend first packet with oversized length field
-
InstallTrigger out-of-bounds heap write via recv()
-
C2Groom heap and hijack control flow
-
ExecuteExecute code as ProxySQL process
-
ImpactPivot to backend MySQL/PostgreSQL credentials
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | No special conditions - remote unauthenticated exploitation against default configurations of ProxySQL 2.0.18 through 3.0.8, requiring only TCP reachability to a client-facing listener (MySQL protocol port, default 6033, or any configured PostgreSQL listener); the vulnerability is in the pre-authentication first-read path so no credentials, prior session, or user interaction are needed. Limiting factors are network-level: instances bound to loopback or restricted to internal application subnets are not reachable by external attackers, and instances that disable the PostgreSQL listener eliminate that protocol's exposure though the MySQL path remains vulnerable. Successful code execution (versus a denial-of-service crash) additionally depends on heap layout and on whether mitigations such as ASLR, stack canaries on the target binary, and the OS allocator's hardening make exploitation reliable. |
| Impact | All available signals point to a high-priority issue: the CVSS 3.1 vector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H reflects remote, unauthenticated, low-complexity exploitation with full CIA impact, and the bug sits in the pre-authentication code path, so it is reachable on any exposed listener without credentials. EPSS and KEV data were not supplied in the input, and the issue is not currently listed in CISA KEV, so prevalence of in-the-wild use is unknown; however, ProxySQL instances are commonly internet- or intranet-exposed in front of production databases, and a heap overflow with attacker-controlled length and content is a classic precursor to RCE. No public exploit is identified at time of analysis, but the GitHub Security Advisory and tagged release v3.0.9 substantially lower the cost of reverse-engineering a working PoC. There is no conflict between the description (remote, unauthenticated) and the CVSS vector. |
| Exploit ScenarioDerived | An attacker who can reach a ProxySQL listener (for example, an exposed 6033/tcp port or a PostgreSQL frontend on an internal segment reached via SSRF or a compromised host) opens a TCP connection and sends a single crafted packet whose declared length field far exceeds 32 KB followed by attacker-chosen payload bytes. ProxySQL passes the oversized length to recv() and writes past the fixed input queue, corrupting adjacent heap structures; with careful heap grooming this is a plausible primitive for remote code execution as the ProxySQL process, otherwise reliably crashing the proxy and severing all backed database traffic. No public exploit is identified at time of analysis, but the published advisory and patch diff make PoC development straightforward. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 19, 2026
Pre-authentication heap memory corruption in ProxySQL 2.0.18 through 3.0.8 allows remote unauthenticated attackers to corrupt heap memory by sending a crafted first packet declaring an oversized length, which is passed directly to recv() into a fixed 32 KB input queue on both MySQL and PostgreSQL protocol listeners. The flaw carries a CVSS 9.8 rating and is fixed in 3.0.9; no public exploit identified at time of analysis, but the trivial trigger condition and out-of-bounds write primitive create strong potential for weaponization.
RemediationAI
Vendor-released patch: ProxySQL 3.0.9 - upgrade all affected instances to 3.0.9 or later as the primary remediation, per https://github.com/sysown/proxysql/releases/tag/v3.0.9 and the advisory at https://github.com/sysown/proxysql/security/advisories/GHSA-58ww-865x-grpr. Until the upgrade is rolled out, restrict network reachability of the ProxySQL client-facing ports (default 6033 for MySQL, plus any configured PostgreSQL listener) to known application subnets via firewall or security-group rules, since the bug triggers pre-authentication and IP allowlisting is the only effective compensating control; this trades off operational flexibility for clients connecting from new networks. Disabling the PostgreSQL listener if unused removes one of the two vulnerable code paths but does not fix the MySQL path. Front-ending ProxySQL with a TLS-terminating proxy that performs strict client certificate authentication can blunt opportunistic scanning but does not mitigate exploitation by any attacker able to complete the TCP handshake, so it is not a substitute for patching.
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
ProxySQL is a high-performance database proxy used in front of MySQL/MariaDB and PostgreSQL clusters for connection pooling, query routing, and failover. The vulnerability is a CWE-787 out-of-bounds write rooted in how the protocol front-ends parse the first packet header on a new client connection: a length field controlled by the client is passed directly to recv() while the destination buffer is a fixed 32 KB input queue, so any declared length larger than the buffer results in a heap write past the queue's bounds. Both the MySQL wire protocol listener and the PostgreSQL protocol listener share this defective first-read path, broadening the attack surface to any TCP port ProxySQL exposes for client traffic. The CPE cpe:2.3:a:sysown:proxysql:*:*:*:*:*:*:*:* confirms the upstream sysown/proxysql codebase is affected across the named range.
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:N/UI:N/S:U/C:H/I:H/A:H
Pre-authentication first-read path reached over the network with no user interaction (AV:N/AC:L/PR:N/UI:N); heap OOB write plausibly yields RCE, so C/I/A:H.
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. Versions 2.0.18 through 3.0.8 have a pre-authentication heap memory corruption vulnerability in the MySQL and PostgreSQL protocol first-read paths. A remote unauthenticated client can declare an oversized first packet length, and ProxySQL passes that attacker-controlled length directly to recv() while writing into a fixed 32 KB input queue. Version 3.0.9 patches the issue.
Articles & Coverage 2
Executive ViewAI
ProxySQL database proxy versions 2.0.18 through 3.0.8 are vulnerable to pre-authentication attacks that could disable database connectivity or compromise the integrity of all database transactions routing through the proxy. Since the vulnerability requires no credentials and affects a critical infrastructure component, any external attacker poses an immediate risk to database availability and transaction security.
Apply vendor patch: ProxySQL 3.0.9
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
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
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
Improper input validation in ProxySQL versions 3.0.0 through 3.0.8 lets MCP callers bypass the GenAI `run_sql_readonly`
Heap information disclosure in ProxySQL releases before 3.0.10, 3.1.10, and 4.0.10 allows an authenticated MySQL client
EUVD-2026-38073
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB