CVE-2008-4310: High severity ruby vulnerability

Published Nov 6, 2008
·
Updated

Common Vulnerabilities and Exposures assigned an identifier CVE-2008-3656 to the following vulnerability:

Algorithmic complexity vulnerability in WEBrick::HTTP::DefaultFileHandler in WEBrick in Ruby 1.8.5 and earlier, 1.8.5 through 1.8.6-p286, 1.8.7 through 1.8.7-p71, and 1.9 through r18423 allows context-dependent attackers to cause a denial of service (CPU consumption) via a crafted HTTP request that is processed by a backtracking regular expression.

Refences: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=494401 http://www.ruby-lang.org/en/news/2008/08/08/multiple-vulnerabilities-in-ruby/

Vincent Danen from LinSec discovered the original patch for this flaw, provided by Red Hat, did not properly address this flaw.

Other sources

httputils.rb in WEBrick in Ruby 1.8.1 and 1.8.5, as used in Red Hat Enterprise Linux 4 and 5, allows remote attackers to cause a denial of service (CPU consumption) via a crafted HTTP request. NOTE: this issue exists because of an incomplete fix for CVE-2008-3656.

Red Hat

Affected Software

5 affected componentsFixes available
redhat/ruby<0:1.8.1-7.el4_7.2
0:1.8.1-7.el4_7.2
redhat/ruby<0:1.8.5-5.el5_2.6
0:1.8.5-5.el5_2.6
rubygems/webrick<1.3.1
1.3.1
ruby-lang Ruby=1.8.1
ruby-lang Ruby=1.8.5

Event History

Nov 6, 2008
Data Sourced
via Red Hat·01:56 PM
DescriptionSeverityAffected Software
Dec 4, 2008
CVE Published
via Red Hat·12:00 AM
Dec 9, 2008
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
May 2, 2022
Advisory Published
via GitHub·12:08 AM

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2008-4310?

CVE-2008-4310 is classified as a medium severity vulnerability affecting Ruby's WEBrick.

2

How do I fix CVE-2008-4310?

To fix CVE-2008-4310, upgrade Ruby to the versions 1.8.1-7.el4_7.2 or 1.8.5-5.el5_2.6, or update WEBrick to version 1.3.1.

3

Which versions of Ruby are affected by CVE-2008-4310?

CVE-2008-4310 affects Ruby versions 1.8.1 through 1.8.5 and earlier.

4

What is the nature of the vulnerability described in CVE-2008-4310?

CVE-2008-4310 involves an algorithmic complexity vulnerability in WEBrick::HTTP::DefaultFileHandler.

5

What software packages are associated with CVE-2008-4310?

CVE-2008-4310 is associated with Ruby versions 1.8.1 and 1.8.5, and WEBrick versions before 1.3.1.

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203