CVE-2008-3656
published 2008-08-13CVE-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…
PriorityP354high7.8CVSS 2.0
AVNACLAuNCNINAC
EXPLOIT
EPSS
70.20%
99.3th percentile
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.
Affected
12 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| ruby-lang | ruby | <= 1.8.5 | — |
| ruby-lang | ruby | — | — |
| ruby-lang | ruby | — | — |
| ruby-lang | ruby | — | — |
| ruby-lang | ruby | — | — |
| ruby-lang | ruby | — | — |
| ruby-lang | ruby | — | — |
| ruby-lang | ruby | — | — |
| ruby-lang | ruby | — | — |
| ruby-lang | ruby | — | — |
| ruby-lang | ruby | — | — |
| ruby-lang | webrick | >= 0 < 1.3.1 | 1.3.1 |
Detection & IOCsextracted from sources · hover to see the quote
- →Detect DoS attempts against WEBrick by monitoring for HTTP requests containing a crafted If-None-Match header with repeated quoted key=value pairs (e.g., many repetitions of foo="bar"), which triggers catastrophic backtracking in WEBrick::HTTPUtils.split_header_value. ↗
- →The vulnerable function is WEBrick::HTTPUtils.split_header_value in WEBrick::HTTP::DefaultFileHandler; alert on abnormally long or repetitive If-None-Match header values in HTTP requests to Ruby WEBrick servers. ↗
- →CPU consumption spike on a WEBrick server process may indicate active exploitation; the attack causes denial of service via a backtracking regular expression triggered by the crafted HTTP request. ↗
- ·The initial Red Hat patch for CVE-2008-3656 was incomplete and did not fully address the vulnerability; a second CVE (CVE-2008-4310) was assigned for the incomplete fix. Ensure the correct/final patch is applied. ↗
- ·Affected versions include 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; the vulnerability exists in httputils.rb within WEBrick. ↗
CVSS provenance
nvdv2.07.8HIGHAV:N/AC:L/Au:N/C:N/I:N/A:C
ghsa7.8HIGH
osv7.8HIGH
vendor_redhat7.8HIGH
vendor_ubuntu6.8MEDIUM
CVEs like this are exactly what “Exploited This Week” covers.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-823x-6r7f-v9x6: Algorithmic complexity vulnerability in the WEBrick::HTTPUtils
ghsa_unreviewed·2022-05-02
CVE-2008-3656 [HIGH] GHSA-823x-6r7f-v9x6: Algorithmic complexity vulnerability in the WEBrick::HTTPUtils
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.
GHSA
WEBrick Denial of Service Vulnerability
ghsa·2022-05-02·CVSS 7.8
CVE-2008-4310 [HIGH] CWE-400 WEBrick Denial of Service Vulnerability
WEBrick Denial of Service Vulnerability
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.
OSV
WEBrick Denial of Service Vulnerability
osv·2022-05-02·CVSS 7.8
CVE-2008-4310 [HIGH] WEBrick Denial of Service Vulnerability
WEBrick Denial of Service Vulnerability
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
ruby: Incomplete fix for CVE-2008-3656
vendor_redhat·2008-12-04·CVSS 7.8
CVE-2008-4310 [HIGH] ruby: Incomplete fix for CVE-2008-3656
ruby: Incomplete fix for CVE-2008-3656
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.
Ubuntu
Ruby vulnerabilities
vendor_ubuntu·2008-10-10·CVSS 6.8
CVE-2008-3790 [MEDIUM] Ruby vulnerabilities
Title: Ruby vulnerabilities
Summary: Ruby vulnerabilities
Akira Tagoh discovered a vulnerability in Ruby which lead to an integer
overflow. If a user or automated system were tricked into running a
malicious script, an attacker could cause a denial of service or
possibly execute arbitrary code with the privileges of the user
invoking the program. (CVE-2008-2376)
Laurent Gaffie discovered that Ruby did not properly check for memory
allocation failures. If a user or automated system were tricked into
running a malicious script, an attacker could cause a denial of
service. (CVE-2008-3443)
Keita Yamaguchi discovered several safe level vulnerabilities in Ruby.
An attacker could use this to bypass intended access restrictions.
(CVE-2008-3655)
Keita Yamaguchi discovered that WEBrick in Ruby
Red Hat
ruby: WEBrick DoS vulnerability (CPU consumption)
vendor_redhat·2008-08-08·CVSS 7.8
CVE-2008-3656 [HIGH] ruby: WEBrick DoS vulnerability (CPU consumption)
ruby: WEBrick DoS vulnerability (CPU consumption)
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.
No detection rules found.
Exploit-DB
Ruby 1.9 - 'WEBrick::HTTP::DefaultFileHandler' Crafted HTTP Request Denial of Service
exploitdb·2008-08-11
CVE-2008-4310 Ruby 1.9 - 'WEBrick::HTTP::DefaultFileHandler' Crafted HTTP Request Denial of Service
Ruby 1.9 - 'WEBrick::HTTP::DefaultFileHandler' Crafted HTTP Request Denial of Service
---
source: https://www.securityfocus.com/bid/30644/info
Ruby is prone to multiple vulnerabilities that can be leveraged to bypass security restrictions or cause a denial of service:
- Multiple security-bypass vulnerabilities occur because of errors in the 'safe level' restriction implementation. Attackers can leverage these issues to make insecure function calls and perform 'Syslog' operations.
- An error affecting 'WEBrick::HHTP::DefaultFileHandler' can exhaust system resources and deny service to legitimate users.
- A flaw in 'dl' can allow attackers to call unauthorized functions.
Attackers can exploit these issues to perform unauthorized actions on affected applications. This may aid in compro
Metasploit
Ruby WEBrick::HTTP::DefaultFileHandler DoS
metasploit
Ruby WEBrick::HTTP::DefaultFileHandler DoS
Ruby WEBrick::HTTP::DefaultFileHandler DoS
The WEBrick::HTTP::DefaultFileHandler in WEBrick in Ruby 1.8.5 and earlier, 1.8.6 to 1.8.6-p286, 1.8.7 to 1.8.7-p71, and 1.9 to r18423 allows for a DoS (CPU consumption) via a crafted HTTP request.
Bugzilla
CVE-2008-4310 ruby: Incomplete fix for CVE-2008-3656
bugzilla·2008-11-06·CVSS 7.8
CVE-2008-4310 [HIGH] CVE-2008-4310 ruby: Incomplete fix for CVE-2008-3656
CVE-2008-4310 ruby: Incomplete fix for CVE-2008-3656
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.
Discussion:
Bugzilla
CVE-2008-3656 ruby: WEBrick DoS vulnerability (CPU consumption)
bugzilla·2008-08-13·CVSS 5.0
CVE-2008-3656 [MEDIUM] CVE-2008-3656 ruby: WEBrick DoS vulnerability (CPU consumption)
CVE-2008-3656 ruby: WEBrick DoS vulnerability (CPU consumption)
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/
Discussion:
Created attachment 314212
Proposed patch
---
ruby-1.8.6.287-2.fc8 has been submitted as an update for Fedora 8.
http
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=494401http://lists.apple.com/archives/security-announce/2009/May/msg00002.htmlhttp://secunia.com/advisories/31430http://secunia.com/advisories/31697http://secunia.com/advisories/32165http://secunia.com/advisories/32219http://secunia.com/advisories/32255http://secunia.com/advisories/32256http://secunia.com/advisories/32371http://secunia.com/advisories/33178http://secunia.com/advisories/35074http://security.gentoo.org/glsa/glsa-200812-17.xmlhttp://support.apple.com/kb/HT3549http://support.avaya.com/elmodocs2/security/ASA-2008-424.htmhttp://wiki.rpath.com/wiki/Advisories:rPSA-2008-0264http://www.debian.org/security/2008/dsa-1651http://www.debian.org/security/2008/dsa-1652http://www.redhat.com/support/errata/RHSA-2008-0897.htmlhttp://www.ruby-lang.org/en/news/2008/08/08/multiple-vulnerabilities-in-ruby/http://www.securityfocus.com/archive/1/495884/100/0/threadedhttp://www.securityfocus.com/bid/30644http://www.securitytracker.com/id?1020654http://www.us-cert.gov/cas/techalerts/TA09-133A.htmlhttp://www.vupen.com/english/advisories/2008/2334http://www.vupen.com/english/advisories/2009/1297https://exchange.xforce.ibmcloud.com/vulnerabilities/44371https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9682https://usn.ubuntu.com/651-1/https://www.redhat.com/archives/fedora-package-announce/2008-October/msg00259.htmlhttps://www.redhat.com/archives/fedora-package-announce/2008-October/msg00299.htmlhttp://bugs.debian.org/cgi-bin/bugreport.cgi?bug=494401http://lists.apple.com/archives/security-announce/2009/May/msg00002.htmlhttp://secunia.com/advisories/31430http://secunia.com/advisories/31697http://secunia.com/advisories/32165http://secunia.com/advisories/32219http://secunia.com/advisories/32255http://secunia.com/advisories/32256http://secunia.com/advisories/32371http://secunia.com/advisories/33178http://secunia.com/advisories/35074http://security.gentoo.org/glsa/glsa-200812-17.xmlhttp://support.apple.com/kb/HT3549http://support.avaya.com/elmodocs2/security/ASA-2008-424.htmhttp://wiki.rpath.com/wiki/Advisories:rPSA-2008-0264http://www.debian.org/security/2008/dsa-1651http://www.debian.org/security/2008/dsa-1652http://www.redhat.com/support/errata/RHSA-2008-0897.htmlhttp://www.ruby-lang.org/en/news/2008/08/08/multiple-vulnerabilities-in-ruby/http://www.securityfocus.com/archive/1/495884/100/0/threadedhttp://www.securityfocus.com/bid/30644http://www.securitytracker.com/id?1020654http://www.us-cert.gov/cas/techalerts/TA09-133A.htmlhttp://www.vupen.com/english/advisories/2008/2334http://www.vupen.com/english/advisories/2009/1297https://exchange.xforce.ibmcloud.com/vulnerabilities/44371https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9682https://usn.ubuntu.com/651-1/https://www.redhat.com/archives/fedora-package-announce/2008-October/msg00259.htmlhttps://www.redhat.com/archives/fedora-package-announce/2008-October/msg00299.html
2008-08-13
Published