Skip to content

CVE-2026-142206 PyPika through 0.51.1 SQL Injection via ClickHouse Search and ToFixedString Functions

HighCVSS 8.7
Published
Updated
Exploit status
No public exploit known

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.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
pypika <= 0.51.1 after 0.51.1 Fixed

Affected products

ProductAffected versionsFixed in
pypika <= 0.51.1 No fix listed

References