CVE-2021-41816

Exp

CGI.escape_html in Ruby before 2.7.5 and 3.x before 3.0.3 has an integer overflow and resultant buffer overflow via a long string on platforms (such as Windows) where size_t and long have different numbers of bytes. This also affects the CGI gem before 0.3.1 for Ruby.

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

総合評価: CVE-2021-41816 は悪用リスクが高い(90.2/100)。CVSS 深刻度は重大。悪用される可能性が高い(EPSS 4.77%、91 パーセンタイル) 根拠: 公開エクスプロイトが 1 件参照されています(Exploit-DB)。 直近 1 日で EPSS が +4.28% 上昇。悪用への関心が高まっている可能性があります。 推奨対応: 公開エクスプロイトが確認されています。影響範囲の確認、緩和策の適用、パッチ適用を優先してください。

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

CVE-2021-41816 に関する公開 exploit 参照(Exploit-DB)

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

CVE-2021-41816 の EPSS(Exploit Prediction Scoring System)スコア

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

# 日付 旧 EPSS スコア 新 EPSS スコア Δ(新 − 旧)
1 2026-06-15 0.48% 4.77% +4.28%
2 2026-04-16 0.44% 0.48% +0.04%
3 2026-03-07 0.44%

EPSS の全履歴 (全 56 件)

CVE-2021-41816 の CVSS(Common Vulnerability Scoring System)指標

この CVE の CVSS 指標。

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

CVE-2021-41816 の弱点分類(列挙)

CVE-2021-41816 の GitHub Security Advisory

GHSA-5cqm-crxm-6qpv · 深刻度: critical · エコシステム: rubygems — Buffer overrun in CGI.escape_html

CVE-2021-41816 の OS トラッカー

vendor priority summary link
alpine CVE-2021-41816: 1 source package rows (ruby); 8 state rows across 8 repos (3.12-main, 3.17-main, 3.18-main, 3.19-main, 3.20-main, 3.21-main, 3.22-main, edge-main); fixed 8, open 0. https://security.alpinelinux.org/vuln/CVE-2021-41816
debian not yet assigned CVE-2021-41816 not yet assigned priority: Debian including 1 source packages (ruby2.7), 1 status rows across 1 suites (bullseye): resolved 1. https://security-tracker.debian.org/tracker/CVE-2021-41816
gentoo normal CVE-2021-41816: 1 GLSA(s) (202401-27), 1 atom(s) (dev-lang/ruby); latest impact normal. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2021-41816
redhat medium https://access.redhat.com/security/cve/CVE-2021-41816
ubuntu medium CVE-2021-41816 medium priority: Ubuntu including 4 source packages (ruby2.3, ruby2.5, ruby2.7, ruby3.0), 17 status rows across 8 suites (bionic, focal, hirsute, impish, jammy, trusty, upstream, xenial): ignored 7, needs-triage 4, released 4, not-affected 2. https://ubuntu.com/security/CVE-2021-41816

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

ベンダー 製品 バージョン 生の CPE
ruby-lang cgi < 0.3.1 cpe:2.3:a:ruby-lang:cgi:*:*:*:*:*:ruby:*:*
ruby-lang cgi <= 0.2.0 cpe:2.3:a:ruby-lang:cgi:*:*:*:*:*:ruby:*:*
ruby-lang cgi <= 0.1.0 cpe:2.3:a:ruby-lang:cgi:*:*:*:*:*:ruby:*:*
fedoraproject fedora 34 cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
fedoraproject fedora 35 cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*

CVE-2021-41816 の参考情報

cvelogic Threat Intelligence