Improper Input Validation Affecting ormar package, versions <0.23.1-1


Severity

Recommended
0.0
critical
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
1.36% (73rd 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 IDSNYK-DEBIAN14-ORMAR-15762885
  • published24 Mar 2026
  • disclosed19 Mar 2026

Introduced: 19 Mar 2026

CVE-2026-27953  (opens in a new tab)
CWE-20  (opens in a new tab)
CWE-915  (opens in a new tab)

How to fix?

Upgrade Debian:14 ormar to version 0.23.1-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ormar package and not the ormar package as distributed by Debian. See How to fix? for Debian:14 relevant fixed versions and status.

ormar is a async mini ORM for Python. Versions 0.23.0 and below are vulnerable to Pydantic validation bypass through the model constructor, allowing any unauthenticated user to skip all field validation by injecting "pk_only": true into a JSON request body. By injecting "pk_only": true into a JSON request body, an unauthenticated attacker can skip all field validation and persist unvalidated data directly to the database. A secondary excluded parameter injection uses the same pattern to selectively nullify arbitrary model fields (e.g., email or role) during construction. This affects ormar's canonical FastAPI integration pattern recommended in its official documentation, enabling privilege escalation, data integrity violations, and business logic bypass in any application using ormar.Model directly as a request body parameter. This issue has been fixed in version 0.23.1.

CVSS Base Scores

version 3.1