CVE-2012-4522: ruby-lang ruby
Vulnerability summary
CVE-2012-4522 is a medium (CVSS 5.0) vulnerability in ruby-lang ruby. EPSS estimates a 2.20% chance of exploitation in the next 30 days, higher than 82.5% of scored vulnerabilities.
Not severe (CVSS 5, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 3Timeline
- 24-11-2012PublishedVulnerability first disclosed.
- 06-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
1 score · 1 source · 1 versionEPSS trend
Probability
2.20%
Chance of exploitation in the next 30 days
Percentile
83%
Versus all other CVEs
30-day change
No change 0.00 pp
From 2.20% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication (CVSS vector). Other conditions: not stated in public data.
Ruby-lang1 product
- rubyEOL1.9.3 | 2.0.0
1 vendor · 1 product
References
8 links- lists.fedoraproject.org/pipermail/package-announce/2012-October/090235.htmlVendor AdvisoryX Refsource FEDORA
- lists.fedoraproject.org/pipermail/package-announce/2012-October/090515.htmlVendor AdvisoryX Refsource FEDORA
- www.ruby-lang.org/en/news/2012/10/12/poisoned-NUL-byte-vulnerability/X Refsource CONFIRM