Read the docs
TI-2012-03862 Aliases CVE-2012-4522GHSA-6mch-f8jc-rpmr

The rb_get_path_check function in file.c in Ruby 1.9.3 before patchlevel 286 and Ruby…

Priority LOW 27CWE-264Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
— Not recorded in CVSS 2.0
Attack complexity
Low
Impact type
Security bypass
Confidentiality · integrity · availability
None · Partial · None
Fix status
Fixed

Attack profile from CVSS 2.0 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-264.

Summary

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.

Why it matters now

EPSS 0.02204 82nd percentileScored 2026-11-07
Fix Fixed Red Hat: 2 advisories

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
——all versions—No fix listedCNA
  • — Vendor— Affected all versions Fixed in — No fix listed CNA

CPE configurations NVD · 2

CPEVersionsRoleVendor
cpe:2.3:a:ruby-lang:ruby:1.9.3:*:*:*:*:*:*:*1.9.3Vulnerableruby
cpe:2.3:a:ruby-lang:ruby:2.0.0:*:*:*:*:*:*:*2.0.0Vulnerableruby
  • cpe:2.3:a:ruby-lang:ruby:1.9.3:*:*:*:*:*:*:* Versions 1.9.3 Vulnerable ·ruby
  • cpe:2.3:a:ruby-lang:ruby:2.0.0:*:*:*:*:*:*:* Versions 2.0.0 Vulnerable ·ruby

Remediation

Red Hat 2 advisories

  • RHSA-2013:0582 Released 2013-02-28 · Red Hat rating Moderate
    Red Hat OpenShift Enterprise 1.1.1 update
    • Red Hat OpenShift Enterprise Infrastructure graphviz-2.26.0-10.el6, graphviz-devel-2.26.0-10.el6, graphviz-doc-2.26.0-10.el6 +42
    • Red Hat OpenShift Enterprise JBoss EAP add-on openshift-origin-cartridge-jbosseap-6.0-1.0.4-1.el6op
    • Red Hat OpenShift Enterprise Node openshift-origin-cartridge-cron-1.4-1.0.3-1.el6op, openshift-origin-cartridge-diy-0.1-1.0.3-1.el6op, openshift-origin-cartridge-haproxy-1.4-1.0.4-1.el6op +46
  • RHSA-2013:0129 Released 2013-01-08 · Red Hat rating Moderate
    ruby security and bug fix update
    • Red Hat Enterprise Linux (v. 5 server) ruby-1.8.5-27.el5, ruby-1.8.5-27.el5.i386, ruby-1.8.5-27.el5.ia64 +33
    • Red Hat Enterprise Linux Desktop (v. 5 client) ruby-1.8.5-27.el5, ruby-1.8.5-27.el5.i386, ruby-docs-1.8.5-27.el5 +11
    • Red Hat Enterprise Linux Desktop Workstation (v. 5 client) ruby-1.8.5-27.el5, ruby-devel-1.8.5-27.el5, ruby-devel-1.8.5-27.el5.i386 +2

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Enterprise Linux (v. 5 server)Fixed RHSA-2013:0129
Red Hat Enterprise Linux Desktop (v. 5 client)Fixed RHSA-2013:0129
Red Hat Enterprise Linux Desktop Workstation (v. 5 client)Fixed RHSA-2013:0129
Red Hat OpenShift Enterprise InfrastructureFixed RHSA-2013:0582
Red Hat OpenShift Enterprise JBoss EAP add-onFixed RHSA-2013:0582
Red Hat OpenShift Enterprise NodeFixed RHSA-2013:0582
Not affected: 1 product
  • Red Hat Enterprise Linux 6

Timeline

  1. 2026-10-02 Threatist record created from CVE-2012-4522
  2. 2026-10-03 Alias added: GHSA-6mch-f8jc-rpmr

References

  • TI-2026-71508 Integer overflow in GitLab allows code execution on the server KEVCVSS 3.1CRITICAL 10.0
  • TI-2017-12709 Ruby before 2.4.3 allows Net::FTP command injection. CVSS 3.0HIGH 8.8
  • TI-2008-03501 Algorithmic complexity vulnerability in the WEBrick::HTTPUtils.split_header_value… CVSS 2.0HIGH 7.8
  • TI-2021-09891 In Ruby through 3.0 on Windows, a remote attacker can submit a crafted path when a Web… CVSS 3.1HIGH 7.5
  • TI-2013-03637 Heap-based buffer overflow in Ruby 1.8, 1.9 before 1.9.3-p484, 2.0 before 2.0.0-p353, 2.1… CVSS 2.0MEDIUM 6.8
  • TI-2018-11751 An issue was discovered in the OpenSSL library in Ruby before 2.3.8, 2.4.x before 2.4.5… CVSS 3.0CRITICAL 9.8
See all 92 →

Sources