Buffer overflow in Ruby-Lang Ruby
CVE-2014-4975
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v2 metric
CVSS v2 base score 5.0 (Medium). Vector: AV:N/AC:L/Au:N/C:P/I:N/A:N. This CVE predates CVSS v3 and has no v3 score from NVD.
EPSS exploit prediction
EPSS 0.035, 89.2th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Ruby-Lang Ruby — versions 2.0, 2.0.0, 2.1
- Canonical Ubuntu Linux — versions 12.04, 14.04, 14.10
- Debian Linux — versions 7.0, 8.0
- Red Hat Enterprise Linux Desktop — versions 7.0
- Red Hat Enterprise Linux Hpc Node — versions 7.0
- Red Hat Enterprise Linux Server — versions 7.0
- Red Hat Enterprise Linux Workstation — versions 7.0
Weakness classification (CWE)
References
- [oss-security] 20140709 Fwd: [ruby-core:63604] [ruby-trunk - Bug #10019] [Open] segmentation fault/buffer overrun in pack.c (encodes) (mailing-list, Mailing List)
- RHSA-2014:1912 (vendor-advisory, Third Party Advisory)
- www.securityfocus.com/bid/68474 (Third Party Advisory, VDB Entry, vdb-entry)
- www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html (Third Party Advisory)
- RHSA-2014:1913 (vendor-advisory, Third Party Advisory)
- bugzilla.redhat.com/show_bug.cgi (Issue Tracking)
- DSA-3157 (vendor-advisory, Third Party Advisory)
- advisories.mageia.org/MGASA-2014-0472.html (Third Party Advisory)
- USN-2397-1 (vendor-advisory, Third Party Advisory)
- bugs.ruby-lang.org/issues/10019 (Vendor Advisory)