Vulnerability in Ruby-Lang Ruby
CVE-2012-4522
- CVSS v2
- 5.0 Medium
- Public exploits
- None known
- EPSS
- 0.022 · 82.9th percentile
- Published
- 2012-11-24
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.
Published · last modified .
CVSS v2 metric
CVSS v2 base score 5.0 (Medium). Vector: AV:N/AC:L/Au:N/C:N/I:P/A:N. This CVE predates CVSS v3 and has no v3 score from NVD.
- Attack Vector
- Network
AV:N - Attack Complexity
- Low
AC:L - Au
- N
Au:N - Confidentiality
- None
C:N - Integrity
- P
I:P - Availability
- None
A:N
EPSS exploit prediction
EPSS 0.022, 82.9th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Ruby-Lang Ruby — versions 1.9.3, 2.0.0
Weakness classification (CWE)
References
- FEDORA-2012-16071 (vendor-advisory)
- svn.ruby-lang.org/cgi-bin/viewvc.cgi
- FEDORA-2012-16086 (vendor-advisory)
- [oss-security] 20121013 Re: CVE request: ruby file creation due in insertion of illegal NUL character (mailing-list)
- RHSA-2013:0129 (vendor-advisory)
- [oss-security] 20121016 Re: CVE request: ruby file creation due in insertion of illegal NUL character (mailing-list)
- [oss-security] 20121012 CVE request: ruby file creation due in insertion of illegal NUL character (mailing-list)
- www.ruby-lang.org/en/news/2012/10/12/poisoned-NUL-byte-vulnerability/