PyPI
CVE-2026-142206
PyPika through 0.51.1 SQL Injection via ClickHouse Search and ToFixedString Functions
- Severity
- High 8.7
- Published
- 2 Dec 2026
- Last changed
- 2 Dec 2026
- Added to UpHeron
- 2 Dec 2026
- Weakness
- SQL injection (CWE-89)
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Read data
- CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N- Sources
- CVE Program
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.
Affected software
| Software | Affected versions |
|---|---|
pypikaPyPI · osv:PyPI:pypika |
|
About pypika
- Weekly downloads (PyPI)
- 2,055,253PyPI Stats, 2 Dec 2026
This is the only vulnerability in pypika in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-142206