CVEfocus › CVE database › CVE-2026-27953

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

CVSS 7.1 HighEPSS 1.3% (higher than 72% of CVEs)Published 2026-03-19Updated 2026-03-20Assigner: GitHub_M

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.

CWE-20CWE-915

What to do

Fixed builds are available from Debian, PyPI: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
2Fix pending
2Under investigation
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10ormarFix pendingUBUNTU-CVE-2026-27953
Ubuntu 26.04ormarUnder investigationUBUNTU-CVE-2026-27953
Ubuntu 25.10ormarWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-27953
Ubuntu 24.04ormarUnder investigationUBUNTU-CVE-2026-27953
Debian 14ormarFixed0.23.1-1DEBIAN-CVE-2026-27953
Debian 12ormarFix pendingDEBIAN-CVE-2026-27953
PyPI libraryormarFixed0.23.1PYSEC-2026-2247

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.