SQL Injection Risk in Ormar ORM for Python from Collerek
CVE-2026-26198
9.8CRITICAL
Key Information:
Badges
๐พ Exploit Exists๐ก Public PoC
What is CVE-2026-26198?
The Ormar ORM for Python allows for SQL injection when specific aggregate queries are executed. In versions 0.9.9 through 0.22.0, user-supplied column names are passed directly into sqlalchemy.text() without proper validation. This lack of sanitization in the min() and max() methods can lead to an attacker injecting malicious SQL statements, potentially exposing sensitive database content. Version 0.23.0 addresses this risk with a critical patch.
Affected Version(s)
ormar >= 0.9.9, < 0.23.0
Exploit Proof of Concept (PoC)
PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.
