製品・ソフトウェアに関する情報
Mechanize における OS コマンドインジェクションの脆弱性
Title Mechanize における OS コマンドインジェクションの脆弱性
Summary

Mechanize には、OS コマンドインジェクションの脆弱性が存在します。

Possible impacts 情報を取得される、情報を改ざんされる、およびサービス運用妨害 (DoS) 状態にされる可能性があります。
Solution

ベンダより正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

Publication Date Feb. 2, 2021, midnight
Registration Date Oct. 19, 2021, 5:23 p.m.
Last Update Oct. 19, 2021, 5:23 p.m.
CVSS3.0 : 重要
Score 8.3
Vector CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
CVSS2.0 : 危険
Score 7.6
Vector AV:N/AC:H/Au:N/C:C/I:C/A:C
Affected System
Mechanize project
Mechanize 2.0.0 以上 2.7.7 未満
Debian
Debian GNU/Linux 
Fedora Project
Fedora 
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
No Changed Details Date of change
1 [2021年10月19日]
  掲載
Oct. 19, 2021, 5:23 p.m.

NVD Vulnerability Information
CVE-2021-21289
Summary

Mechanize is an open-source ruby library that makes automated web interaction easy. In Mechanize from version 2.0.0 and before version 2.7.7 there is a command injection vulnerability. Affected versions of mechanize allow for OS commands to be injected using several classes' methods which implicitly use Ruby's Kernel.open method. Exploitation is possible only if untrusted input is used as a local filename and passed to any of these calls: Mechanize::CookieJar#load, Mechanize::CookieJar#save_as, Mechanize#download, Mechanize::Download#save, Mechanize::File#save, and Mechanize::FileResponse#read_body. This is fixed in version 2.7.7.

Publication Date Feb. 3, 2021, 4:15 a.m.
Registration Date Feb. 3, 2021, 10:02 a.m.
Last Update Nov. 21, 2024, 2:47 p.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:mechanize_project:mechanize:*:*:*:*:*:ruby:*:* 2.0 2.7.7
Configuration2 or higher or less more than less than
cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*
cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*
Configuration3 or higher or less more than less than
cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
Related information, measures and tools
Common Vulnerabilities List