{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2012-4522","published":"2012-11-24T20:55:03.150000Z","last_modified":"2026-06-16T23:45:15.250000Z","status":"Modified","cvss":{"version":"2.0","score":5.0,"severity":"MEDIUM","vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-264"],"cpes":[{"criteria":"cpe:2.3:a:ruby-lang:ruby:1.9.3:*:*:*:*:*:*:*","part":"a","vendor":"ruby-lang","product":"ruby","version":"1.9.3"},{"criteria":"cpe:2.3:a:ruby-lang:ruby:2.0.0:*:*:*:*:*:*:*","part":"a","vendor":"ruby-lang","product":"ruby","version":"2.0.0"}],"cpes_truncated":false,"vendors":["ruby-lang"],"products":["ruby-lang/ruby"],"cat":"app","platform":"multi","eol":false,"severity":"medium","priority_score":45,"links":{"html_es":"/es/cve/CVE-2012-4522/","html_en":"/en/cve/CVE-2012-4522/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2012-4522","cve_org":"https://www.cve.org/CVERecord?id=CVE-2012-4522"},"untrusted":{"vendor_name":"Ruby-lang","product_name":"Ruby","desc_en":"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.","affected":[],"references":[{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090235.html","tags":[]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090515.html","tags":[]},{"url":"http://rhn.redhat.com/errata/RHSA-2013-0129.html","tags":[]},{"url":"http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=37163","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2012/10/12/6","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2012/10/13/1","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2012/10/16/1","tags":[]},{"url":"http://www.ruby-lang.org/en/news/2012/10/12/poisoned-NUL-byte-vulnerability/","tags":[]}]}}