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

Published Dec 2, 2026
·
Updated

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

1 affected component
pypi/pypika<=0.51.1

Event History

Dec 2, 2026
CVE Published
via MITRE·04:50 PM
Data Sourced
via MITRE·04:50 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:17 PM
DescriptionSeverityWeakness
Event
via NVD·05:17 PM

Frequently Asked Questions

1

Who is exposed to this issue?

Applications using PyPika through 0.51.1 with ClickHouse are exposed when untrusted input can reach Match, Like, NotLike, MultiSearchAny, MultiMatchAny pattern arguments, or ToFixedString values.

2

What does an attacker need to exploit it?

An attacker needs control over one of the affected pattern or value arguments. No authentication or user interaction is required according to the provided severity vector.

3

What could an attacker do with successful injection?

Injected input can close SQL string literals, potentially bypassing tenant filters or reading data from other tables. The provided impact information indicates high confidentiality impact, with no stated integrity or availability impact.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203