{"cve":"CVE-2012-4522","nvd":{"published":"2012-11-24T20:55:03.150","modified":"2026-06-16T23:45:15.250","status":"Modified","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_v4":null,"cvss_v3":null,"cwes":["CWE-264"],"references":["http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090235.html","http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090515.html","http://rhn.redhat.com/errata/RHSA-2013-0129.html","http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=37163","http://www.openwall.com/lists/oss-security/2012/10/12/6"],"products":["ruby-lang:ruby"],"source":"nvd","synced_at":"2026-10-19T20:27:27.940201468+00:00"},"epss":{"cve":"CVE-2012-4522","score":0.02204,"percentile":0.82551,"date":"2026-10-31"},"kev":null,"osv":[],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}