{"id":"GHSA-9j7m-rjqx-48vh","summary":"RubyGems Regular Expression Denial of Service vulnerability","details":"Algorithmic complexity vulnerability in Gem::Version::VERSION_PATTERN in `lib/rubygems/version.rb` in RubyGems before 1.8.23.1, 1.8.24 through 1.8.25, 2.0.x before 2.0.8, and 2.1.x before 2.1.0, as used in Ruby 1.9.0 through 2.0.0p247, allows remote attackers to cause a denial of service (CPU consumption) via a crafted gem version that triggers a large amount of backtracking in a regular expression.","aliases":["CVE-2013-4287"],"modified":"2024-11-29T05:42:20.333898Z","published":"2022-05-14T01:08:27Z","database_specific":{"nvd_published_at":"2013-10-17T23:55:00Z","cwe_ids":["CWE-400"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2023-03-08T19:16:03Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2013-4287"},{"type":"WEB","url":"https://github.com/rubygems/rubygems/commit/938a7e31ac73655845ab9045629ff3f580a125da"},{"type":"WEB","url":"https://github.com/rubygems/rubygems/commit/b697536f2455e8c8853cf5cf8a1017a36031ed67"},{"type":"WEB","url":"https://github.com/rubygems/rubygems/commit/b9baec03145aed684d1cd3c87dcac3cc06becd9b"},{"type":"WEB","url":"https://github.com/rubygems/rubygems/commit/ed733bc379d75620f5be4213f89d1d7b38be3191"},{"type":"WEB","url":"https://github.com/rubygems/rubygems/blob/03a074e8838683f45611b119fd8f363aa44fe2fd/CHANGELOG.md"},{"type":"WEB","url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rubygems-update/CVE-2013-4287.yml"},{"type":"WEB","url":"https://web.archive.org/web/20160806152839/https://puppet.com/security/cve/cve-2013-4287"},{"type":"WEB","url":"http://blog.rubygems.org/2013/09/09/CVE-2013-4287.html"},{"type":"WEB","url":"http://rhn.redhat.com/errata/RHSA-2013-1427.html"},{"type":"WEB","url":"http://rhn.redhat.com/errata/RHSA-2013-1441.html"},{"type":"WEB","url":"http://rhn.redhat.com/errata/RHSA-2013-1523.html"},{"type":"WEB","url":"http://rhn.redhat.com/errata/RHSA-2013-1852.html"},{"type":"WEB","url":"http://rhn.redhat.com/errata/RHSA-2014-0207.html"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2013/09/10/1"}],"affected":[{"package":{"name":"rubygems-update","ecosystem":"RubyGems","purl":"pkg:gem/rubygems-update"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.23.1"}]}],"versions":["0.8.10","0.8.11","0.8.3","0.8.4","0.8.5","0.8.6","0.8.8","0.9.0","0.9.1","0.9.2","0.9.3","0.9.4","0.9.5","1.0.0","1.0.1","1.1.0","1.1.1","1.2.0","1.3.0","1.3.1","1.3.2","1.3.3","1.3.4","1.3.5","1.3.6","1.3.7","1.4.0","1.4.1","1.4.2","1.5.0","1.5.2","1.5.3","1.6.0","1.6.1","1.6.2","1.7.0","1.7.1","1.7.2","1.8.0","1.8.1","1.8.10","1.8.11","1.8.12","1.8.13","1.8.14","1.8.15","1.8.16","1.8.17","1.8.18","1.8.19","1.8.2","1.8.20","1.8.21","1.8.22","1.8.23","1.8.3","1.8.4","1.8.5","1.8.6","1.8.7","1.8.8","1.8.9"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-9j7m-rjqx-48vh/GHSA-9j7m-rjqx-48vh.json"}},{"package":{"name":"rubygems-update","ecosystem":"RubyGems","purl":"pkg:gem/rubygems-update"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.8.24"},{"fixed":"1.8.26"}]}],"versions":["1.8.24","1.8.25"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-9j7m-rjqx-48vh/GHSA-9j7m-rjqx-48vh.json"}},{"package":{"name":"rubygems-update","ecosystem":"RubyGems","purl":"pkg:gem/rubygems-update"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.0.8"}]}],"versions":["2.0.0","2.0.2","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-9j7m-rjqx-48vh/GHSA-9j7m-rjqx-48vh.json"}},{"package":{"name":"rubygems-update","ecosystem":"RubyGems","purl":"pkg:gem/rubygems-update"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.1.0.rc.1"},{"fixed":"2.1.0"}]}],"versions":["2.1.0.rc.1","2.1.0.rc.2"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-9j7m-rjqx-48vh/GHSA-9j7m-rjqx-48vh.json"}}],"schema_version":"1.9.0"}