ruby: unintentional file creation caused by inserting an illegal NUL character
Published Nov 24, 2012
5.0
MEDIUMCVSS 2.0
EPSS 2.20%
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.
Affected products
No data.
No data.
RHEL 6 Version of OpenShift Enterprise
graphviz-0:2.26.0-10.el6
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
openshift-console-0:0.0.16-1.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
openshift-origin-broker-0:1.0.11-1.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
openshift-origin-broker-util-0:1.0.15-1.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
openshift-origin-cartridge-cron-1.4-0:1.0.3-1.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
openshift-origin-cartridge-diy-0.1-0:1.0.3-1.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
openshift-origin-cartridge-haproxy-1.4-0:1.0.4-1.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
openshift-origin-cartridge-jbosseap-6.0-0:1.0.4-1.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
openshift-origin-cartridge-jbossews-1.0-0:1.0.13-1.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
openshift-origin-cartridge-jenkins-1.4-0:1.0.2-1.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
openshift-origin-cartridge-jenkins-client-1.4-0:1.0.2-1.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
openshift-origin-cartridge-mysql-5.1-0:1.0.5-1.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
openshift-origin-cartridge-perl-5.10-0:1.0.3-1.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
openshift-origin-cartridge-php-5.3-0:1.0.5-1.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
openshift-origin-cartridge-postgresql-8.4-0:1.0.3-2.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
openshift-origin-cartridge-ruby-1.8-0:1.0.7-1.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
openshift-origin-cartridge-ruby-1.9-scl-0:1.0.8-1.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
openshift-origin-msg-node-mcollective-0:1.0.3-1.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
php-0:5.3.3-22.el6
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
ruby193-ruby-0:1.9.3.327-25.el6
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
ruby193-rubygem-actionpack-1:3.2.8-3.el6
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
ruby193-rubygem-activemodel-0:3.2.8-2.el6
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
ruby193-rubygem-activerecord-1:3.2.8-3.el6
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
ruby193-rubygem-railties-0:3.2.8-2.el6
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
ruby193-rubygem-ruby_parser-0:2.3.1-3.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
rubygem-actionpack-1:3.0.13-4.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
rubygem-activemodel-0:3.0.13-3.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
rubygem-activerecord-1:3.0.13-5.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
rubygem-bson-0:1.8.1-2.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
rubygem-mongo-0:1.8.1-2.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
rubygem-openshift-origin-auth-remote-user-0:1.0.5-1.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
rubygem-openshift-origin-console-0:1.0.10-1.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
rubygem-openshift-origin-controller-0:1.0.12-1.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
rubygem-openshift-origin-node-0:1.0.11-1.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
rubygem-ruby_parser-0:2.0.4-6.el6op
Fixed · RHSA-2013:0582
Red Hat Enterprise Linux 5
ruby-0:1.8.5-27.el5
Fixed · RHSA-2013:0129
Red Hat Enterprise Linux 6
ruby
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| RHEL 6 Version of OpenShift Enterprise | graphviz-0:2.26.0-10.el6 | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | openshift-console-0:0.0.16-1.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | openshift-origin-broker-0:1.0.11-1.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | openshift-origin-broker-util-0:1.0.15-1.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | openshift-origin-cartridge-cron-1.4-0:1.0.3-1.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | openshift-origin-cartridge-diy-0.1-0:1.0.3-1.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | openshift-origin-cartridge-haproxy-1.4-0:1.0.4-1.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | openshift-origin-cartridge-jbosseap-6.0-0:1.0.4-1.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | openshift-origin-cartridge-jbossews-1.0-0:1.0.13-1.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | openshift-origin-cartridge-jenkins-1.4-0:1.0.2-1.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | openshift-origin-cartridge-jenkins-client-1.4-0:1.0.2-1.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | openshift-origin-cartridge-mysql-5.1-0:1.0.5-1.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | openshift-origin-cartridge-perl-5.10-0:1.0.3-1.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | openshift-origin-cartridge-php-5.3-0:1.0.5-1.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | openshift-origin-cartridge-postgresql-8.4-0:1.0.3-2.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | openshift-origin-cartridge-ruby-1.8-0:1.0.7-1.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | openshift-origin-cartridge-ruby-1.9-scl-0:1.0.8-1.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | openshift-origin-msg-node-mcollective-0:1.0.3-1.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | php-0:5.3.3-22.el6 | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | ruby193-ruby-0:1.9.3.327-25.el6 | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | ruby193-rubygem-actionpack-1:3.2.8-3.el6 | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | ruby193-rubygem-activemodel-0:3.2.8-2.el6 | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | ruby193-rubygem-activerecord-1:3.2.8-3.el6 | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | ruby193-rubygem-railties-0:3.2.8-2.el6 | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | ruby193-rubygem-ruby_parser-0:2.3.1-3.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | rubygem-actionpack-1:3.0.13-4.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | rubygem-activemodel-0:3.0.13-3.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | rubygem-activerecord-1:3.0.13-5.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | rubygem-bson-0:1.8.1-2.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | rubygem-mongo-0:1.8.1-2.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | rubygem-openshift-origin-auth-remote-user-0:1.0.5-1.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | rubygem-openshift-origin-console-0:1.0.10-1.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | rubygem-openshift-origin-controller-0:1.0.12-1.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | rubygem-openshift-origin-node-0:1.0.11-1.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | rubygem-ruby_parser-0:2.0.4-6.el6op | Fixed | RHSA-2013:0582 |
| Red Hat Enterprise Linux 5 | ruby-0:1.8.5-27.el5 | Fixed | RHSA-2013:0129 |
| Red Hat Enterprise Linux 6 | ruby | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This issue did not affect the versions of ruby as shipped with Red Hat Enterprise Linux 6.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
No CVSS v3.0 score for this CVE.
AV:N/AC:L/Au:N/C:N/I:P/A:N
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (10 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 2.20% (0.02204) | 81.91th | v5 (v2026.06.15) |
| Jun 15, 2026 | 2.20% (0.02204) | 80.16th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.67% (0.00666) | 69.53th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.39% (0.00391) | 74.16th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.39% (0.00391) | 72.61th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.39% (0.00391) | 69.13th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.18% (0.01183) | 61.76th | v2 (v2022.01.01) |
| Oct 19, 2022 | 1.18% (0.01183) | 60.79th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.18% (0.01183) | 58.77th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.18% (0.01183) | 35.15th | v2 (v2022.01.01) |
References (12)
- http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090235.html vendor-advisoryx_refsource_FEDORA
- http://lists.fedoraproject.org/pipermail/package-announce/2012-October/090515.html vendor-advisoryx_refsource_FEDORA
- http://rhn.redhat.com/errata/RHSA-2013-0129.html vendor-advisoryx_refsource_REDHAT
- http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=37163 x_refsource_MISC
- http://www.openwall.com/lists/oss-security/2012/10/12/6 mailing-listx_refsource_MLIST
- http://www.openwall.com/lists/oss-security/2012/10/13/1 mailing-listx_refsource_MLIST
- http://www.openwall.com/lists/oss-security/2012/10/16/1 mailing-listx_refsource_MLIST
- http://www.ruby-lang.org/en/news/2012/10/12/poisoned-NUL-byte-vulnerability/ x_refsource_CONFIRM
- https://access.redhat.com/security/cve/CVE-2012-4522 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=865940 Issue Tracking
- https://nvd.nist.gov/vuln/detail/CVE-2012-4522
- https://www.cve.org/CVERecord?id=CVE-2012-4522
Change history (0)
No recorded changes yet.