CVEfocus › CVE database › CVE-2014-4975

CVE-2014-4975

EPSS 3.5% (higher than 89% of CVEs)Published 2014-11-15Updated 2024-08-06Assigner: mitre

Off-by-one error in the encodes function in pack.c in Ruby 1.9.3 and earlier, and 2.x through 2.1.2, when using certain format string specifiers, allows context-dependent attackers to cause a denial of service (segmentation fault) via vectors that trigger a stack-based buffer overflow.

What to do

Fixed builds are available from Red Hat, Ubuntu: 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

17Fixed
10Not 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
Ubuntu 14.04ruby1.9.1Fixed1.9.3.484-2ubuntu1.1UBUNTU-CVE-2014-4975
Ubuntu 14.04ruby2.0Fixed2.0.0.484-1ubuntu2.1UBUNTU-CVE-2014-4975
Red Hat Enterprise Linux 7rubyFixed0:2.0.0.353-22.el7_0RHSA-2014:1912
Red Hat Enterprise Linux 7ruby-develFixed0:2.0.0.353-22.el7_0RHSA-2014:1912
Red Hat Enterprise Linux 7ruby-docFixed0:2.0.0.353-22.el7_0RHSA-2014:1912
Red Hat Enterprise Linux 7ruby-irbFixed0:2.0.0.353-22.el7_0RHSA-2014:1912
Red Hat Enterprise Linux 7ruby-libsFixed0:2.0.0.353-22.el7_0RHSA-2014:1912
Red Hat Enterprise Linux 7ruby-tcltkFixed0:2.0.0.353-22.el7_0RHSA-2014:1912
Red Hat Enterprise Linux 7rubygem-bigdecimalFixed0:1.2.0-22.el7_0RHSA-2014:1912
Red Hat Enterprise Linux 7rubygem-io-consoleFixed0:0.4.2-22.el7_0RHSA-2014:1912
Red Hat Enterprise Linux 7rubygem-jsonFixed0:1.7.7-22.el7_0RHSA-2014:1912
Red Hat Enterprise Linux 7rubygem-minitestFixed0:4.3.2-22.el7_0RHSA-2014:1912
Red Hat Enterprise Linux 7rubygem-psychFixed0:2.0.0-22.el7_0RHSA-2014:1912
Red Hat Enterprise Linux 7rubygem-rakeFixed0:0.9.6-22.el7_0RHSA-2014:1912
Red Hat Enterprise Linux 7rubygem-rdocFixed0:4.0.0-22.el7_0RHSA-2014:1912
Red Hat Enterprise Linux 7rubygemsFixed0:2.0.14-22.el7_0RHSA-2014:1912
Red Hat Enterprise Linux 7rubygems-develFixed0:2.0.14-22.el7_0RHSA-2014:1912
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 5rubyNot affected

What the vendor says

As published in the CVE record by mitre, 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.