CVE-2026-142206: PyPika through 0.51.1 SQL Injection via ClickHouse Search and ToFixedString Functions
PyPika through 0.51.1 contains an sql injection vulnerability that allows attackers to inject SQL through unescaped pattern arguments in ClickHouse search functions and ToFixedString. Attackers controlling Match, Like, NotLike, MultiSearchAny, MultiMatchAny patterns or ToFixedString values can close string literals to bypass tenant filters or read other tables.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Applications using PyPika through 0.51.1 with ClickHouse are exposed when untrusted input can reach Match, Like, NotLike, MultiSearchAny, MultiMatchAny pattern arguments, or ToFixedString values.
What does an attacker need to exploit it?
An attacker needs control over one of the affected pattern or value arguments. No authentication or user interaction is required according to the provided severity vector.
What could an attacker do with successful injection?
Injected input can close SQL string literals, potentially bypassing tenant filters or reading data from other tables. The provided impact information indicates high confidentiality impact, with no stated integrity or availability impact.