CVE-2026-142206
HIGH 8.7CVSS 4.0PyPika 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.
- Published
- 2 Dec 2026
- Last modified
- 3 Dec 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Received
- Weakness
- CWE-89
- Sources
- NVDJSONCVE ListJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | HIGH 8.7 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| CVE List | VulnCheck | CVSS 4.0 | HIGH 8.7 | 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 |
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| CVE List | VulnCheck | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: yes; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | Kayak | PyPika | <= 0.51.1 |
References
- https://github.com/kayak/pypika/blob/v0.51.1/pypika/clickhouse/search_string.py#L20-L33 · technical-description
- https://github.com/kayak/pypika/blob/v0.51.1/pypika/clickhouse/search_string.py#L64-L78 · technical-description
- https://github.com/kayak/pypika/blob/v0.51.1/pypika/clickhouse/type_conversion.py#L24-L30 · technical-description
- https://www.vulncheck.com/advisories/pypika-through-0.51.1-sql-injection-via-clickhouse-search-and-tofixedstring-functions · third-party-advisory
History
- 3 Dec 2026 17:56 UTC · NVD: updated (other details)
- 3 Dec 2026 16:56 UTC · CVE List: updated (other details)
- 2 Dec 2026 17:35 UTC · NVD: first stored (published 2 Dec 2026)
- 2 Dec 2026 16:57 UTC · CVE List: first stored (published 2 Dec 2026)