GHSA-xxh2-68g9-8jqr · Severity: critical · Ecosystem: pip — ormar is vulnerable to SQL Injection through aggregate functions min() and max()
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.
Conclusion & alert: CVE-2026-26198 is rated High Exploit Risk (74.4/100): CVSS Critical severity, with medium exploitation likelihood (EPSS 0.92%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
| EDB-ID | Source | Kind | Published | Link |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 0.04% | 0.92% | +0.87% |
| 2 | 2026-02-24 | — | 0.04% | — |
Full EPSS history (2 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 9.8 | 3.1 | CRITICAL |
|
3.9 | 5.9 | [email protected] |
| 7.5 | 3.1 | HIGH |
|
3.9 | 3.6 | [email protected] |
GHSA-xxh2-68g9-8jqr · Severity: critical · Ecosystem: pip — ormar is vulnerable to SQL Injection through aggregate functions min() and max()
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
not yet assigned | CVE-2026-26198 not yet assigned priority: Debian including 1 source packages (ormar), 3 status rows across 3 suites (bookworm, forky, sid): resolved 2, open 1. | https://security-tracker.debian.org/tracker/CVE-2026-26198 |
ubuntu
|
medium | CVE-2026-26198 medium priority: Ubuntu including 1 source packages (ormar), 4 status rows across 4 suites (jammy, noble, questing, upstream): needs-triage 3, DNE 1. | https://ubuntu.com/security/CVE-2026-26198 |
| URL | Tags |
|---|---|
| https://github.com/collerek/ormar/commit/a03bae14fe01358d3eaf7e319fcd5db2e4956b16 | Patch |
| https://github.com/collerek/ormar/releases/tag/0.23.0 | Product Release Notes |
| https://github.com/collerek/ormar/security/advisories/GHSA-xxh2-68g9-8jqr | Exploit Vendor Advisory |