CVE-2026-48772: ProxySQL: PROXY-Protocol-v1 UNKNOWN parses spoofed source IP, bypassing mysql_query_rules.client_addr ACL
ProxySQL is a proxy for MySQL and its forks, as well as PostgreSQL. In versions 2.0.0 through 3.0.8, the ProxySQL MySQL frontend accepts the PROXY UNKNOWN <addr> <addr> <port> <port>\r\n PP1 frame as a well-formed PROXY protocol header. The HAProxy PROXY protocol v1 specification says that when the protocol token is UNKNOWN, the receiver MUST ignore any address fields that follow it, because the proxy has declared it cannot determine the client identity. ProxySQL parses those address fields anyway via sscanf and writes the spoofed source address into the session's addr.addr field. From there it flows directly into the query-rule matcher, where the clientaddr predicate decides routing and ACL. When mysql-proxyprotocolnetworks = '' (the default), any TCP peer can send a PP1 frame and choose any source IP claim. With that, any mysqlqueryrules row pinned to a clientaddr value is forgeable: the attacker writes the address they want to match into the PP1 line, and ProxySQL routes their query as if it came from that address. In practice this is a routing and ACL bypass. Real deployments use clientaddr for read-write splitting (internal apps go to the primary, public traffic to read replicas), per-app schema pinning, and query-filter rules (DDL allowed only from admin CIDR, public queries blocked from dangerous patterns). An attacker that can reach the frontend port can forge their way into any of those routes. Version 3.0.9 patches this issue.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ProxySQLto a version that resolves this vulnerability.Fixed in 3.0.9
Event History
Frequently Asked Questions
What is the severity of CVE-2026-48772?
CVE-2026-48772 has been rated with a critical severity level of 10.
How does CVE-2026-48772 exploit the ProxySQL?
CVE-2026-48772 exploits ProxySQL by allowing spoofed source IP addresses to bypass mysql_query_rules.client_addr ACLs due to incorrect parsing of the PROXY Protocol v1.
What versions of ProxySQL are affected by CVE-2026-48772?
CVE-2026-48772 affects ProxySQL versions 2.0.0 through 3.0.8.
How can I mitigate CVE-2026-48772?
To mitigate CVE-2026-48772, upgrade to ProxySQL version 3.0.9 or later, where the vulnerability has been addressed.
Is there a workaround for CVE-2026-48772 while waiting for the fix?
As of now, there are no widely recommended workarounds for CVE-2026-48772, so upgrading is the best course of action.