CVE-2021-3156

Exp

Sudo before 1.9.5p2 contains an off-by-one error that can result in a heap-based buffer overflow, which allows privilege escalation to root via "sudoedit -s" and a command-line argument that ends with a single backslash character.

公開: 2021-01-26 最終更新: 2026-06-17 Assigner: [email protected] ソース: [email protected]

総合評価: CVE-2021-3156 は在野悪用が確認された重大脅威(96.2/100)。CVSS 深刻度は高。悪用される可能性が高い(EPSS 99.30%、100 パーセンタイル) 根拠: CISA KEV に登録(追加日 2022-04-06)。Sudo / Sudo が対象で、弱点分類 CWE-193の悪用が確認されています。未認証でリモート管理権限を奪取されるリスクが極めて高い。 直近 1 日で EPSS が +6.75% 上昇。悪用への関心が高まっている可能性があります。 推奨対応: CISA の対応期限を過ぎています。緊急のパッチ適用を最優先に検討してください。

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

CVE-2021-3156 の CISA KEV レコード

名称: Sudo Heap-Based Buffer Overflow Vulnerability · CISA KEV の詳細

悪用情報の追加日: 2022-04-06

対応期限: 2022-04-27

求められる対応: Apply updates per vendor instructions.

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

EDB-ID ソース 種別 公開 リンク
49522 exploit_db edb 2021-02-03 Exploit-DB ↗
49521 exploit_db edb 2021-02-03 Exploit-DB ↗
nvd_ref exploit_tag Exploit-DB ↗
nvd_ref exploit_tag Exploit-DB ↗
nvd_ref exploit_tag Exploit-DB ↗
nvd_ref exploit_tag Exploit-DB ↗
nvd_ref exploit_tag Exploit-DB ↗
nvd_ref exploit_tag Exploit-DB ↗
nvd_ref exploit_tag Exploit-DB ↗
nvd_ref exploit_tag Exploit-DB ↗
nvd_ref exploit_tag Exploit-DB ↗
nvd_ref exploit_tag Exploit-DB ↗
nvd_ref exploit_tag Exploit-DB ↗
nvd_ref exploit_tag Exploit-DB ↗

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

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

# 日付 旧 EPSS スコア 新 EPSS スコア Δ(新 − 旧)
1 2026-06-15 92.55% 99.30% +6.75%
2 2026-05-24 92.46% 92.55% +0.10%
3 2026-04-22 92.46%

EPSS の全履歴 (全 103 件)

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

この CVE の CVSS 指標。

ベーススコア バージョン 深刻度 ベクトル 悪用しやすさ 影響 スコアの出典
7.8 3.1 HIGH
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H クリックして展開
攻撃ベクター (AV:L)
対象ホスト上でコードを実行できること、または別ユーザーの誤操作・悪意ある操作が前提になる。
攻撃の複雑さ (AC:L)
攻撃者が条件を満たせば、レース条件や珍しい構成に依存せずに再現しやすい。
必要な権限 (PR:L)
一般ユーザー権限があれば足り、管理者(root 相当)は不要。
ユーザーの関与 (UI:N)
メールのリンクを開く、マクロを有効にするなど、被害者の協力がなくても成立しうる。
スコープ (S:U)
影響は脆弱コンポーネントと同一のセキュリティ権限・信頼境界の内側に収まる。
機密性への影響 (C:H)
広範な機微データの読み取りや持ち出しが現実的。
完全性への影響 (I:H)
権限の奪取や広範なログ改竄など、システムの信頼根拠を揺るがす改ざんが現実的。
可用性への影響 (A:H)
長時間のサービス停止、データ損壊による復旧不能に近い状態など、利用者に著しい不便を与えうる。
1.8 5.9 [email protected]
7.8 3.1 HIGH
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H クリックして展開
攻撃ベクター (AV:L)
対象ホスト上でコードを実行できること、または別ユーザーの誤操作・悪意ある操作が前提になる。
攻撃の複雑さ (AC:L)
攻撃者が条件を満たせば、レース条件や珍しい構成に依存せずに再現しやすい。
必要な権限 (PR:L)
一般ユーザー権限があれば足り、管理者(root 相当)は不要。
ユーザーの関与 (UI:N)
メールのリンクを開く、マクロを有効にするなど、被害者の協力がなくても成立しうる。
スコープ (S:U)
影響は脆弱コンポーネントと同一のセキュリティ権限・信頼境界の内側に収まる。
機密性への影響 (C:H)
広範な機微データの読み取りや持ち出しが現実的。
完全性への影響 (I:H)
権限の奪取や広範なログ改竄など、システムの信頼根拠を揺るがす改ざんが現実的。
可用性への影響 (A:H)
長時間のサービス停止、データ損壊による復旧不能に近い状態など、利用者に著しい不便を与えうる。
1.8 5.9 134c704f-9b21-4f2e-91b3-4a467353bcc0
7.2 2.0 HIGH
AV:L/AC:L/Au:N/C:C/I:C/A:C クリックして展開
アクセス経路 (AV:L)
対象ホストにログインするなど、ローカルからの操作が前提。
アクセスの複雑さ (AC:L)
手順が短く、再現性が高い。
認証 (AU:N)
認証を経ずに攻撃を完結できる。
機密性への影響 (C:C)
機密性は全面的に損なわれる。
完全性への影響 (I:C)
完全性は全面的に損なわれる。
可用性への影響 (A:C)
可用性は全面的に損なわれる。
3.9 10.0 [email protected]

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

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

