SQL Injection Affecting ormar package, versions [0.9.9, 0.23.0)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.92% (56th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-ORMAR-15338259
  • published24 Feb 2026
  • disclosed23 Feb 2026
  • creditsysy

Introduced: 23 Feb 2026

CVE-2026-26198  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade ormar to version 0.23.0 or higher.

Overview

ormar is an An async ORM with fastapi in mind and pydantic validation.

Affected versions of this package are vulnerable to SQL Injection via the min and max aggregate functions, which accept user-supplied column names without validation and pass them directly into SQL expressions. An attacker can access and extract arbitrary database contents, including sensitive tables and credentials, by injecting crafted SQL through the column parameter.

CVSS Base Scores

version 4.0
version 3.1