CVE-2013-4363 RubyGems Regular Expression Denial of Service

Medium 4.3 Published Updated

Remote attackers can cause denial of service via CPU exhaustion by submitting crafted gem versions that trigger excessive regex backtracking in RubyGems.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2013-4363?

CVE-2013-4363 is a medium-severity denial of service vulnerability in Ruby-Lang Ruby, published on 17 Oct 2013. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Algorithmic complexity vulnerability in Gem::Version::ANCHORED_VERSION_PATTERN in lib/rubygems/version.rb in RubyGems before 1.8.23.2, 1.8.24 through 1.8.26, 2.0.x before 2.0.10, and 2.1.x before 2.1.5, 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. NOTE: this issue is due to an incomplete fix for CVE-2013-4287.

Weakness: CWE-310

Which versions are affected by CVE-2013-4363?

8 open source packages ship an affected version, including rubygems-update. It affects 2 products.

PackageAffectedFixed in
rubygems-update RubyGemsAll versions1.8.23.2
rubygems-update RubyGemsAll versions1.8.23.2
rubygems-update RubyGemsFrom 1.8.241.8.27
rubygems-update RubyGemsFrom 1.8.241.8.27
rubygems-update RubyGemsFrom 2.0.02.0.10
rubygems-update RubyGemsFrom 2.0.02.0.10
2 more packages
rubygems-update RubyGemsFrom 2.1.02.1.5
rubygems-update RubyGemsFrom 2.1.02.1.5

Products include Ruby-Lang Ruby, Rubygems Rubygems.

How do I fix CVE-2013-4363?

Upgrade rubygems-update to a fixed version for your release line: 1.8.23.2, 1.8.27, 2.0.10 or 2.1.5.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2013-4363 being exploited?

There is no known exploitation of CVE-2013-4363 in the wild and no public exploit code.

All Ruby-Lang Ruby vulnerabilities

Sources

Also known as DEBIAN-CVE-2013-4363, GHSA-9qvm-2vhf-q649.

Is CVE-2013-4363 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free