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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| pypika | <= 0.51.1 | after 0.51.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypika | <= 0.51.1 | No fix listed |
References
- github.com technical-description
- github.com technical-description
- VulnCheck Advisory: PyPika through 0.51.1 SQL Injection via ClickHouse Search and ToFixedString Functions third-party-advisory
- ENISA EUVD EUVD-2026-141624 third-party-advisory