{"id":"UBUNTU-CVE-2014-4975","details":"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.","modified":"2026-04-22T09:46:15.486080Z","published":"2014-07-17T00:00:00Z","related":["USN-2397-1"],"upstream":["CVE-2014-4975"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2014-4975"},{"type":"REPORT","url":"http://www.openwall.com/lists/oss-security/2014/07/17"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-2397-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2014-4975"}],"affected":[{"package":{"name":"ruby1.9.1","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/ruby1.9.1@1.9.3.484-2ubuntu1.1?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.3.484-2ubuntu1.1"}]}],"versions":["1.9.3.194-8.1ubuntu2","1.9.3.448-1ubuntu1","1.9.3.448-1ubuntu2","1.9.3.484-1ubuntu1","1.9.3.484-1ubuntu2","1.9.3.484-2ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"libruby1.9.1","binary_version":"1.9.3.484-2ubuntu1.1"},{"binary_name":"libtcltk-ruby1.9.1","binary_version":"1.9.3.484-2ubuntu1.1"},{"binary_name":"ri1.9.1","binary_version":"1.9.3.484-2ubuntu1.1"},{"binary_name":"ruby1.9.1","binary_version":"1.9.3.484-2ubuntu1.1"},{"binary_name":"ruby1.9.1-examples","binary_version":"1.9.3.484-2ubuntu1.1"},{"binary_name":"ruby1.9.1-full","binary_version":"1.9.3.484-2ubuntu1.1"},{"binary_name":"ruby1.9.3","binary_version":"1.9.3.484-2ubuntu1.1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2014/UBUNTU-CVE-2014-4975.json"}},{"package":{"name":"ruby2.0","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/ruby2.0@2.0.0.484-1ubuntu2.1?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.0.484-1ubuntu2.1"}]}],"versions":["2.0.0.299-2","2.0.0.343-1","2.0.0.343-1ubuntu1","2.0.0.353-1","2.0.0.353-1ubuntu1","2.0.0.484-1ubuntu1","2.0.0.484-1ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_name":"libruby2.0","binary_version":"2.0.0.484-1ubuntu2.1"},{"binary_name":"ruby2.0","binary_version":"2.0.0.484-1ubuntu2.1"},{"binary_name":"ruby2.0-tcltk","binary_version":"2.0.0.484-1ubuntu2.1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2014/UBUNTU-CVE-2014-4975.json"}}],"schema_version":"1.7.5","severity":[{"type":"Ubuntu","score":"low"}]}