Unrated severityNVD Advisory· Published Dec 2, 2026
PyPika through 0.51.1 SQL Injection via ClickHouse Search and ToFixedString Functions
CVE-2026-142206
Description
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.
Patches
Vulnerability mechanics
References
4- www.vulncheck.com/advisories/pypika-through-0.51.1-sql-injection-via-clickhouse-search-and-tofixedstring-functionsmitrethird-party-advisory
- github.com/kayak/pypika/blob/v0.51.1/pypika/clickhouse/search_string.pymitretechnical-description
- github.com/kayak/pypika/blob/v0.51.1/pypika/clickhouse/search_string.pymitretechnical-description
- github.com/kayak/pypika/blob/v0.51.1/pypika/clickhouse/type_conversion.pymitretechnical-description
News mentions
0No linked articles in our index yet.