Public Date:
865940: CVE-2012-4522 ruby: unintentional file creation caused by inserting an illegal NUL character

The MITRE CVE dictionary describes this issue as:

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.

Find out more about CVE-2012-4522 from the MITRE CVE dictionary dictionary and NIST NVD.


This issue did not affect the versions of ruby as shipped with Red Hat Enterprise Linux 6.

CVSS v2 metrics

NOTE: The following CVSS v2 metrics and score provided are preliminary and subject to review.

Base Score 4.3
Base Metrics AV:N/AC:M/Au:N/C:N/I:P/A:N
Access Vector Network
Access Complexity Medium
Authentication None
Confidentiality Impact None
Integrity Impact Partial
Availability Impact None

Find out more about Red Hat support for the Common Vulnerability Scoring System (CVSS).

Red Hat Security Errata

Platform Errata Release Date
Red Hat Enterprise Linux version 5 (ruby) RHSA-2013:0129 2013-01-08
Red Hat OpenShift Enterprise Client Tools RHSA-2013:0582 2013-02-28

Affected Packages State

Platform Package State
Red Hat Enterprise Linux 6 ruby Not affected