vendor priority summary link
alpine CVE-2021-3156: 1 source package rows (sudo); 22 state rows across 11 repos (3.10-main, 3.11-main, 3.12-main, 3.17-community, 3.18-community, 3.19-community, 3.20-community, 3.21-community, 3.22-community, edge-community, edge-main); fixed 12, open 10. https://security.alpinelinux.org/vuln/CVE-2021-3156
debian not yet assigned CVE-2021-3156 not yet assigned priority: Debian including 1 source packages (sudo), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2021-3156
gentoo high CVE-2021-3156: 1 GLSA(s) (202101-33), 1 atom(s) (app-admin/sudo); latest impact high. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2021-3156
redhat high https://access.redhat.com/security/cve/CVE-2021-3156
suse high CVE-2021-3156 severity important: SUSE including 294 source package names (1.1.1.0.1.5.424:sudo-1.8.22-4.18.1, 1.2.0.0.1.5.430:sudo-1.8.22-4.18.1, …), 372 product×package rows across 93 product lines (Container ses/6/cephcsi/cephcsi, Container ses/6/rook/ceph, … (93 product lines)): Fixed 244, Known Affected 124, Known Not Affected 4. https://www.suse.com/security/cve/CVE-2021-3156/
ubuntu high CVE-2021-3156 high priority: Ubuntu including 1 source packages (sudo), 6 status rows across 6 suites (bionic, focal, groovy, trusty, upstream, xenial): released 6. https://ubuntu.com/security/CVE-2021-3156

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

ベンダー 製品 バージョン 生の CPE
sudo_project sudo >= 1.8.2, < 1.8.32 cpe:2.3:a:sudo_project:sudo:*:*:*:*:*:*:*:*
sudo_project sudo >= 1.9.0, < 1.9.5 cpe:2.3:a:sudo_project:sudo:*:*:*:*:*:*:*:*
sudo_project sudo 1.9.5 cpe:2.3:a:sudo_project:sudo:1.9.5:-:*:*:*:*:*:*
sudo_project sudo 1.9.5 cpe:2.3:a:sudo_project:sudo:1.9.5:patch1:*:*:*:*:*:*
fedoraproject fedora 32 cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*
fedoraproject fedora 33 cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*
debian debian_linux 9.0 cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
debian debian_linux 10.0 cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
netapp active_iq_unified_manager cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:vmware_vsphere:*:*
netapp cloud_backup cpe:2.3:a:netapp:cloud_backup:-:*:*:*:*:*:*:*
netapp hci_management_node cpe:2.3:a:netapp:hci_management_node:-:*:*:*:*:*:*:*
netapp oncommand_unified_manager_core_package cpe:2.3:a:netapp:oncommand_unified_manager_core_package:-:*:*:*:*:*:*:*
netapp ontap_select_deploy_administration_utility cpe:2.3:a:netapp:ontap_select_deploy_administration_utility:-:*:*:*:*:*:*:*
netapp ontap_tools 9 cpe:2.3:a:netapp:ontap_tools:9:*:*:*:*:vmware_vsphere:*:*
netapp solidfire cpe:2.3:a:netapp:solidfire:-:*:*:*:*:*:*:*
mcafee web_gateway 8.2.17 cpe:2.3:a:mcafee:web_gateway:8.2.17:*:*:*:*:*:*:*
mcafee web_gateway 9.2.8 cpe:2.3:a:mcafee:web_gateway:9.2.8:*:*:*:*:*:*:*
mcafee web_gateway 10.0.4 cpe:2.3:a:mcafee:web_gateway:10.0.4:*:*:*:*:*:*:*
synology diskstation_manager_unified_controller 3.0 cpe:2.3:a:synology:diskstation_manager_unified_controller:3.0:*:*:*:*:*:*:*
synology diskstation_manager 6.2 cpe:2.3:o:synology:diskstation_manager:6.2:*:*:*:*:*:*:*
synology skynas_firmware cpe:2.3:o:synology:skynas_firmware:-:*:*:*:*:*:*:*
synology vs960hd_firmware cpe:2.3:o:synology:vs960hd_firmware:-:*:*:*:*:*:*:*
beyondtrust privilege_management_for_mac < 21.1.1 cpe:2.3:a:beyondtrust:privilege_management_for_mac:*:*:*:*:*:*:*:*
beyondtrust privilege_management_for_unix\/linux < 10.3.2-10 cpe:2.3:a:beyondtrust:privilege_management_for_unix\/linux:*:*:*:*:basic:*:*:*
oracle micros_compact_workstation_3_firmware 310 cpe:2.3:o:oracle:micros_compact_workstation_3_firmware:310:*:*:*:*:*:*:*
oracle micros_es400_firmware >= 400, <= 410 cpe:2.3:o:oracle:micros_es400_firmware:*:*:*:*:*:*:*:*
oracle micros_kitchen_display_system_firmware 210 cpe:2.3:o:oracle:micros_kitchen_display_system_firmware:210:*:*:*:*:*:*:*
oracle micros_workstation_5a_firmware 5a cpe:2.3:o:oracle:micros_workstation_5a_firmware:5a:*:*:*:*:*:*:*
oracle micros_workstation_6_firmware >= 610, <= 655 cpe:2.3:o:oracle:micros_workstation_6_firmware:*:*:*:*:*:*:*:*
oracle communications_performance_intelligence_center >= 10.3.0.0.0, <= 10.3.0.2.1 cpe:2.3:a:oracle:communications_performance_intelligence_center:*:*:*:*:*:*:*:*
oracle communications_performance_intelligence_center >= 10.4.0.1.0, <= 10.4.0.3.1 cpe:2.3:a:oracle:communications_performance_intelligence_center:*:*:*:*:*:*:*:*
oracle tekelec_platform_distribution >= 7.4.0, <= 7.7.1 cpe:2.3:a:oracle:tekelec_platform_distribution:*:*:*:*:*:*:*:*

