Back
CVE-2012-4522
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…
Medium5.0EPSS 2.2%
- Published
- Updated
- Reserved
- Assigned by
- redhat
Description
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 2.0 | Medium5.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
- EPSS (exploitation in 30 days)
- 2.2% · top 17% of all CVEs (2 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.0.
Weakness
Affected products
n/a
- affected n/a
References (8)
- FEDORA-2012-16071 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=37163 (opens in a new tab)x_refsource_MISCx_transferred
- FEDORA-2012-16086 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- [oss-security] 20121013 Re: CVE request: ruby file creation due in insertion of illegal NUL character (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- RHSA-2013:0129 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- [oss-security] 20121016 Re: CVE request: ruby file creation due in insertion of illegal NUL character (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [oss-security] 20121012 CVE request: ruby file creation due in insertion of illegal NUL character (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- http://www.ruby-lang.org/en/news/2012/10/12/poisoned-NUL-byte-vulnerability/ (opens in a new tab)x_refsource_CONFIRMx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Record last updated .