CVE-2014-4975
publishedruby: off-by-one stack-based buffer overflow in the encodes() function
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Debian | squeeze | ruby1.9.1 | Advisory build | 1.9.2.0-2+deb6u3 | DLA-200-1 |
| Oracle Linux | 6 | ruby193-rubyx86_64 | Advisory build | 0:1.9.3.484-50.0.1.el6 | ELSA-2014-1913 |
| Red Hat Enterprise Linux | RHEL-6 | ruby193-rubysrc | Advisory build | 1.9.3.484-50.el6 | RHSA-2014:1913 |
| Debian | wheezy | ruby1.9.1 | Advisory build | 1.9.3.194-8.1+deb7u3 | DSA-3157-1 |
| Oracle Linux | 6 | ruby193-ruby-develx86_64 | Advisory build | 0:1.9.3.484-50.0.1.el6 | ELSA-2014-1913 |
| Oracle Linux | 6 | ruby193-ruby-docx86_64 | Advisory build | 0:1.9.3.484-50.0.1.el6 | ELSA-2014-1913 |
| Oracle Linux | 6 | ruby193-ruby-irbx86_64 | Advisory build | 0:1.9.3.484-50.0.1.el6 | ELSA-2014-1913 |
Show 93 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Oracle Linux | 6 | ruby193-ruby-libsx86_64 | Advisory build | 0:1.9.3.484-50.0.1.el6 | ELSA-2014-1913 |
| Oracle Linux | 6 | ruby193-ruby-tcltkx86_64 | Advisory build | 0:1.9.3.484-50.0.1.el6 | ELSA-2014-1913 |
| Oracle Linux | 6 | ruby193-rubygem-bigdecimalx86_64 | Advisory build | 0:1.1.0-50.0.1.el6 | ELSA-2014-1913 |
| Oracle Linux | 6 | ruby193-rubygem-io-consolex86_64 | Advisory build | 0:0.3-50.0.1.el6 | ELSA-2014-1913 |
| Oracle Linux | 6 | ruby193-rubygem-jsonx86_64 | Advisory build | 0:1.5.5-50.0.1.el6 | ELSA-2014-1913 |
| Oracle Linux | 6 | ruby193-rubygem-minitestx86_64 | Advisory build | 0:2.5.1-50.0.1.el6 | ELSA-2014-1913 |
| Oracle Linux | 6 | ruby193-rubygem-rakex86_64 | Advisory build | 0:0.9.2.2-50.0.1.el6 | ELSA-2014-1913 |
| Oracle Linux | 6 | ruby193-rubygem-rdocx86_64 | Advisory build | 0:3.9.5-50.0.1.el6 | ELSA-2014-1913 |
| Oracle Linux | 6 | ruby193-rubygemsx86_64 | Advisory build | 0:1.8.23-50.0.1.el6 | ELSA-2014-1913 |
| Oracle Linux | 6 | ruby193-rubygems-develx86_64 | Advisory build | 0:1.8.23-50.0.1.el6 | ELSA-2014-1913 |
| Oracle Linux | 7 | rubyx86_64 | Advisory build | 0:2.0.0.353-22.el7_0 | ELSA-2014-1912 |
| Oracle Linux | 7 | ruby-develx86_64 | Advisory build | 0:2.0.0.353-22.el7_0 | ELSA-2014-1912 |
| Oracle Linux | 7 | ruby-docx86_64 | Advisory build | 0:2.0.0.353-22.el7_0 | ELSA-2014-1912 |
| Oracle Linux | 7 | ruby-irbx86_64 | Advisory build | 0:2.0.0.353-22.el7_0 | ELSA-2014-1912 |
| Oracle Linux | 7 | ruby-libsx86_64 | Advisory build | 0:2.0.0.353-22.el7_0 | ELSA-2014-1912 |
| Oracle Linux | 7 | ruby-tcltkx86_64 | Advisory build | 0:2.0.0.353-22.el7_0 | ELSA-2014-1912 |
| Oracle Linux | 7 | rubygem-bigdecimalx86_64 | Advisory build | 0:1.2.0-22.el7_0 | ELSA-2014-1912 |
| Oracle Linux | 7 | rubygem-io-consolex86_64 | Advisory build | 0:0.4.2-22.el7_0 | ELSA-2014-1912 |
| Oracle Linux | 7 | rubygem-jsonx86_64 | Advisory build | 0:1.7.7-22.el7_0 | ELSA-2014-1912 |
| Oracle Linux | 7 | rubygem-minitestx86_64 | Advisory build | 0:4.3.2-22.el7_0 | ELSA-2014-1912 |
| Oracle Linux | 7 | rubygem-psychx86_64 | Advisory build | 0:2.0.0-22.el7_0 | ELSA-2014-1912 |
| Oracle Linux | 7 | rubygem-rakex86_64 | Advisory build | 0:0.9.6-22.el7_0 | ELSA-2014-1912 |
| Oracle Linux | 7 | rubygem-rdocx86_64 | Advisory build | 0:4.0.0-22.el7_0 | ELSA-2014-1912 |
| Oracle Linux | 7 | rubygemsx86_64 | Advisory build | 0:2.0.14-22.el7_0 | ELSA-2014-1912 |
| Oracle Linux | 7 | rubygems-develx86_64 | Advisory build | 0:2.0.14-22.el7_0 | ELSA-2014-1912 |
| Red Hat Enterprise Linux | RHEL-6 | ruby193-rubyx86_64 | Advisory build | 1.9.3.484-50.el6 | RHSA-2014:1913 |
| Red Hat Enterprise Linux | RHEL-6 | ruby193-ruby-debuginfox86_64 | Advisory build | 1.9.3.484-50.el6 | RHSA-2014:1913 |
| Red Hat Enterprise Linux | RHEL-6 | ruby193-ruby-develx86_64 | Advisory build | 1.9.3.484-50.el6 | RHSA-2014:1913 |
| Red Hat Enterprise Linux | RHEL-6 | ruby193-ruby-docx86_64 | Advisory build | 1.9.3.484-50.el6 | RHSA-2014:1913 |
| Red Hat Enterprise Linux | RHEL-6 | ruby193-ruby-irbnoarch | Advisory build | 1.9.3.484-50.el6 | RHSA-2014:1913 |
| Red Hat Enterprise Linux | RHEL-6 | ruby193-ruby-libsx86_64 | Advisory build | 1.9.3.484-50.el6 | RHSA-2014:1913 |
| Red Hat Enterprise Linux | RHEL-6 | ruby193-ruby-tcltkx86_64 | Advisory build | 1.9.3.484-50.el6 | RHSA-2014:1913 |
| Red Hat Enterprise Linux | RHEL-6 | ruby193-rubygem-bigdecimalx86_64 | Advisory build | 1.1.0-50.el6 | RHSA-2014:1913 |
| Red Hat Enterprise Linux | RHEL-6 | ruby193-rubygem-io-consolex86_64 | Advisory build | 0.3-50.el6 | RHSA-2014:1913 |
| Red Hat Enterprise Linux | RHEL-6 | ruby193-rubygem-jsonx86_64 | Advisory build | 1.5.5-50.el6 | RHSA-2014:1913 |
| Red Hat Enterprise Linux | RHEL-6 | ruby193-rubygem-minitestnoarch | Advisory build | 2.5.1-50.el6 | RHSA-2014:1913 |
| Red Hat Enterprise Linux | RHEL-6 | ruby193-rubygem-rakenoarch | Advisory build | 0.9.2.2-50.el6 | RHSA-2014:1913 |
| Red Hat Enterprise Linux | RHEL-6 | ruby193-rubygem-rdocx86_64 | Advisory build | 3.9.5-50.el6 | RHSA-2014:1913 |
| Red Hat Enterprise Linux | RHEL-6 | ruby193-rubygemsnoarch | Advisory build | 1.8.23-50.el6 | RHSA-2014:1913 |
| Red Hat Enterprise Linux | RHEL-6 | ruby193-rubygems-develnoarch | Advisory build | 1.8.23-50.el6 | RHSA-2014:1913 |
| Red Hat Enterprise Linux | RHEL-6 | ruby200-rubysrc | Advisory build | 2.0.0.353-24.el6 | RHSA-2014:1914 |
| Red Hat Enterprise Linux | RHEL-6 | ruby200-rubyx86_64 | Advisory build | 2.0.0.353-24.el6 | RHSA-2014:1914 |
| Red Hat Enterprise Linux | RHEL-6 | ruby200-ruby-debuginfox86_64 | Advisory build | 2.0.0.353-24.el6 | RHSA-2014:1914 |
| Red Hat Enterprise Linux | RHEL-6 | ruby200-ruby-develx86_64 | Advisory build | 2.0.0.353-24.el6 | RHSA-2014:1914 |
| Red Hat Enterprise Linux | RHEL-6 | ruby200-ruby-docnoarch | Advisory build | 2.0.0.353-24.el6 | RHSA-2014:1914 |
| Red Hat Enterprise Linux | RHEL-6 | ruby200-ruby-irbnoarch | Advisory build | 2.0.0.353-24.el6 | RHSA-2014:1914 |
| Red Hat Enterprise Linux | RHEL-6 | ruby200-ruby-libsx86_64 | Advisory build | 2.0.0.353-24.el6 | RHSA-2014:1914 |
| Red Hat Enterprise Linux | RHEL-6 | ruby200-ruby-tcltkx86_64 | Advisory build | 2.0.0.353-24.el6 | RHSA-2014:1914 |
| Red Hat Enterprise Linux | RHEL-6 | ruby200-rubygem-bigdecimalx86_64 | Advisory build | 1.2.0-24.el6 | RHSA-2014:1914 |
| Red Hat Enterprise Linux | RHEL-6 | ruby200-rubygem-io-consolex86_64 | Advisory build | 0.4.2-24.el6 | RHSA-2014:1914 |
| Red Hat Enterprise Linux | RHEL-6 | ruby200-rubygem-jsonx86_64 | Advisory build | 1.7.7-24.el6 | RHSA-2014:1914 |
| Red Hat Enterprise Linux | RHEL-6 | ruby200-rubygem-minitestnoarch | Advisory build | 4.3.2-24.el6 | RHSA-2014:1914 |
| Red Hat Enterprise Linux | RHEL-6 | ruby200-rubygem-psychx86_64 | Advisory build | 2.0.0-24.el6 | RHSA-2014:1914 |
| Red Hat Enterprise Linux | RHEL-6 | ruby200-rubygem-rakenoarch | Advisory build | 0.9.6-24.el6 | RHSA-2014:1914 |
| Red Hat Enterprise Linux | RHEL-6 | ruby200-rubygem-rdocnoarch | Advisory build | 4.0.0-24.el6 | RHSA-2014:1914 |
| Red Hat Enterprise Linux | RHEL-6 | ruby200-rubygemsx86_64 | Advisory build | 2.0.14-24.el6 | RHSA-2014:1914 |
| Red Hat Enterprise Linux | RHEL-6 | ruby200-rubygems-develnoarch | Advisory build | 2.0.14-24.el6 | RHSA-2014:1914 |
| Red Hat Enterprise Linux | RHEL-7 | rubyppc64 | Advisory build | 2.0.0.353-22.el7_0 | RHSA-2014:1912 |
| Red Hat Enterprise Linux | RHEL-7 | rubys390x | Advisory build | 2.0.0.353-22.el7_0 | RHSA-2014:1912 |
| Red Hat Enterprise Linux | RHEL-7 | rubysrc | Advisory build | 2.0.0.353-22.el7_0 | RHSA-2014:1912 |
| Red Hat Enterprise Linux | RHEL-7 | rubyx86_64 | Advisory build | 2.0.0.353-22.el7_0 | RHSA-2014:1912 |
| Red Hat Enterprise Linux | RHEL-7 | ruby-debuginfoi686 | Advisory build | 2.0.0.353-22.el7_0 | RHSA-2014:1912 |
| Red Hat Enterprise Linux | RHEL-7 | ruby-debuginfoppc | Advisory build | 2.0.0.353-22.el7_0 | RHSA-2014:1912 |
| Red Hat Enterprise Linux | RHEL-7 | ruby-debuginfoppc64 | Advisory build | 2.0.0.353-22.el7_0 | RHSA-2014:1912 |
| Red Hat Enterprise Linux | RHEL-7 | ruby-debuginfos390 | Advisory build | 2.0.0.353-22.el7_0 | RHSA-2014:1912 |
| Red Hat Enterprise Linux | RHEL-7 | ruby-debuginfos390x | Advisory build | 2.0.0.353-22.el7_0 | RHSA-2014:1912 |
| Red Hat Enterprise Linux | RHEL-7 | ruby-debuginfox86_64 | Advisory build | 2.0.0.353-22.el7_0 | RHSA-2014:1912 |
| Red Hat Enterprise Linux | RHEL-7 | ruby-develppc64 | Advisory build | 2.0.0.353-22.el7_0 | RHSA-2014:1912 |
| Red Hat Enterprise Linux | RHEL-7 | ruby-devels390x | Advisory build | 2.0.0.353-22.el7_0 | RHSA-2014:1912 |
| Red Hat Enterprise Linux | RHEL-7 | ruby-develx86_64 | Advisory build | 2.0.0.353-22.el7_0 | RHSA-2014:1912 |
| Red Hat Enterprise Linux | RHEL-7 | ruby-docnoarch | Advisory build | 2.0.0.353-22.el7_0 | RHSA-2014:1912 |
| Red Hat Enterprise Linux | RHEL-7 | ruby-irbnoarch | Advisory build | 2.0.0.353-22.el7_0 | RHSA-2014:1912 |
| Red Hat Enterprise Linux | RHEL-7 | ruby-libsi686 | Advisory build | 2.0.0.353-22.el7_0 | RHSA-2014:1912 |
| Red Hat Enterprise Linux | RHEL-7 | ruby-libsppc | Advisory build | 2.0.0.353-22.el7_0 | RHSA-2014:1912 |
| Red Hat Enterprise Linux | RHEL-7 | ruby-libsppc64 | Advisory build | 2.0.0.353-22.el7_0 | RHSA-2014:1912 |
| Red Hat Enterprise Linux | RHEL-7 | ruby-libss390 | Advisory build | 2.0.0.353-22.el7_0 | RHSA-2014:1912 |
| Red Hat Enterprise Linux | RHEL-7 | ruby-libss390x | Advisory build | 2.0.0.353-22.el7_0 | RHSA-2014:1912 |
| Red Hat Enterprise Linux | RHEL-7 | ruby-libsx86_64 | Advisory build | 2.0.0.353-22.el7_0 | RHSA-2014:1912 |
| Red Hat Enterprise Linux | RHEL-7 | ruby-tcltkppc64 | Advisory build | 2.0.0.353-22.el7_0 | RHSA-2014:1912 |
| Red Hat Enterprise Linux | RHEL-7 | ruby-tcltks390x | Advisory build | 2.0.0.353-22.el7_0 | RHSA-2014:1912 |
| Red Hat Enterprise Linux | RHEL-7 | ruby-tcltkx86_64 | Advisory build | 2.0.0.353-22.el7_0 | RHSA-2014:1912 |
| Red Hat Enterprise Linux | RHEL-7 | ruby193-rubysrc | Advisory build | 1.9.3.484-50.el7 | RHSA-2014:1913 |
| Red Hat Enterprise Linux | RHEL-7 | ruby193-rubyx86_64 | Advisory build | 1.9.3.484-50.el7 | RHSA-2014:1913 |
| Red Hat Enterprise Linux | RHEL-7 | ruby193-ruby-debuginfox86_64 | Advisory build | 1.9.3.484-50.el7 | RHSA-2014:1913 |
| Red Hat Enterprise Linux | RHEL-7 | ruby193-ruby-develx86_64 | Advisory build | 1.9.3.484-50.el7 | RHSA-2014:1913 |
| Red Hat Enterprise Linux | RHEL-7 | ruby193-ruby-docx86_64 | Advisory build | 1.9.3.484-50.el7 | RHSA-2014:1913 |
| Red Hat Enterprise Linux | RHEL-7 | ruby193-ruby-irbnoarch | Advisory build | 1.9.3.484-50.el7 | RHSA-2014:1913 |
| Red Hat Enterprise Linux | RHEL-7 | ruby193-ruby-libsx86_64 | Advisory build | 1.9.3.484-50.el7 | RHSA-2014:1913 |
| Red Hat Enterprise Linux | RHEL-7 | ruby193-ruby-tcltkx86_64 | Advisory build | 1.9.3.484-50.el7 | RHSA-2014:1913 |
| Red Hat Enterprise Linux | RHEL-7 | ruby193-rubygem-bigdecimalx86_64 | Advisory build | 1.1.0-50.el7 | RHSA-2014:1913 |
| Red Hat Enterprise Linux | RHEL-7 | ruby193-rubygem-io-consolex86_64 | Advisory build | 0.3-50.el7 | RHSA-2014:1913 |
| Red Hat Enterprise Linux | RHEL-7 | ruby193-rubygem-jsonx86_64 | Advisory build | 1.5.5-50.el7 | RHSA-2014:1913 |
| Red Hat Enterprise Linux | RHEL-7 | ruby193-rubygem-minitestnoarch | Advisory build | 2.5.1-50.el7 | RHSA-2014:1913 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
14- http://advisories.mageia.org/MGASA-2014-0472.html
- RHSA-2014:1912 http://rhn.redhat.com/errata/RHSA-2014-1912.html
- RHSA-2014:1913 http://rhn.redhat.com/errata/RHSA-2014-1913.html
- RHSA-2014:1914 http://rhn.redhat.com/errata/RHSA-2014-1914.html
- http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46778
- DSA-3157 http://www.debian.org/security/2015/dsa-3157
- MDVSA-2015:129 http://www.mandriva.com/security/advisories?name=MDVSA-2015:129
- [oss-security] 20140709 Fwd: [ruby-core:63604] [ruby-trunk - Bug #10019] [Open] segmentation fault/buffer overrun in pack.c (encodes) http://www.openwall.com/lists/oss-security/2014/07/09/13
- http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html
- 68474 http://www.securityfocus.com/bid/68474
- USN-2397-1 http://www.ubuntu.com/usn/USN-2397-1
- https://bugs.ruby-lang.org/issues/10019
- https://bugzilla.redhat.com/show_bug.cgi?id=1118158
- ruby-cve20144975-bo(94706) https://exchange.xforce.ibmcloud.com/vulnerabilities/94706
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- c255fe2b6779af4319ea24417ca4abd79a962318933dafb9231fbd8be1e374e3
- Ingested
- 23 Sep 2026, 07:40:07 UTC
- Source record
- Official CVE record