CVE-2021-3156 の参考情報

URL タグ
http://packetstormsecurity.com/files/161160/Sudo-Heap-Based-Buffer-Overflow.html Exploit Third Party Advisory VDB Entry
http://packetstormsecurity.com/files/161230/Sudo-Buffer-Overflow-Privilege-Escalation.html Exploit Third Party Advisory VDB Entry
http://packetstormsecurity.com/files/161270/Sudo-1.9.5p1-Buffer-Overflow-Privilege-Escalation.html Exploit Third Party Advisory VDB Entry
http://packetstormsecurity.com/files/161293/Sudo-1.8.31p2-1.9.5p1-Buffer-Overflow.html Exploit Third Party Advisory VDB Entry
http://packetstormsecurity.com/files/176932/glibc-syslog-Heap-Based-Buffer-Overflow.html Exploit Third Party Advisory VDB Entry
http://seclists.org/fulldisclosure/2021/Feb/42 Mailing List Third Party Advisory
http://seclists.org/fulldisclosure/2021/Jan/79 Exploit Mailing List Third Party Advisory
http://seclists.org/fulldisclosure/2024/Feb/3 Exploit Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2021/01/26/3 Exploit Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2021/01/27/1 Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2021/01/27/2 Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2021/02/15/1 Exploit Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2021/09/14/2 Mailing List Patch Third Party Advisory
http://www.openwall.com/lists/oss-security/2024/01/30/6 Exploit Mailing List
http://www.openwall.com/lists/oss-security/2024/01/30/8 Mailing List
https://kc.mcafee.com/corporate/index?page=content&id=SB10348 Broken Link Third Party Advisory
https://lists.debian.org/debian-lts-announce/2021/01/msg00022.html Mailing List Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CALA5FTXIQBRRYUA2ZQNJXB6OQMAXEII/ Mailing List Release Notes
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LHXK6ICO5AYLGFK2TAX5MZKUXTUKWOJY/ Mailing List Release Notes
https://security.gentoo.org/glsa/202101-33 Third Party Advisory
https://security.netapp.com/advisory/ntap-20210128-0001/ Third Party Advisory
https://security.netapp.com/advisory/ntap-20210128-0002/ Third Party Advisory
https://support.apple.com/kb/HT212177 Third Party Advisory
https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-sudo-privesc-jan2021-qnYQfcM Third Party Advisory
https://www.beyondtrust.com/blog/entry/security-advisory-privilege-management-for-unix-linux-pmul-basic-and-privilege-management-for-mac-pmm-affected-by-sudo-vulnerability Third Party Advisory
https://www.debian.org/security/2021/dsa-4839 Third Party Advisory
https://www.kb.cert.org/vuls/id/794544 Third Party Advisory US Government Resource
https://www.openwall.com/lists/oss-security/2021/01/26/3 Exploit Mailing List Third Party Advisory
https://www.oracle.com//security-alerts/cpujul2021.html Patch Third Party Advisory
https://www.oracle.com/security-alerts/cpuapr2022.html Patch Third Party Advisory
https://www.oracle.com/security-alerts/cpuoct2021.html Patch Third Party Advisory
https://www.sudo.ws/stable.html#1.9.5p2 Release Notes
https://www.synology.com/security/advisory/Synology_SA_21_02 Third Party Advisory
https://www.vicarius.io/vsociety/posts/sudoedit-pwned-cve-2021-3156 Exploit Third Party Advisory
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-3156 US Government Resource
cvelogic Threat Intelligence