CVE Explorer
CVE-2026-26198
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()`
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"ormar","vendor":"collerek","versions":[{"status":"affected","version":">= 0.9.9, < 0.23.0"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:65ec18ef8222a4e0810374cf1fa3e65f9be0b169021d5493d5b1a1b0c0dac1d3 · sha256:60e26769f58bbb0d… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:65ec18ef8222a4e0810374cf1fa3e65f9be0b169021d5493d5b1a1b0c0dac1d3 · sha256:60e26769f58bbb0d… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-89","description":"CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:65ec18ef8222a4e0810374cf1fa3e65f9be0b169021d5493d5b1a1b0c0dac1d3 · sha256:60e26769f58bbb0d… · /containers/cna/problemTypes/0/descriptions/0
Source references
3 source assertions{"name":"https://github.com/collerek/ormar/commit/a03bae14fe01358d3eaf7e319fcd5db2e4956b16","tags":["x_refsource_MISC"],"url":"https://github.com/collerek/ormar/commit/a03bae14fe01358d3eaf7e319fcd5db2e4956b16"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:65ec18ef8222a4e0810374cf1fa3e65f9be0b169021d5493d5b1a1b0c0dac1d3 · sha256:60e26769f58bbb0d… · /containers/cna/references/1
{"name":"https://github.com/collerek/ormar/releases/tag/0.23.0","tags":["x_refsource_MISC"],"url":"https://github.com/collerek/ormar/releases/tag/0.23.0"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:65ec18ef8222a4e0810374cf1fa3e65f9be0b169021d5493d5b1a1b0c0dac1d3 · sha256:60e26769f58bbb0d… · /containers/cna/references/2
{"name":"https://github.com/collerek/ormar/security/advisories/GHSA-xxh2-68g9-8jqr","tags":["x_refsource_CONFIRM"],"url":"https://github.com/collerek/ormar/security/advisories/GHSA-xxh2-68g9-8jqr"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:65ec18ef8222a4e0810374cf1fa3e65f9be0b169021d5493d5b1a1b0c0dac1d3 · sha256:60e26769f58bbb0d… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.