{"id":"CVE-2014-4975","state":"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 format string specifiers, allows context-dependent attackers","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.","publishedAt":"2014-11-15T20:00:00.000Z","updatedAt":"2024-08-06T11:34:36.647Z","severity":null,"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["http://www.openwall.com/lists/oss-security/2014/07/09/13","http://rhn.redhat.com/errata/RHSA-2014-1912.html","http://www.securityfocus.com/bid/68474","http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html","http://rhn.redhat.com/errata/RHSA-2014-1913.html","https://bugzilla.redhat.com/show_bug.cgi?id=1118158","http://www.debian.org/security/2015/dsa-3157","http://advisories.mageia.org/MGASA-2014-0472.html","http://www.ubuntu.com/usn/USN-2397-1","https://bugs.ruby-lang.org/issues/10019","http://www.mandriva.com/security/advisories?name=MDVSA-2015:129","http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46778","http://rhn.redhat.com/errata/RHSA-2014-1914.html","https://exchange.xforce.ibmcloud.com/vulnerabilities/94706"],"weaknesses":[],"ingestedAt":"2026-10-29T19:41:22.389Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2014/4xxx/CVE-2014-4975.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2014-4975","state":"PUBLISHED","datePublished":"2014-11-15T20:00:00.000Z","dateUpdated":"2024-08-06T11:34:36.647Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2014-07-15T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"http://www.openwall.com/lists/oss-security/2014/07/09/13","name":"[oss-security] 20140709 Fwd: [ruby-core:63604] [ruby-trunk - Bug #10019] [Open]  segmentation fault/buffer overrun in pack.c (encodes)","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://rhn.redhat.com/errata/RHSA-2014-1912.html","name":"RHSA-2014:1912","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://www.securityfocus.com/bid/68474","name":"68474","tags":["vdb-entry","x_refsource_BID"]},{"url":"http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html","tags":["x_refsource_CONFIRM"]},{"url":"http://rhn.redhat.com/errata/RHSA-2014-1913.html","name":"RHSA-2014:1913","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1118158","tags":["x_refsource_CONFIRM"]},{"url":"http://www.debian.org/security/2015/dsa-3157","name":"DSA-3157","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"http://advisories.mageia.org/MGASA-2014-0472.html","tags":["x_refsource_CONFIRM"]},{"url":"http://www.ubuntu.com/usn/USN-2397-1","name":"USN-2397-1","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"https://bugs.ruby-lang.org/issues/10019","tags":["x_refsource_CONFIRM"]},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2015:129","name":"MDVSA-2015:129","tags":["vendor-advisory","x_refsource_MANDRIVA"]},{"url":"http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46778","tags":["x_refsource_CONFIRM"]},{"url":"http://rhn.redhat.com/errata/RHSA-2014-1914.html","name":"RHSA-2014:1914","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/94706","name":"ruby-cve20144975-bo(94706)","tags":["vdb-entry","x_refsource_XF"]}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"mitre","dateUpdated":"2017-08-28T12:57:01.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca"},"datePublic":"2014-07-09T00:00:00.000Z","x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2014-4975","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"[oss-security] 20140709 Fwd: [ruby-core:63604] [ruby-trunk - Bug #10019] [Open]  segmentation fault/buffer overrun in pack.c (encodes)","refsource":"MLIST","url":"http://www.openwall.com/lists/oss-security/2014/07/09/13"},{"name":"RHSA-2014:1912","refsource":"REDHAT","url":"http://rhn.redhat.com/errata/RHSA-2014-1912.html"},{"name":"68474","refsource":"BID","url":"http://www.securityfocus.com/bid/68474"},{"name":"http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html","refsource":"CONFIRM","url":"http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html"},{"name":"RHSA-2014:1913","refsource":"REDHAT","url":"http://rhn.redhat.com/errata/RHSA-2014-1913.html"},{"name":"https://bugzilla.redhat.com/show_bug.cgi?id=1118158","refsource":"CONFIRM","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1118158"},{"name":"DSA-3157","refsource":"DEBIAN","url":"http://www.debian.org/security/2015/dsa-3157"},{"name":"http://advisories.mageia.org/MGASA-2014-0472.html","refsource":"CONFIRM","url":"http://advisories.mageia.org/MGASA-2014-0472.html"},{"name":"USN-2397-1","refsource":"UBUNTU","url":"http://www.ubuntu.com/usn/USN-2397-1"},{"name":"https://bugs.ruby-lang.org/issues/10019","refsource":"CONFIRM","url":"https://bugs.ruby-lang.org/issues/10019"},{"name":"MDVSA-2015:129","refsource":"MANDRIVA","url":"http://www.mandriva.com/security/advisories?name=MDVSA-2015:129"},{"name":"http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46778","refsource":"CONFIRM","url":"http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46778"},{"name":"RHSA-2014:1914","refsource":"REDHAT","url":"http://rhn.redhat.com/errata/RHSA-2014-1914.html"},{"name":"ruby-cve20144975-bo(94706)","refsource":"XF","url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/94706"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"http://www.openwall.com/lists/oss-security/2014/07/09/13","name":"[oss-security] 20140709 Fwd: [ruby-core:63604] [ruby-trunk - Bug #10019] [Open]  segmentation fault/buffer overrun in pack.c (encodes)","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"http://rhn.redhat.com/errata/RHSA-2014-1912.html","name":"RHSA-2014:1912","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"]},{"url":"http://www.securityfocus.com/bid/68474","name":"68474","tags":["vdb-entry","x_refsource_BID","x_transferred"]},{"url":"http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://rhn.redhat.com/errata/RHSA-2014-1913.html","name":"RHSA-2014:1913","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1118158","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://www.debian.org/security/2015/dsa-3157","name":"DSA-3157","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"]},{"url":"http://advisories.mageia.org/MGASA-2014-0472.html","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://www.ubuntu.com/usn/USN-2397-1","name":"USN-2397-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred"]},{"url":"https://bugs.ruby-lang.org/issues/10019","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2015:129","name":"MDVSA-2015:129","tags":["vendor-advisory","x_refsource_MANDRIVA","x_transferred"]},{"url":"http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46778","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://rhn.redhat.com/errata/RHSA-2014-1914.html","name":"RHSA-2014:1914","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/94706","name":"ruby-cve20144975-bo(94706)","tags":["vdb-entry","x_refsource_XF","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-06T11:34:36.647Z"}}]}}}