Skip to content

CVE-2026-27953 ormar has a Pydantic Validation Bypass via Kwargs Injection in Model Constructor

CriticalCVSS 9.8 EPSS 1.4%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial
Technology
UbuntuDebian

Description

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.

Upgrade path

8 packages: 3 fixed, 4 with no fix yet.

PackageAffectedFixed inStatus
debian/ormar(Debian 12) = 0.12.0-3; = 0.12.2-1; = 0.20.2-1; = 0.21.0-1 +6 more No fix listed No fix yet
ubuntu/ormar(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/ormar(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/ormar(Ubuntu 26.10) All versions No fix listed No fix yet
collerek ormar < 0.23.1 0.23.1 Fixed
debian/ormar(Debian 14) < 0.23.1-1; = 0.11.2-1; = 0.11.2-2; = 0.11.2-3 +9 more 0.23.1-1 Fixed
pypi ormar(PyPI) < 0.23.1; <= 0.23.0; = 0.1.0; = 0.1.1 +88 more 0.23.1 Fixed
ormar-orm ormar = < 0.23.1 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi ormar(PyPI) < 0.23.1 0.23.1
pypi ormar(PyPI) = 0.1.0 No fix listed
pypi ormar(PyPI) = 0.1.1 No fix listed
pypi ormar(PyPI) = 0.1.2 No fix listed
pypi ormar(PyPI) = 0.1.3 No fix listed
pypi ormar(PyPI) = 0.10.0 No fix listed
pypi ormar(PyPI) = 0.10.1 No fix listed
pypi ormar(PyPI) = 0.10.10 No fix listed
pypi ormar(PyPI) = 0.10.11 No fix listed
pypi ormar(PyPI) = 0.10.12 No fix listed
pypi ormar(PyPI) = 0.10.13 No fix listed
pypi ormar(PyPI) = 0.10.14 No fix listed
pypi ormar(PyPI) = 0.10.15 No fix listed
pypi ormar(PyPI) = 0.10.16 No fix listed
pypi ormar(PyPI) = 0.10.17 No fix listed
pypi ormar(PyPI) = 0.10.18 No fix listed
pypi ormar(PyPI) = 0.10.19 No fix listed
pypi ormar(PyPI) = 0.10.2 No fix listed
pypi ormar(PyPI) = 0.10.20 No fix listed
pypi ormar(PyPI) = 0.10.21 No fix listed
pypi ormar(PyPI) = 0.10.22 No fix listed
pypi ormar(PyPI) = 0.10.23 No fix listed
pypi ormar(PyPI) = 0.10.24 No fix listed
pypi ormar(PyPI) = 0.10.25 No fix listed
pypi ormar(PyPI) = 0.10.3 No fix listed
Show 95 more
ProductAffected versionsFixed in
pypi ormar(PyPI) = 0.10.4 No fix listed
pypi ormar(PyPI) = 0.10.5 No fix listed
pypi ormar(PyPI) = 0.10.6 No fix listed
pypi ormar(PyPI) = 0.10.7 No fix listed
pypi ormar(PyPI) = 0.10.8 No fix listed
pypi ormar(PyPI) = 0.10.9 No fix listed
pypi ormar(PyPI) = 0.11.0 No fix listed
pypi ormar(PyPI) = 0.11.1 No fix listed
pypi ormar(PyPI) = 0.11.2 No fix listed
pypi ormar(PyPI) = 0.11.3 No fix listed
pypi ormar(PyPI) = 0.12.0 No fix listed
pypi ormar(PyPI) = 0.12.1 No fix listed
pypi ormar(PyPI) = 0.12.2 No fix listed
pypi ormar(PyPI) = 0.12.3 No fix listed
pypi ormar(PyPI) = 0.2.1 No fix listed
pypi ormar(PyPI) = 0.2.2 No fix listed
pypi ormar(PyPI) = 0.20.0 No fix listed
pypi ormar(PyPI) = 0.20.1 No fix listed
pypi ormar(PyPI) = 0.20.2 No fix listed
pypi ormar(PyPI) = 0.21.0 No fix listed
pypi ormar(PyPI) = 0.22.0 No fix listed
pypi ormar(PyPI) = 0.23.0 No fix listed
pypi ormar(PyPI) = 0.3.0 No fix listed
pypi ormar(PyPI) = 0.3.1 No fix listed
pypi ormar(PyPI) = 0.3.10 No fix listed
pypi ormar(PyPI) = 0.3.11 No fix listed
pypi ormar(PyPI) = 0.3.2 No fix listed
pypi ormar(PyPI) = 0.3.3 No fix listed
pypi ormar(PyPI) = 0.3.4 No fix listed
pypi ormar(PyPI) = 0.3.5 No fix listed
pypi ormar(PyPI) = 0.3.6 No fix listed
pypi ormar(PyPI) = 0.3.7 No fix listed
pypi ormar(PyPI) = 0.3.8 No fix listed
pypi ormar(PyPI) = 0.3.9 No fix listed
pypi ormar(PyPI) = 0.4.0 No fix listed
pypi ormar(PyPI) = 0.4.1 No fix listed
pypi ormar(PyPI) = 0.4.2 No fix listed
pypi ormar(PyPI) = 0.4.3 No fix listed
pypi ormar(PyPI) = 0.4.4 No fix listed
pypi ormar(PyPI) = 0.5.0 No fix listed
pypi ormar(PyPI) = 0.5.1 No fix listed
pypi ormar(PyPI) = 0.5.2 No fix listed
pypi ormar(PyPI) = 0.5.3 No fix listed
pypi ormar(PyPI) = 0.5.4 No fix listed
pypi ormar(PyPI) = 0.5.5 No fix listed
pypi ormar(PyPI) = 0.6.0 No fix listed
pypi ormar(PyPI) = 0.6.1 No fix listed
pypi ormar(PyPI) = 0.6.2 No fix listed
pypi ormar(PyPI) = 0.7.0 No fix listed
pypi ormar(PyPI) = 0.7.1 No fix listed
pypi ormar(PyPI) = 0.7.2 No fix listed
pypi ormar(PyPI) = 0.7.3 No fix listed
pypi ormar(PyPI) = 0.7.4 No fix listed
pypi ormar(PyPI) = 0.7.5 No fix listed
pypi ormar(PyPI) = 0.8.0 No fix listed
pypi ormar(PyPI) = 0.8.1 No fix listed
pypi ormar(PyPI) = 0.9.0 No fix listed
pypi ormar(PyPI) = 0.9.1 No fix listed
pypi ormar(PyPI) = 0.9.2 No fix listed
pypi ormar(PyPI) = 0.9.3 No fix listed
pypi ormar(PyPI) = 0.9.4 No fix listed
pypi ormar(PyPI) = 0.9.5 No fix listed
pypi ormar(PyPI) = 0.9.6 No fix listed
pypi ormar(PyPI) = 0.9.7 No fix listed
pypi ormar(PyPI) = 0.9.8 No fix listed
pypi ormar(PyPI) = 0.9.9 No fix listed
ormar-orm ormar = < 0.23.1 No fix listed
pypi ormar(PyPI) <= 0.23.0 No fix listed
debian/ormar(Debian:12) All versions No fix listed
debian/ormar(Debian:12) = 0.12.0-3 No fix listed
debian/ormar(Debian:12) = 0.12.2-1 No fix listed
debian/ormar(Debian:12) = 0.20.2-1 No fix listed
debian/ormar(Debian:12) = 0.21.0-1 No fix listed
debian/ormar(Debian:12) = 0.22.0-1 No fix listed
debian/ormar(Debian:12) = 0.23.0-1 No fix listed
debian/ormar(Debian:12) = 0.23.1-1 No fix listed
debian/ormar(Debian:12) = 0.24.0-1 No fix listed
debian/ormar(Debian:12) = 0.24.0-2 No fix listed
debian/ormar(Debian:14) < 0.23.1-1 0.23.1-1
debian/ormar(Debian:14) = 0.11.2-1 No fix listed
debian/ormar(Debian:14) = 0.11.2-2 No fix listed
debian/ormar(Debian:14) = 0.11.2-3 No fix listed
debian/ormar(Debian:14) = 0.11.3-1 No fix listed
debian/ormar(Debian:14) = 0.12.0-1 No fix listed
debian/ormar(Debian:14) = 0.12.0-2 No fix listed
debian/ormar(Debian:14) = 0.12.0-3 No fix listed
debian/ormar(Debian:14) = 0.12.2-1 No fix listed
debian/ormar(Debian:14) = 0.20.2-1 No fix listed
debian/ormar(Debian:14) = 0.21.0-1 No fix listed
debian/ormar(Debian:14) = 0.22.0-1 No fix listed
debian/ormar(Debian:14) = 0.23.0-1 No fix listed
ubuntu/ormar(Ubuntu:24.04) All versions No fix listed
ubuntu/ormar(Ubuntu:26.04) All versions No fix listed
ubuntu/ormar(Ubuntu:26.10) All versions No fix listed
collerek ormar < 0.23.1 0.23.1

References