Skip to content
Heist/ feed
UnratedFix available

DEBIAN-CVE-2026-27953

Type: advisorySource: OSV1 source record

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.

Announced Group revision 1
Original source ↗

DEBIAN-CVE-2026-27953

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:DEBIAN-CVE-2026-27953

ormar

Source reference: /affected/0/package/name

Affected versions
0.12.0-3

Source reference: /affected/0/versions

0.12.2-1

Source reference: /affected/0/versions

0.20.2-1

Source reference: /affected/0/versions

0.21.0-1

Source reference: /affected/0/versions

0.22.0-1

Source reference: /affected/0/versions

0.23.0-1

Source reference: /affected/0/versions

0.23.1-1

Source reference: /affected/0/versions

0.24.0-1

Source reference: /affected/0/versions

0.24.0-2

Source reference: /affected/0/versions

Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

ormar

Source reference: /affected/1/package/name

Affected versions
0.11.2-1

Source reference: /affected/1/versions

0.11.2-2

Source reference: /affected/1/versions

0.11.2-3

Source reference: /affected/1/versions

0.11.3-1

Source reference: /affected/1/versions

0.12.0-1

Source reference: /affected/1/versions

0.12.0-2

Source reference: /affected/1/versions

0.12.0-3

Source reference: /affected/1/versions

0.12.2-1

Source reference: /affected/1/versions

0.20.2-1

Source reference: /affected/1/versions

0.21.0-1

Source reference: /affected/1/versions

0.22.0-1

Source reference: /affected/1/versions

0.23.0-1

Source reference: /affected/1/versions

Fixed versions
0.23.1-1

Source reference: /affected/1/ranges

Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "ranges": [
      {
        "type": "ECOSYSTEM",
        "events": [
          {
            "introduced": "0"
          }
        ]
      }
    ],
    "package": {
      "name": "ormar",
      "purl": "pkg:deb/debian/ormar?arch=source&distro=bookworm",
      "ecosystem": "Debian:12"
    },
    "versions": [
      "0.12.0-3",
      "0.12.2-1",
      "0.20.2-1",
      "0.21.0-1",
      "0.22.0-1",
      "0.23.0-1",
      "0.23.1-1",
      "0.24.0-1",
      "0.24.0-2"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-27953.json"
    },
    "ecosystem_specific": {
      "urgency": "not yet assigned"
    }
  },
  {
    "ranges": [
      {
        "type": "ECOSYSTEM",
        "events": [
          {
            "introduced": "0"
          },
          {
            "fixed": "0.23.1-1"
          }
        ]
      }
    ],
    "package": {
      "name": "ormar",
      "purl": "pkg:deb/debian/ormar?arch=source&distro=forky",
      "ecosystem": "Debian:14"
    },
    "versions": [
      "0.11.2-1",
      "0.11.2-2",
      "0.11.2-3",
      "0.11.3-1",
      "0.12.0-1",
      "0.12.0-2",
      "0.12.0-3",
      "0.12.2-1",
      "0.20.2-1",
      "0.21.0-1",
      "0.22.0-1",
      "0.23.0-1"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-27953.json"
    },
    "ecosystem_specific": {
      "urgency": "not yet assigned"
    }
  }
]

Publisher severity

No explicit severity was provided.

Event
#57473 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement