CVE-2014-4975
Summary
| CVE | CVE-2014-4975 |
|---|---|
| State | PUBLISHED |
| Assigner | mitre |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2014-11-15 20:59:01 UTC |
| Updated | 2026-05-06 22:30:45 UTC |
| 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. |
Risk And Classification
CVSS v2.0 Breakdown
Access Vector
NetworkAccess Complexity
LowAuthentication
NoneConfidentiality
PartialIntegrity
NoneAvailability
NoneAV:N/AC:L/Au:N/C:P/I:N/A:N
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Operating System | Canonical | Ubuntu Linux | 12.04 | All | All | All |
| Operating System | Canonical | Ubuntu Linux | 14.04 | All | All | All |
| Operating System | Canonical | Ubuntu Linux | 14.10 | All | All | All |
| Operating System | Debian | Debian Linux | 7.0 | All | All | All |
| Operating System | Debian | Debian Linux | 8.0 | All | All | All |
| Operating System | Redhat | Enterprise Linux Desktop | 7.0 | All | All | All |
| Operating System | Redhat | Enterprise Linux Hpc Node | 7.0 | All | All | All |
| Operating System | Redhat | Enterprise Linux Server | 7.0 | All | All | All |
| Operating System | Redhat | Enterprise Linux Workstation | 7.0 | All | All | All |
| Application | Ruby-lang | Ruby | 2.0 | All | All | All |
| Application | Ruby-lang | Ruby | 2.0.0 | All | All | All |
| Application | Ruby-lang | Ruby | 2.0.0 | p0 | All | All |
| Application | Ruby-lang | Ruby | 2.0.0 | p195 | All | All |
| Application | Ruby-lang | Ruby | 2.0.0 | p247 | All | All |
| Application | Ruby-lang | Ruby | 2.0.0 | preview1 | All | All |
| Application | Ruby-lang | Ruby | 2.0.0 | preview2 | All | All |
| Application | Ruby-lang | Ruby | 2.0.0 | rc1 | All | All |
| Application | Ruby-lang | Ruby | 2.0.0 | rc2 | All | All |
| Application | Ruby-lang | Ruby | 2.1 | - | All | All |
| Application | Ruby-lang | Ruby | 2.1 | preview1 | All | All |
| Application | Ruby-lang | Ruby | 2.1.1 | All | All | All |
| Application | Ruby-lang | Ruby | 2.1.2 | All | All | All |
| Application | Ruby-lang | Ruby | All | All | All | All |
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| Red Hat Customer Portal | af854a3a-2127-422b-91ae-364da2661108 | rhn.redhat.com | Third Party Advisory |
| Bug 1118158 – CVE-2014-4975 ruby: off-by-one stack-based buffer overflow in the encodes() function | af854a3a-2127-422b-91ae-364da2661108 | bugzilla.redhat.com | Issue Tracking |
| IBM X-Force Exchange | af854a3a-2127-422b-91ae-364da2661108 | exchange.xforce.ibmcloud.com | |
| Red Hat Customer Portal | af854a3a-2127-422b-91ae-364da2661108 | rhn.redhat.com | Third Party Advisory |
| USN-2397-1: Ruby vulnerabilities | Ubuntu | af854a3a-2127-422b-91ae-364da2661108 | www.ubuntu.com | Third Party Advisory |
| Mageia Advisory: MGASA-2014-0472 - Updated ruby packages fix security vulnerabilities | af854a3a-2127-422b-91ae-364da2661108 | advisories.mageia.org | Third Party Advisory |
| Bug #10019: segmentation fault/buffer overrun in pack.c (encodes) - ruby-trunk - Ruby Issue Tracking System | af854a3a-2127-422b-91ae-364da2661108 | bugs.ruby-lang.org | Vendor Advisory |
| Ruby 'pack.c' Buffer Overflow Vulnerability | af854a3a-2127-422b-91ae-364da2661108 | www.securityfocus.com | Third Party Advisory, VDB Entry |
| Oracle Linux Bulletin - January 2016 | af854a3a-2127-422b-91ae-364da2661108 | www.oracle.com | Third Party Advisory |
| oss-security - Fwd: [ruby-core:63604] [ruby-trunk - Bug #10019] [Open] segmentation fault/buffer overrun in pack.c (encodes) | af854a3a-2127-422b-91ae-364da2661108 | www.openwall.com | Mailing List |
| Red Hat Customer Portal | af854a3a-2127-422b-91ae-364da2661108 | rhn.redhat.com | Third Party Advisory |
| Support / Security / Advisories / / MDVSA-2015:129 | Mandriva | af854a3a-2127-422b-91ae-364da2661108 | www.mandriva.com | Broken Link |
| [ruby] Revision 46778 | af854a3a-2127-422b-91ae-364da2661108 | svn.ruby-lang.org | Vendor Advisory |
| Debian -- Security Information -- DSA-3157-1 ruby1.9.1 | af854a3a-2127-422b-91ae-364da2661108 | www.debian.org | Third Party Advisory |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.