CWE
400 310
Advisory Published
Advisory Published
Updated

CVE-2013-4287

First published: Thu Oct 17 2013(Updated: )

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.

Credit: secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
rubygems/rubygems-update>=2.1.0.rc.1<2.1.0
2.1.0
rubygems/rubygems-update>=2.0.0<2.0.8
2.0.8
rubygems/rubygems-update>=1.8.24<1.8.26
1.8.26
rubygems/rubygems-update<1.8.23.1
1.8.23.1
Red Hat Enterprise Linux=6.0
RubyGems Mail Gem<=1.8.23
RubyGems Mail Gem=1.8.0
RubyGems Mail Gem=1.8.1
RubyGems Mail Gem=1.8.2
RubyGems Mail Gem=1.8.3
RubyGems Mail Gem=1.8.4
RubyGems Mail Gem=1.8.5
RubyGems Mail Gem=1.8.6
RubyGems Mail Gem=1.8.7
RubyGems Mail Gem=1.8.8
RubyGems Mail Gem=1.8.9
RubyGems Mail Gem=1.8.10
RubyGems Mail Gem=1.8.11
RubyGems Mail Gem=1.8.12
RubyGems Mail Gem=1.8.13
RubyGems Mail Gem=1.8.14
RubyGems Mail Gem=1.8.15
RubyGems Mail Gem=1.8.16
RubyGems Mail Gem=1.8.17
RubyGems Mail Gem=1.8.18
RubyGems Mail Gem=1.8.19
RubyGems Mail Gem=1.8.20
RubyGems Mail Gem=1.8.21
RubyGems Mail Gem=1.8.22
RubyGems Mail Gem=1.8.24
RubyGems Mail Gem=1.8.25
RubyGems Mail Gem=2.0.0
RubyGems Mail Gem=2.0.1
RubyGems Mail Gem=2.0.2
RubyGems Mail Gem=2.0.3
RubyGems Mail Gem=2.0.4
RubyGems Mail Gem=2.0.5
RubyGems Mail Gem=2.0.6
RubyGems Mail Gem=2.0.7
RubyGems Mail Gem=2.1.0-rc1
RubyGems Mail Gem=2.1.0-rc2
Ruby=1.9
Ruby=1.9.1
Ruby=1.9.2
Ruby=1.9.3
Ruby=1.9.3-p0
Ruby=1.9.3-p125
Ruby=1.9.3-p194
Ruby=1.9.3-p286
Ruby=1.9.3-p383
Ruby=1.9.3-p385
Ruby=1.9.3-p392
Ruby=1.9.3-p426
Ruby=1.9.3-p429
Ruby=2.0
Ruby=2.0.0
Ruby=2.0.0-p0
Ruby=2.0.0-p195
Ruby=2.0.0-p247
Ruby=2.0.0-preview1
Ruby=2.0.0-preview2
Ruby=2.0.0-rc1
Ruby=2.0.0-rc2

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2013-4287?

    CVE-2013-4287 is considered to have a medium severity as it allows remote attackers to cause a denial of service.

  • How do I fix CVE-2013-4287?

    To fix CVE-2013-4287, update RubyGems to versions 1.8.26, 1.8.23.1, 2.0.8, or 2.1.0.

  • Which versions of RubyGems are affected by CVE-2013-4287?

    Versions of RubyGems prior to 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 are affected.

  • What type of vulnerability is CVE-2013-4287?

    CVE-2013-4287 is an algorithmic complexity vulnerability affecting the version handling in RubyGems.

  • Are Ruby versions also affected by CVE-2013-4287?

    Yes, Ruby versions from 1.9.0 through 2.0.0p247 can be affected when using vulnerable RubyGems.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203