CVEfocus › CVE database › CVE-2012-4522

CVE-2012-4522

EPSS 2.2% (higher than 83% of CVEs)Published 2012-11-24Updated 2024-08-06Assigner: redhat

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.

What to do

Fixed builds are available from Red Hat: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

9Fixed
9Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Red Hat Enterprise Linux 6rubyNot affected
Red Hat Enterprise Linux 6ruby-develNot affected
Red Hat Enterprise Linux 6ruby-docsNot affected
Red Hat Enterprise Linux 6ruby-irbNot affected
Red Hat Enterprise Linux 6ruby-libsNot affected
Red Hat Enterprise Linux 6ruby-rdocNot affected
Red Hat Enterprise Linux 6ruby-riNot affected
Red Hat Enterprise Linux 6ruby-staticNot affected
Red Hat Enterprise Linux 6ruby-tcltkNot affected
Red Hat Enterprise Linux 5rubyFixed0:1.8.5-27.el5RHSA-2013:0129
Red Hat Enterprise Linux 5ruby-develFixed0:1.8.5-27.el5RHSA-2013:0129
Red Hat Enterprise Linux 5ruby-docsFixed0:1.8.5-27.el5RHSA-2013:0129
Red Hat Enterprise Linux 5ruby-irbFixed0:1.8.5-27.el5RHSA-2013:0129
Red Hat Enterprise Linux 5ruby-libsFixed0:1.8.5-27.el5RHSA-2013:0129
Red Hat Enterprise Linux 5ruby-modeFixed0:1.8.5-27.el5RHSA-2013:0129
Red Hat Enterprise Linux 5ruby-rdocFixed0:1.8.5-27.el5RHSA-2013:0129
Red Hat Enterprise Linux 5ruby-riFixed0:1.8.5-27.el5RHSA-2013:0129
Red Hat Enterprise Linux 5ruby-tcltkFixed0:1.8.5-27.el5RHSA-2013:0129

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.