CVE-2026-26198
Last modified
CVE-2026-26198 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. Ormar is a async mini ORM for Python. In versions 0.9.9 through 0.22.0, when performing aggregate queries, Ormar ORM constructs SQL expressions by passing user-supplied column names directly into `sqlalchemy.text()` without any validation or sanitization. EPSS estimates a 0.92% chance of exploitation in the next 30 days.
Description
Ormar is a async mini ORM for Python. In versions 0.9.9 through 0.22.0, when performing aggregate queries, Ormar ORM constructs SQL expressions by passing user-supplied column names directly into `sqlalchemy.text()` without any validation or sanitization. The `min()` and `max()` methods in the `QuerySet` class accept arbitrary string input as the column parameter. While `sum()` and `avg()` are partially protected by an `is_numeric` type check that rejects non-existent fields, `min()` and `max()` skip this validation entirely. As a result, an attacker-controlled string is embedded as raw SQL inside the aggregate function call. Any unauthorized user can exploit this vulnerability to read the entire database contents, including tables unrelated to the queried model, by injecting a subquery as the column parameter. Version 0.23.0 contains a patch.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Collerek | Ormar | >= 0.9.9, < 0.23.0 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-26198?
How severe is CVE-2026-26198?
How do I fix CVE-2026-26198?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-26192Open WebUI is a self-hosted artificial intelligence platform…5.4
- CVE-2026-26193Open WebUI is a self-hosted artificial intelligence platform…5.4
- CVE-2026-26194Gogs is an open source self-hosted Git service. Prior to ver…7.3
- CVE-2026-26195Gogs is an open source self-hosted Git service. Prior to ver…6.1
- CVE-2026-26196Gogs is an open source self-hosted Git service. Prior to ver…5.3
- CVE-2026-26197HDF5 is a high-performance library and a file format specifi…7.5
- CVE-2026-26199HDF5 is a high-performance library and a file format specifi…6.5
- CVE-2026-2620A weakness has been identified in Huace Monitoring and Early…7.3
- CVE-2026-26200HDF5 is software for managing data. Prior to version 1.14.4-…7.8
- CVE-2026-26201emp3r0r is a C2 designed by Linux users for Linux environmen…7.5
- CVE-2026-26202Penpot is an open-source design tool for design and code col…7.5
- CVE-2026-26203PJSIP is a free and open source multimedia communication lib…6.5
Are you affected by CVE-2026-26198?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
