CVE-2006-6303
The read_multipart function in cgi.rb in Ruby before 1.8.5-p2 does not properly detect boundaries in MIME multipart content, which…
Check your servers for CVE-2006-6303
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2006-6303 affects a package, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
The read_multipart function in cgi.rb in Ruby before 1.8.5-p2 does not properly detect boundaries in MIME multipart content, which allows remote attackers to cause a denial of service (infinite loop) via crafted HTTP requests, a different issue than CVE-2006-5467.
Exploitation
EPSS 4.04%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 91.3% of all scored CVEs. Scores of 30 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
n/a
n/a
|
affected all versions
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2006-6303 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2006-6303RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2006-6303Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2006-6303
trivy image --scanners vuln IMAGE | grep CVE-2006-6303
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- http://docs.info.apple.com/article.html?artnum=305530 docs.info.apple.com
- USN-394-1 ubuntu.com · vendor advisory
- 31090 secunia.com · third party advisory
- 27576 secunia.com · third party advisory
- JVN#84798830 jvn.jp · third party advisory
- 23268 secunia.com · third party advisory
- APPLE-SA-2007-05-24 lists.apple.com · vendor advisory
- http://www.ruby-lang.org/en/news/2006/12/04/another-dos-vulnerability-in-cgi-library/ ruby-lang.org
- 25402 secunia.com · third party advisory
- 23165 secunia.com · third party advisory
- RHSA-2007:0961 redhat.com · vendor advisory
- SUSE-SR:2007:004 novell.com · vendor advisory
- MDKSA-2006:225 mandriva.com · vendor advisory
- GLSA-200612-21 security.gentoo.org · vendor advisory
- 23454 secunia.com · third party advisory
Other references
- ADV-2007-1939 vupen.com · vdb entry
- http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=218287 bugzilla.redhat.com
- oval:org.mitre.oval:def:10529 oval.cisecurity.org · vdb entry, signature
- ruby-cgi-library-dos(30734) exchange.xforce.ibmcloud.com · vdb entry
- 1017363 securitytracker.com · vdb entry
- http://bugs.gentoo.org/show_bug.cgi?id=157048 bugs.gentoo.org
- http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/ruby/lib/cgi.rb.diff?f=h&only_with_tag=MAIN&r1=text&tr1=1.92&r2=text&tr2=1.91 ruby-lang.org
- ADV-2006-4855 vupen.com · vdb entry
- 21441 securityfocus.com · vdb entry
Source: the record CVE-2006-6303 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse