CVE-2023-22794

Exp

A vulnerability in ActiveRecord <6.0.6.1, v6.1.7.1 and v7.0.4.1 related to the sanitization of comments. If malicious user input is passed to either the `annotate` query method, the `optimizer_hints` query method, or through the QueryLogs interface which automatically adds annotations, it may be sent to the database withinsufficient sanitization and be able to inject SQL outside of the comment.

公開: 2023-02-09 最終更新: 2026-06-17 Assigner: [email protected] ソース: [email protected]

総合評価: CVE-2023-22794 は悪用リスクが高い(74.5/100)。CVSS 深刻度は高。悪用される可能性が高い(EPSS 2.15%、80 パーセンタイル) 根拠: 公開エクスプロイトが 1 件参照されています(Exploit-DB)。 推奨対応: 公開エクスプロイトが確認されています。影響範囲の確認、緩和策の適用、パッチ適用を優先してください。

リスクは変動します。再評価に基づき、本ページの表示内容を更新しています。

CVE-2023-22794 に関する公開 exploit 参照(Exploit-DB)

EDB-ID ソース 種別 公開 リンク
nvd_ref exploit_tag Exploit-DB ↗

CVE-2023-22794 の EPSS(Exploit Prediction Scoring System)スコア

EPSS は日次で悪用されやすさの相対度合いを推定します。パーセンタイルは採点済み CVE の中での相対位置(高いほど相対的に深刻)を示します。

# 日付 旧 EPSS スコア 新 EPSS スコア Δ(新 − 旧)
1 2026-06-15 5.76% 2.15% -3.60%
2 2026-04-21 6.66% 5.76% -0.90%
3 2026-03-14 6.66%

EPSS の全履歴 (全 47 件)

CVE-2023-22794 の CVSS(Common Vulnerability Scoring System)指標

この CVE の CVSS 指標。

ベーススコア バージョン 深刻度 ベクトル 悪用しやすさ 影響 スコアの出典
8.8 3.1 HIGH
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H クリックして展開
攻撃ベクター (AV:N)
インターネットなど、ルーティングされたネットワーク越しに遠隔から悪用しうる。端末の前にいる必要はない。
攻撃の複雑さ (AC:L)
攻撃者が条件を満たせば、レース条件や珍しい構成に依存せずに再現しやすい。
必要な権限 (PR:L)
一般ユーザー権限があれば足り、管理者(root 相当)は不要。
ユーザーの関与 (UI:N)
メールのリンクを開く、マクロを有効にするなど、被害者の協力がなくても成立しうる。
スコープ (S:U)
影響は脆弱コンポーネントと同一のセキュリティ権限・信頼境界の内側に収まる。
機密性への影響 (C:H)
広範な機微データの読み取りや持ち出しが現実的。
完全性への影響 (I:H)
権限の奪取や広範なログ改竄など、システムの信頼根拠を揺るがす改ざんが現実的。
可用性への影響 (A:H)
長時間のサービス停止、データ損壊による復旧不能に近い状態など、利用者に著しい不便を与えうる。
2.8 5.9 [email protected]

CVE-2023-22794 の弱点分類(列挙)

CVE-2023-22794 の GitHub Security Advisory

GHSA-hq7p-j377-6v63 · 深刻度: high · エコシステム: rubygems — SQL Injection Vulnerability via ActiveRecord comments

CVE-2023-22794 の OS トラッカー

vendor priority summary link
debian not yet assigned CVE-2023-22794 not yet assigned priority: Debian including 1 source packages (rails), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2023-22794
redhat high https://access.redhat.com/security/cve/CVE-2023-22794
ubuntu medium CVE-2023-22794 medium priority: Ubuntu including 7 source packages (rails, rails-4.0, …), 55 status rows across 13 suites (bionic, focal, jammy, kinetic, lunar, mantic, noble, oracular, plucky, questing, trusty, upstream, xenial): DNE 30, needs-triage 13, ignored 12. https://ubuntu.com/security/CVE-2023-22794

CVE-2023-22794 の影響を受けるソフトウェア/構成

ベンダー 製品 バージョン 生の CPE
activerecord_project activerecord >= 6.0.0, < 6.0.6.1 cpe:2.3:a:activerecord_project:activerecord:*:*:*:*:*:ruby:*:*
activerecord_project activerecord >= 6.1.0, < 6.1.7.1 cpe:2.3:a:activerecord_project:activerecord:*:*:*:*:*:ruby:*:*
activerecord_project activerecord >= 7.0.0, < 7.0.4.1 cpe:2.3:a:activerecord_project:activerecord:*:*:*:*:*:ruby:*:*

CVE-2023-22794 の参考情報

cvelogic Threat Intelligence