GHSA-xxh2-68g9-8jqr · 深刻度: critical · エコシステム: pip — ormar is vulnerable to SQL Injection through aggregate functions min() and max()
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.
総合評価: CVE-2026-26198 は悪用リスクが高い(74.4/100)。CVSS 深刻度は重大。悪用される可能性が高い(EPSS 0.92%、55 パーセンタイル) 根拠: 公開エクスプロイトが 1 件参照されています(Exploit-DB)。 推奨対応: 公開エクスプロイトが確認されています。影響範囲の確認、緩和策の適用、パッチ適用を優先してください。
リスクは変動します。再評価に基づき、本ページの表示内容を更新しています。
| EDB-ID | ソース | 種別 | 公開 | リンク |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS は日次で悪用されやすさの相対度合いを推定します。パーセンタイルは採点済み CVE の中での相対位置(高いほど相対的に深刻)を示します。
| # | 日付 | 旧 EPSS スコア | 新 EPSS スコア | Δ(新 − 旧) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 0.04% | 0.92% | +0.87% |
| 2 | 2026-02-24 | — | 0.04% | — |
EPSS の全履歴 (全 2 件)
この CVE の CVSS 指標。
| ベーススコア | バージョン | 深刻度 | ベクトル | 悪用しやすさ | 影響 | スコアの出典 |
|---|---|---|---|---|---|---|
| 9.8 | 3.1 | CRITICAL |
|
3.9 | 5.9 | [email protected] |
| 7.5 | 3.1 | HIGH |
|
3.9 | 3.6 | [email protected] |
GHSA-xxh2-68g9-8jqr · 深刻度: critical · エコシステム: pip — ormar is vulnerable to SQL Injection through aggregate functions min() and max()
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
not yet assigned | CVE-2026-26198 not yet assigned priority: Debian including 1 source packages (ormar), 3 status rows across 3 suites (bookworm, forky, sid): resolved 2, open 1. | https://security-tracker.debian.org/tracker/CVE-2026-26198 |
ubuntu
|
medium | CVE-2026-26198 medium priority: Ubuntu including 1 source packages (ormar), 4 status rows across 4 suites (jammy, noble, questing, upstream): needs-triage 3, DNE 1. | https://ubuntu.com/security/CVE-2026-26198 |
| URL | タグ |
|---|---|
| https://github.com/collerek/ormar/commit/a03bae14fe01358d3eaf7e319fcd5db2e4956b16 | Patch |
| https://github.com/collerek/ormar/releases/tag/0.23.0 | Product Release Notes |
| https://github.com/collerek/ormar/security/advisories/GHSA-xxh2-68g9-8jqr | Exploit Vendor Advisory |