NVD Vulnerability Detail
Search Exploit, PoC
CVE-2012-4522
Summary

The rb_get_path_check function in file.c in Ruby 1.9.3 before patchlevel 286 and Ruby 2.0.0 before r37163 allows context-dependent attackers to create files in unexpected locations or with unexpected names via a NUL byte in a file path.

Publication Date Nov. 25, 2012, 5:55 a.m.
Registration Date Jan. 28, 2021, 3:03 p.m.
Last Update Nov. 21, 2024, 10:43 a.m.
CVSS2.0 : MEDIUM
Score 5.0
Vector AV:N/AC:L/Au:N/C:N/I:P/A:N
攻撃元区分(AV) ネットワーク
攻撃条件の複雑さ(AC)
攻撃前の認証要否(Au) 不要
機密性への影響(C) なし
完全性への影響(I)
可用性への影響(A) なし
Get all privileges. いいえ
Get user privileges いいえ
Get other privileges いいえ
User operation required いいえ
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:ruby-lang:ruby:2.0.0:*:*:*:*:*:*:*
cpe:2.3:a:ruby-lang:ruby:1.9.3:*:*:*:*:*:*:*
Related information, measures and tools
Common Vulnerabilities List

JVN Vulnerability Information
Ruby の file.c におけるファイルを作成される脆弱性
Title Ruby の file.c におけるファイルを作成される脆弱性
Summary

Ruby の file.c 内の rb_get_path_check 関数には、想定外のロケーション内に、想定外の名称を持つファイルを作成される脆弱性が存在します。

Possible impacts 攻撃者により、ファイルパス内の NUL バイト文字を介して、想定外のロケーション内に、想定外の名称を持つファイルを作成される可能性があります。
Solution

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

Publication Date Oct. 12, 2012, midnight
Registration Date Nov. 27, 2012, 4:56 p.m.
Last Update Nov. 27, 2012, 4:56 p.m.
Affected System
Ruby-lang.org
Ruby 1.9.3 patchlevel 286 未満の 1.9.3
Ruby 2.0.0 r37163 未満の 2.0.0
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
No Changed Details Date of change
0 [2012年11月27日]
  掲載
Feb. 17, 2018, 10:37 a.m.