Ruby WEBrick::HTTPUtils.split_header_value() denial of service

ruby-webrick-dos (44371) The risk level is classified as MediumMedium Risk

Description:

Ruby is vulnerable to a denial of service, caused by an error in the WEBrick::HTTPUtils.split_header_value() function when using regular expressions. By sending a specially-crafted HTTP request, a remote attacker could exploit this vulnerability to consume an overly large amount of CPU resources, resulting in a denial of service.

*CVSS:

Base Score: 5
  Access Vector: Network
  Access Complexity: Low
  Authentication: None
  Confidentiality Impact: None
  Integrity Impact: None
  Availability Impact: Partial
 
Temporal Score: 3.7
  Exploitability: Unproven
  Remediation Level: Official-Fix
  Report Confidence: Confirmed

Consequences:

Denial of Service

Remedy:

For Apple Mac OS:
Apply Apple Security Update 2009-002, available from the Apple Web site. See References.

For 1.8 series:
Upgrade to the latest version of Ruby (1.8.6-p287 or 1.8.7-p72 or later), available from the Ruby Programming Language Web site. See References.

For 1.9 series:
Upgrade to the latest version of Ruby (1.9.1 or later), available from the Ruby Core SVN Repository. See References.

References:

  • Apple Web site: About the security content of Security Update 2009-002 / Mac OS X v10.5.7.
  • Ruby Core SVN Repository: Ruby Core.
  • Ruby Programming Language Web site: Multiple vulnerabilities in Ruby.
  • ASA-2008-424: ruby security update (RHSA-2008-0897)
  • BID-30644: Ruby Multiple Security Bypass and Denial of Service Vulnerabilities
  • CVE-2008-3656: Algorithmic complexity vulnerability in the WEBrick::HTTPUtils.split_header_value function in WEBrick::HTTP::DefaultFileHandler in WEBrick in Ruby 1.8.5 and earlier, 1.8.6 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.
  • DSA-1651: ruby1.8 -- several vulnerabilities
  • DSA-1652: ruby1.9 -- several vulnerabilities
  • GLSA-200812-17: Ruby: Multiple vulnerabilities
  • MDVSA-2008:226: ruby
  • RHSA-2008-0897: Moderate: ruby security update
  • SA31430: Ruby Multiple Vulnerabilities
  • SA35074: Apple Mac OS X Security Update Fixes Multiple Vulnerabilities
  • SECTRACK ID: 1020654: Ruby WEBrick HTTP Server split_header_value() Function Regex Bug Lets Remote Users Deny Service
  • SUSE-SA:2009:037: dhcp-client security problem
  • USN-651-1: Ruby vulnerabilities
  • VUPEN/ADV-2008-2334: Ruby Multiple Security Bypass and Denial of Service Vulnerabilities
  • VUPEN/ADV-2009-1297: Apple Mac OS X Code Execution and Security Bypass Vulnerabilities

Platforms Affected:

  • Apple Mac OS X 10.5
  • Apple Mac OS X 10.5.1
  • Apple Mac OS X 10.5.2
  • Apple Mac OS X 10.5.3
  • Apple Mac OS X 10.5.4
  • Apple Mac OS X 10.5.5
  • Apple Mac OS X 10.5.6
  • Apple Mac OS X Server 10.5
  • Apple Mac OS X Server 10.5.1
  • Apple Mac OS X Server 10.5.2
  • Apple Mac OS X Server 10.5.3
  • Apple Mac OS X Server 10.5.4
  • Apple Mac OS X Server 10.5.5
  • Apple Mac OS X Server 10.5.6
  • Canonical Ubuntu 6.06 LTS
  • Canonical Ubuntu 7.04
  • Canonical Ubuntu 7.10
  • Canonical Ubuntu 8.04 LTS
  • Debian Debian Linux 4.0
  • Gentoo Linux
  • MandrakeSoft Mandrake Linux 2008.0 X86_64
  • MandrakeSoft Mandrake Linux 2008.0
  • MandrakeSoft Mandrake Linux 2008.1
  • MandrakeSoft Mandrake Linux 2008.1 X86_64
  • MandrakeSoft Mandrake Linux Corporate Server 3.0
  • MandrakeSoft Mandrake Linux Corporate Server 3.0 X86_64
  • MandrakeSoft Mandrake Linux Corporate Server 4.0
  • MandrakeSoft Mandrake Linux Corporate Server 4.0 X86_64
  • Novell Linux Desktop 9
  • Novell Linux POS 9
  • Novell Open Enterprise Server
  • Novell OpenSUSE 10.3
  • Novell OpenSUSE 11.0
  • Novell SLE SDK 10 SP2
  • Novell SUSE Linux Enterprise 10 SP2 DEBUGINFO
  • Novell SUSE Linux Enterprise Desktop 10 SP2
  • Novell SUSE Linux Enterprise Server 10 SP2
  • RedHat Enterprise Linux 4 ES
  • RedHat Enterprise Linux 4 WS
  • RedHat Enterprise Linux 4 Desktop
  • RedHat Enterprise Linux 4 AS
  • RedHat Enterprise Linux 5 Client Workstation
  • RedHat Enterprise Linux 5 Client
  • RedHat Enterprise Linux 5
  • Ruby-lang Ruby 1.8.5 and prior
  • Ruby-lang Ruby 1.8.6-p286 and prior
  • Ruby-lang Ruby 1.8.7 P71
  • Ruby-lang Ruby 1.9
  • SuSE SuSE SLES 9

Reported:

Aug 08, 2008

The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

For corrections or additions please email xforce@iss.net

Return to the main page

* According to the Forum of Incident Response and Security Teams (FIRST), the Common Vulnerability Scoring System (CVSS) is an "industry open standard designed to convey vulnerability severity and help to determine urgency and priority of response." IBM PROVIDES THE CVSS SCORES "AS IS" WITHOUT WARRANTY OF ANY KIND, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. CUSTOMERS ARE RESPONSIBLE FOR ASSESSING THE IMPACT OF ANY ACTUAL OR POTENTIAL SECURITY VULNERABILITY.
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall IBM be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

About IBM Internet Security Systems

IBM Internet Security Systems is a trusted security advisor to thousands of the world's leading businesses and governments, helping to provide pre-emptive protection for networks, desktops and servers. The IBM Proventia? integrated security platform is designed to automatically protect against both known and unknown threats, helping to keep networks up and running and shield customers from online attacks before they impact business assets. IBM Internet Security Systems products and services are based on the proactive security intelligence of its X-Force? research and development team ? an unequivocal world authority in vulnerability and threat research. The IBM Internet Security Systems product line is also complemented by comprehensive Managed Security Services and Professional Security Services. For more information, visit the IBM Internet Security Systems Web site at www.iss.net or call 800-776-2362.