CVE-2014-4975
ruby: off-by-one stack-based buffer overflow in the encodes() function
Overview
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.
Source: OX vulnerability database
Severity
5 · MEDIUM
CVSS 2.0 base score, scored by NVD.
- Access vector
- Network
- Access complexity
- Low
- Authentication
- None
- Confidentiality
- Partial
- Integrity
- None
- Availability
- None
AV:N/AC:L/Au:N/C:P/I:N/A:N
Weakness: CWE-119
Affected packages · 0
No registry package. This ID affects operating system packages only.
Operating systems · 35 fixes
Oracle Linux 1 release · 9 packages
| Release | Package | Fixed in |
|---|---|---|
| 7 | rubygem-io-console | 0.4.2-22.el7_0 |
| 7 | rubygem-rake | 0.9.6-22.el7_0 |
| 7 | rubygem-bigdecimal | 1.2.0-22.el7_0 |
| 7 | rubygem-json | 1.7.7-22.el7_0 |
| 7 | rubygem-psych | 2.0.0-22.el7_0 |
| 7 | ruby +5 | 2.0.0.353-22.el7_0 |
3 more rows
Red Hat 1 release · 26 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | ruby193-rubygem-io-console | 0:0.3-50.el7 | RHSA-2014:1913 |
| 7 | rubygem-io-console | 0:0.4.2-22.el7_0 | RHSA-2014:1912 |
| 7 | ruby200-rubygem-io-console | 0:0.4.2-24.el7 | RHSA-2014:1914 |
| 7 | ruby193-rubygem-rake | 0:0.9.2.2-50.el7 | RHSA-2014:1913 |
| 7 | rubygem-rake | 0:0.9.6-22.el7_0 | RHSA-2014:1912 |
| 7 | ruby200-rubygem-rake | 0:0.9.6-24.el7 | RHSA-2014:1914 |
20 more rows
References
- advisories.mageia.org http://advisories.mageia.org/MGASA-2014-0472.html
- rhn.redhat.com http://rhn.redhat.com/errata/RHSA-2014-1912.html
- rhn.redhat.com http://rhn.redhat.com/errata/RHSA-2014-1913.html
- rhn.redhat.com http://rhn.redhat.com/errata/RHSA-2014-1914.html
- svn.ruby-lang.org http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46778
- www.debian.org http://www.debian.org/security/2015/dsa-3157
- www.mandriva.com http://www.mandriva.com/security/advisories?name=MDVSA-2015:129
- www.openwall.com http://www.openwall.com/lists/oss-security/2014/07/09/13
- www.openwall.com http://www.openwall.com/lists/oss-security/2014/07/17
- www.oracle.com http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html
Show all 21 references
- www.securityfocus.com http://www.securityfocus.com/bid/68474
- www.ubuntu.com http://www.ubuntu.com/usn/USN-2397-1
- access.redhat.com https://access.redhat.com/security/cve/CVE-2014-4975
- bugs.ruby-lang.org https://bugs.ruby-lang.org/issues/10019
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1118158
- exchange.xforce.ibmcloud.com https://exchange.xforce.ibmcloud.com/vulnerabilities/94706
- linux.oracle.com https://linux.oracle.com/cve/CVE-2014-4975.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2014-1913.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2014-4975
- ubuntu.com https://ubuntu.com/security/notices/USN-2397-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2014-4975
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.