{"id":"CVE-2014-4975","aliases":[],"kind":"cve","tier":"cold","status":"published","title":"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…","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.","ai_summary":null,"severity":"medium","cvss":{"score":5,"version":"2.0","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","source":"NVD"},"scores":[{"score":5,"version":"2.0","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","source":"nvd"}],"cwe":["CWE-119"],"remote":true,"remote_unauth":true,"epss":{"score":0.03456,"percentile":0.89349,"date":"2026-12-02"},"kev":{"listed":false,"added":null,"due":null,"ransomware":null},"exploit":{"public":false,"exploitdb_ids":[]},"affected":[],"affected_products":[{"vendor":"n/a","product":"n/a","versions":"","source":"nvd"}],"ai_versions":null,"mitigation":"No fix listed yet: follow the vendor advisory.","technologies":[],"references":[{"url":"http://rhn.redhat.com/errata/RHSA-2014-1912.html","kind":"vendor"},{"url":"http://rhn.redhat.com/errata/RHSA-2014-1913.html","kind":"vendor"},{"url":"http://www.debian.org/security/2015/dsa-3157","kind":"vendor"},{"url":"http://www.ubuntu.com/usn/USN-2397-1","kind":"vendor"},{"url":"https://bugs.ruby-lang.org/issues/10019","kind":"vendor"},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2015:129","kind":"vendor"},{"url":"http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46778","kind":"vendor"},{"url":"http://rhn.redhat.com/errata/RHSA-2014-1914.html","kind":"vendor"},{"url":"http://www.openwall.com/lists/oss-security/2014/07/09/13","kind":"other"},{"url":"http://www.securityfocus.com/bid/68474","kind":"other"},{"url":"http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html","kind":"other"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1118158","kind":"other"},{"url":"http://advisories.mageia.org/MGASA-2014-0472.html","kind":"other"},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/94706","kind":"other"}],"workarounds":null,"vendors":["canonical","debian","redhat","ruby-lang"],"products":["debian_linux","enterprise_linux_desktop","enterprise_linux_hpc_node","enterprise_linux_server","enterprise_linux_workstation","ruby","ubuntu_linux"],"cpes":["cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:*","cpe:2.3:a:ruby-lang:ruby:2.0.0:*:*:*:*:*:*:*","cpe:2.3:a:ruby-lang:ruby:2.0.0:p0:*:*:*:*:*:*","cpe:2.3:a:ruby-lang:ruby:2.0.0:p195:*:*:*:*:*:*","cpe:2.3:a:ruby-lang:ruby:2.0.0:p247:*:*:*:*:*:*","cpe:2.3:a:ruby-lang:ruby:2.0.0:preview1:*:*:*:*:*:*","cpe:2.3:a:ruby-lang:ruby:2.0.0:preview2:*:*:*:*:*:*","cpe:2.3:a:ruby-lang:ruby:2.0.0:rc1:*:*:*:*:*:*","cpe:2.3:a:ruby-lang:ruby:2.0.0:rc2:*:*:*:*:*:*","cpe:2.3:a:ruby-lang:ruby:2.0:*:*:*:*:*:*:*","cpe:2.3:a:ruby-lang:ruby:2.1.1:*:*:*:*:*:*:*","cpe:2.3:a:ruby-lang:ruby:2.1.2:*:*:*:*:*:*:*","cpe:2.3:a:ruby-lang:ruby:2.1:-:*:*:*:*:*:*","cpe:2.3:a:ruby-lang:ruby:2.1:preview1:*:*:*:*:*:*","cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:lts:*:*:*","cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*","cpe:2.3:o:canonical:ubuntu_linux:14.10:*:*:*:*:*:*:*","cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:*","cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*","cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:*","cpe:2.3:o:redhat:enterprise_linux_hpc_node:7.0:*:*:*:*:*:*:*","cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:*","cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:*"],"published_at":"2014-11-15T20:00:00.000Z","modified_at":"2026-06-17T00:10:51.533Z","promoted_at":null,"attribution":[{"source":"CVE Program","text":"CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation.","url":"https://www.cve.org/Legal/TermsOfUse"},{"source":"NVD","text":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","url":"https://nvd.nist.gov/vuln/detail/CVE-2014-4975"}],"links":{"html":"https://flawdb.com/CVE-2014-4975","markdown":"https://flawdb.com/CVE-2014-4975.md","json":"https://flawdb.com/api/v1/entries/CVE-2014-4975"}}