Debian Package Tracker
Register | Log in
Subscribe

ormar

async ORM with fastapi in mind and pydantic validation

Choose email to subscribe with

general
  • source: ormar (main)
  • version: 0.23.1-1
  • maintainer: Debian Python Team (DMD)
  • uploaders: Edward Betts [DMD]
  • arch: all
  • std-ver: 4.7.3
  • VCS: Git (Browse, QA)
versions [more versions can be listed by madison] [old versions available from snapshot.debian.org]
[pool directory]
  • oldstable: 0.12.0-3
  • testing: 0.23.1-1
  • unstable: 0.23.1-1
versioned links
  • 0.12.0-3: [.dsc, use dget on this link to retrieve source package] [changelog] [copyright] [rules] [control]
  • 0.23.1-1: [.dsc, use dget on this link to retrieve source package] [changelog] [copyright] [rules] [control]
binaries
  • python3-ormar
action needed
Debci reports failed tests high
  • unstable: pass (log)
    The tests ran in 0:02:06
    Last run: 2026-03-21T11:13:28.000Z
    Previous status: unknown

  • testing: pass (log)
    The tests ran in 0:00:55
    Last run: 2026-02-01T16:29:55.000Z
    Previous status: unknown

  • stable: fail (log)
    The tests ran in 0:00:14
    Last run: 2025-08-11T11:59:02.000Z
    Previous status: unknown

Created: 2024-07-29 Last update: 2026-04-06 02:00
2 security issues in bookworm high

There are 2 open security issues in bookworm.

1 important issue:
  • CVE-2026-27953: 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.
1 issue left for the package maintainer to handle:
  • CVE-2026-26198: (needs triaging) Ormar is a async mini ORM for Python. In versions 0.9.9 through 0.22.0, when performing aggregate queries, Ormar ORM constructs SQL expressions by passing user-supplied column names directly into `sqlalchemy.text()` without any validation or sanitization. The `min()` and `max()` methods in the `QuerySet` class accept arbitrary string input as the column parameter. While `sum()` and `avg()` are partially protected by an `is_numeric` type check that rejects non-existent fields, `min()` and `max()` skip this validation entirely. As a result, an attacker-controlled string is embedded as raw SQL inside the aggregate function call. Any unauthorized user can exploit this vulnerability to read the entire database contents, including tables unrelated to the queried model, by injecting a subquery as the column parameter. Version 0.23.0 contains a patch.

You can find information about how to handle this issue in the security team's documentation.

Created: 2026-02-24 Last update: 2026-03-24 05:01
debian/patches: 1 patch to forward upstream low

Among the 1 debian patch available in version 0.23.1-1 of the package, we noticed the following issues:

  • 1 patch where the metadata indicates that the patch has not yet been forwarded upstream. You should either forward the patch upstream or update the metadata to document its real status.
Created: 2023-02-26 Last update: 2026-03-22 20:02
Standards version of the package is outdated. wishlist
The package should be updated to follow the last version of Debian Policy (Standards-Version 4.7.4 instead of 4.7.3).
Created: 2026-03-31 Last update: 2026-03-31 15:01
news
[rss feed]
  • [2026-03-24] ormar 0.23.1-1 MIGRATED to testing (Debian testing watch)
  • [2026-03-22] Accepted ormar 0.23.1-1 (source) into unstable (Edward Betts)
  • [2026-03-20] ormar 0.23.0-1 MIGRATED to testing (Debian testing watch)
  • [2026-03-18] Accepted ormar 0.23.0-1 (source) into unstable (Edward Betts)
  • [2026-02-18] ormar 0.22.0-1 MIGRATED to testing (Debian testing watch)
  • [2026-02-11] Accepted ormar 0.22.0-1 (source) into unstable (Edward Betts)
  • [2026-01-13] ormar 0.21.0-1 MIGRATED to testing (Debian testing watch)
  • [2026-01-10] Accepted ormar 0.21.0-1 (source) into unstable (Edward Betts)
  • [2026-01-01] ormar 0.20.2-1 MIGRATED to testing (Debian testing watch)
  • [2025-12-29] Accepted ormar 0.20.2-1 (source) into unstable (Edward Betts)
  • [2024-04-13] ormar REMOVED from testing (Debian testing watch)
  • [2024-01-16] ormar 0.12.2-1 MIGRATED to testing (Debian testing watch)
  • [2023-12-12] ormar REMOVED from testing (Debian testing watch)
  • [2023-09-03] ormar 0.12.2-1 MIGRATED to testing (Debian testing watch)
  • [2023-08-31] Accepted ormar 0.12.2-1 (source) into unstable (Edward Betts)
  • [2022-12-31] ormar 0.12.0-3 MIGRATED to testing (Debian testing watch)
  • [2022-12-28] Accepted ormar 0.12.0-3 (source) into unstable (Edward Betts)
  • [2022-12-27] Accepted ormar 0.12.0-2 (source) into unstable (Sandro Tosi)
  • [2022-10-28] ormar 0.12.0-1 MIGRATED to testing (Debian testing watch)
  • [2022-10-25] Accepted ormar 0.12.0-1 (source) into unstable (Edward Betts)
  • [2022-09-10] ormar 0.11.3-1 MIGRATED to testing (Debian testing watch)
  • [2022-09-07] Accepted ormar 0.11.3-1 (source) into unstable (Edward Betts)
  • [2022-09-04] ormar 0.11.2-3 MIGRATED to testing (Debian testing watch)
  • [2022-09-04] Accepted ormar 0.11.2-3 (source) into unstable (Edward Betts)
  • [2022-07-12] ormar 0.11.2-2 MIGRATED to testing (Debian testing watch)
  • [2022-07-08] Accepted ormar 0.11.2-2 (source) into unstable (Edward Betts)
  • [2022-07-06] Accepted ormar 0.11.2-1 (source all) into unstable, unstable (Debian FTP Masters) (signed by: Edward Betts)
bugs [bug history graph]
  • all: 0
links
  • homepage
  • lintian
  • buildd: logs, reproducibility
  • popcon
  • browse source code
  • edit tags
  • other distros
  • security tracker
  • debian patches
  • debci
ubuntu Ubuntu logo [Information about Ubuntu for Debian Developers]
  • version: 0.22.0-1

Debian Package Tracker — Copyright 2013-2025 The Distro Tracker Developers
Report problems to the tracker.debian.org pseudo-package in the Debian BTS.
Documentation — Bugs — Git Repository — Contributing