> CVE-2026-27953 [HIGH]

« BACK_TO_HOME
PUBLISHED
2026-03-19 21:17
MODIFIED
2026-03-19 21:17
CVSS_SCORE V3
7.1
EPSS (Prob. Exploit)
1.17%
Top 32.7%
DATA SOURCES:
NVD 🔗 2026-03-19 CWE MITRE 🔗 2026-11-01 FIRST EPSS 🔗 2026-10-25 GITHUB 🔗 2026-10-28

> 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.

> AFFECTED_PRODUCTS

ℹ️ Aucun produit affecté n'a encore été publié par NVD pour cette CVE.

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L
EXPLOITABILITY
2.8
IMPACT
4.2

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Network (N)
Exploit possible à distance via réseau (HTTP, API, etc.)
AC (Complexité d'Attaque)
Attack Complexity
Low (L)
Peu de conditions requises pour exploiter
PR (Privilèges Requis)
Privileges Required
Low (L)
Authentifié avec compte utilisateur basique
UI (Interaction Utilisateur)
User Interaction
None (N)
Aucune interaction utilisateur nécessaire
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
None (N)
Aucune divulgation d'informations
I (Impact Intégrité)
Integrity Impact
High (H)
Modification totale des données possible
A (Impact Disponibilité)
Availability Impact
Low (L)
Interruption partielle du service possible

> RÉSUMÉ DES IMPACTS

Confidentialité
None
Aucune divulgation d'informations
Intégrité
High
Modification totale des données possible
Disponibilité
Low
Interruption partielle du service possible

> WEAKNESSES

CWE-20 CWE-915

> CWE DETAILED DESCRIPTIONS

CWE-20: Improper Input Validation - The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. | CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes - The product receives input from an upstream component that specifies multiple attributes, properties, or fields that are to be initialized or updated in an object, but it does not properly control which attributes can be modified.

> GITHUB SECURITY ADVISORY

GHSA-f964-whrq-44h8 HIGH

ormar Pydantic Validation Bypass via __pk_only__ and __excluded__ Kwargs Injection in Model Constructor

AFFECTED PACKAGES:
PIP / ormar
<= 0.23.0
Fixed in: 0.23.1

> HISTORIQUE DES MODIFICATIONS

Première apparition
19/03/2026 21:17
Source: NVD
📊 ENRICHISSEMENT 01/04/2026 06:02
CWE
Champ modifié: Description CWE
Ancienne valeur:
N/A
Nouvelle valeur:
CWE-20: Improper Input Validation - The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process...
Total des modifications: 1 Dernière mise à jour: 7 months ago

> REFERENCES

https://github.com/ormar-orm/ormar/blob/master/examples/fastapi_quick_start.py#L...
https://github.com/ormar-orm/ormar/blob/master/ormar/fields/foreign_key.py#L41
https://github.com/ormar-orm/ormar/blob/master/ormar/models/helpers/pydantic.py#...
https://github.com/ormar-orm/ormar/blob/master/ormar/models/model.py#L89
https://github.com/ormar-orm/ormar/blob/master/ormar/models/newbasemodel.py#L128
https://github.com/ormar-orm/ormar/blob/master/ormar/models/newbasemodel.py#L292
https://github.com/ormar-orm/ormar/commit/7f22aa21a7614b993970345b392dabb0ccde0a...
https://github.com/ormar-orm/ormar/releases/tag/0.23.1
https://github.com/ormar-orm/ormar/security/advisories/GHSA-f964-whrq-44h8
« BACK_TO_HOME