PoC Monitor
← All CVEs
CVE-2026-26198published 24 Feb 2026 02:03 UTCData: JSON · API

Collerek ormar

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.

First public PoC 29 daysafter publication · 25 Mar 2026
Public PoCs11 on GitHub
CVSS9.8critical · scored by CNA · CWE-89
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

collerek ormar
  • >= 0.9.9, < 0.23.0

Fixed in 0.23.0

Timeline

Days relative to CVE publication
t=0+7+14+21+28CVE published24 Feb 2026 · t = 0First public PoC25 Mar 2026 · t+29d

First public PoC 29 days after publication; not in CISA KEV. First PoC: sergicortesabadia/CVE-2026-26198-analysis (created 25 Mar 2026, found by us: backfilled).

PoC repositories

Found on GitHub.

1 PoCs · 1 informational

PoCs 1
RepositoryCreatedStarsAssessment
sergicortesabadia/CVE-2026-26198-analysis 25 Mar 2026 +29 d 0 PoC
Flags · score 15
  • no network code found (normal for a local exploit)

Below the suspicion threshold (50); does not change the assessment.

Informational 1
RepositoryCreatedStarsAssessment
NetVanguard-cmd/CVE-2026-26198 19 Apr 2026 +54 d 0 Informational · write-up

Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.