Skip to content
OpenAdvisories
Unscored CVE-2014-4975 EUVD-2014-4890GHSA-gxj7-mcpg-jpr6

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 speci…

Published Nov 15, 2014 · Updated Aug 6, 2024 · Assigned by mitre

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 7 ruby1.9.1 1.9.3.194-8.1+deb7u3 DSA-3157-1
Debian 6.0 ruby1.9.1 1.9.2.0-2+deb6u3 DLA-200-1
ReleasePackageFixed inAdvisory
Ubuntu 14.04 LTS ruby1.9.1 1.9.3.484-2ubuntu1.1 USN-2397-1
Ubuntu 14.04 LTS ruby2.0 2.0.0.484-1ubuntu2.1 USN-2397-1
ReleasePackageFixed inAdvisory
RHEL 7 ruby +5 2.0.0.353-22.el7_0 RHSA-2014:1912
RHEL 7 rubygem-bigdecimal 1.2.0-22.el7_0 RHSA-2014:1912
RHEL 7 rubygem-io-console 0.4.2-22.el7_0 RHSA-2014:1912
RHEL 7 rubygem-json 1.7.7-22.el7_0 RHSA-2014:1912
RHEL 7 rubygem-minitest 4.3.2-22.el7_0 RHSA-2014:1912
RHEL 7 rubygem-psych 2.0.0-22.el7_0 RHSA-2014:1912
RHEL 7 rubygem-rake 0.9.6-22.el7_0 RHSA-2014:1912
RHEL 7 rubygem-rdoc 4.0.0-22.el7_0 RHSA-2014:1912
RHEL 7 rubygems +1 2.0.14-22.el7_0 RHSA-2014:1912
RHEL 1 ruby193-ruby +5 1.9.3.484-50.el6 RHSA-2014:1913
RHEL 1 ruby193-rubygem-bigdecimal 1.1.0-50.el6 RHSA-2014:1913
RHEL 1 ruby193-rubygem-io-console 0.3-50.el6 RHSA-2014:1913
RHEL 1 ruby193-rubygem-json 1.5.5-50.el6 RHSA-2014:1913
RHEL 1 ruby193-rubygem-minitest 2.5.1-50.el6 RHSA-2014:1913
RHEL 1 ruby193-rubygem-rake 0.9.2.2-50.el6 RHSA-2014:1913
RHEL 1 ruby193-rubygem-rdoc 3.9.5-50.el6 RHSA-2014:1913
RHEL 1 ruby193-rubygems +1 1.8.23-50.el6 RHSA-2014:1913
RHEL 1 ruby200-ruby +5 2.0.0.353-24.el6 RHSA-2014:1914
RHEL 1 ruby200-rubygem-bigdecimal 1.2.0-24.el6 RHSA-2014:1914
RHEL 1 ruby200-rubygem-io-console 0.4.2-24.el6 RHSA-2014:1914
RHEL 1 ruby200-rubygem-json 1.7.7-24.el6 RHSA-2014:1914
RHEL 1 ruby200-rubygem-minitest 4.3.2-24.el6 RHSA-2014:1914
RHEL 1 ruby200-rubygem-psych 2.0.0-24.el6 RHSA-2014:1914
RHEL 1 ruby200-rubygem-rake 0.9.6-24.el6 RHSA-2014:1914
RHEL 1 ruby200-rubygem-rdoc 4.0.0-24.el6 RHSA-2014:1914
RHEL 1 ruby200-rubygems +1 2.0.14-24.el6 RHSA-2014:1914
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 ruby3.3 +5 3.3.10-23.1.hum1 RHSA-2026:7305
Red Hat Hardened Images 1 ruby3.4 +5 3.4.8-31.1.hum1 RHSA-2026:7307
Red Hat Hardened Images 1 ruby4.0 +5 4.0.0-33.3.hum1 RHSA-2026:8838
ReleasePackageFixed inAdvisory
SLES 12 SP2 ruby2.1 2.1.9-15.1 SUSE-SU-2017:1067-1
SLES 12 SP1 ruby2.1 2.1.9-15.1 SUSE-SU-2017:1067-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP2 ruby2.1 2.1.9-15.1 SUSE-SU-2017:1067-1
SLES for SAP 12 SP1 ruby2.1 2.1.9-15.1 SUSE-SU-2017:1067-1

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 ruby +5 2.0.0.353-22.el7_0 ELSA-2014-1912
Oracle Linux 7 rubygem-bigdecimal 1.2.0-22.el7_0 ELSA-2014-1912
Oracle Linux 7 rubygem-io-console 0.4.2-22.el7_0 ELSA-2014-1912
Oracle Linux 7 rubygem-json 1.7.7-22.el7_0 ELSA-2014-1912
Oracle Linux 7 rubygem-minitest 4.3.2-22.el7_0 ELSA-2014-1912
Oracle Linux 7 rubygem-psych 2.0.0-22.el7_0 ELSA-2014-1912
Oracle Linux 7 rubygem-rake 0.9.6-22.el7_0 ELSA-2014-1912
Oracle Linux 7 rubygem-rdoc 4.0.0-22.el7_0 ELSA-2014-1912
Oracle Linux 7 rubygems +1 2.0.14-22.el7_0 ELSA-2014-1912

Advisories 12

References