CVE-2026-26198: Vulnerability in Collerek Ormar
Critical. 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...
PyPI, CWE-89
- Exploitation
- None confirmed
- Severity
- 9.8 of 10
- Attack likelihood
- Unknown
- Fix
- Fixed version known
- Patch deadline
- No deadline set
Details
- Advisory ID
- GHSA-xxh2-68g9-8jqr
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weakness
- CWE-89
- Published
- 23 Feb 2026
- Last change
- 16 Nov 2026
- Ecosystem
- PyPI
Affected products
Affected versions and the first fixed release
- Collerek Ormar From 0.9.9 before 0.23.0. Fixed in 0.23.0
Affected packages
Vulnerable version ranges and fixed releases
- ormar PyPI, Affected from 0.9.9 through 0.22.0. Fixed in 0.23.0
Advisories
Vendor and security advisories
- github.com/collerek/ormar/security/advisories/GHSA-xxh2-68g9-8jqr
- github.com/pypa/advisory-database/tree/main/vulns/ormar/PYSEC-2026-439.yaml
Patches and fixes
Updates, commits and release notes
- github.com/collerek/ormar/commit/a03bae14fe01358d3eaf7e319fcd5db2e4956b16
- github.com/collerek/ormar/releases/tag/0.23.0
Related
- Ormar vulnerabilities Recent advisories, watch this product