Apache Tomcat JK Web Server Connector 1.2.19 mod_jk.so map_uri_to_worker stack-based overflow

| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 7.0 | $0-$5k | 0.00 |
Summary
A vulnerability labeled as critical has been found in Apache Tomcat JK Web Server Connector 1.2.19. This issue affects the function map_uri_to_worker of the component mod_jk.so. Such manipulation leads to stack-based overflow.
This vulnerability is uniquely identified as CVE-2007-0774. Moreover, an exploit is present.
The affected component should be upgraded.
Details
A vulnerability was found in Apache Tomcat JK Web Server Connector 1.2.19 (Application Server Software) and classified as critical. Affected by this issue is the function map_uri_to_worker of the component mod_jk.so. The manipulation with an unknown input leads to a stack-based overflow vulnerability. Using CWE to declare the problem leads to CWE-121. A stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function). Impacted is confidentiality, integrity, and availability. CVE summarizes:
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.
The bug was discovered 03/02/2007. The weakness was disclosed 03/04/2007 (Website). The advisory is available at tomcat.apache.org. This vulnerability is handled as CVE-2007-0774 since 02/06/2007. The exploitation is known to be easy. The attack may be launched remotely. No form of authentication is required for exploitation. Technical details as well as a public exploit are known.
A public exploit has been developed in Ruby. The exploit is available at securityfocus.com. It is declared as highly functional. The vulnerability was handled as a non-public zero-day exploit for at least 2 days. During that time the estimated underground price was around $25k-$100k. The vulnerability scanner Nessus provides a plugin with the ID 24841 (GLSA-200703-16 : Apache JK Tomcat Connector: Remote execution of arbitrary code), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Gentoo Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 86805 (Apache Tomcat mod_jk connector Arbitrary Code Execution Vulnerability).
Upgrading eliminates this vulnerability. A possible mitigation has been published 2 weeks after the disclosure of the vulnerability. Furthermore it is possible to detect and prevent this kind of attack with TippingPoint and the filter 5152.
The vulnerability is also documented in the databases at X-Force (32794), Exploit-DB (4162), Tenable (24841), SecurityFocus (BID 22791†) and OSVDB (33855†). If you want to get best quality of vulnerability data, you may have to visit VulDB.
Product
Type
Vendor
Name
Version
License
Website
- Vendor: https://www.apache.org/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 7.3VulDB Meta Temp Score: 7.0
VulDB Base Score: 7.3
VulDB Temp Score: 7.0
VulDB Vector: 🔍
VulDB Reliability: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Stack-based overflowCWE: CWE-121 / CWE-119
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Access: Public
Status: Highly functional
Programming Language: 🔍
Download: 🔍
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 24841
Nessus Name: GLSA-200703-16 : Apache JK Tomcat Connector: Remote execution of arbitrary code
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍
Nessus Port: 🔍
OpenVAS ID: 58050
OpenVAS Name: FreeBSD Ports: mod_jk-ap2, mod_jk
OpenVAS File: 🔍
OpenVAS Family: 🔍
Saint ID: exploit_info/tomcat_jk_connector_worker_map
Saint Name: Apache Tomcat JK Web Server Connector URI worker map buffer overflow
Qualys ID: 🔍
Qualys Name: 🔍
MetaSploit ID: apache_modjk_overflow.rb
MetaSploit Name: Apache mod_jk 1.2.20 Buffer Overflow
MetaSploit File: 🔍
Exploit-DB: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍
TippingPoint: 🔍
McAfee IPS: 🔍
McAfee IPS Version: 🔍
ISS Proventia IPS: 🔍
PaloAlto IPS: 🔍
Fortigate IPS: 🔍
Timeline
02/06/2007 🔍03/02/2007 🔍
03/02/2007 🔍
03/02/2007 🔍
03/02/2007 🔍
03/04/2007 🔍
03/04/2007 🔍
03/05/2007 🔍
03/05/2007 🔍
03/16/2007 🔍
03/18/2007 🔍
03/13/2015 🔍
06/13/2025 🔍
Sources
Vendor: apache.orgAdvisory: tomcat.apache.org
Status: Confirmed
Confirmation: 🔍
CVE: CVE-2007-0774 (🔍)
GCVE (CVE): GCVE-0-2007-0774
GCVE (VulDB): GCVE-100-35402
OVAL: 🔍
X-Force: 32794
SecurityFocus: 22791 - Apache Tomcat Mod_JK.SO Arbitrary Code Execution Vulnerability
Secunia: 24398 - Apache Tomcat JK Web Server Connector Long URL Buffer Overflow, Highly Critical
OSVDB: 33855 - CVE-2007-0774 - Apache - Tomcat - Buffer Overflow Issue
SecurityTracker: 1017719
Vulnerability Center: 14529 - [cisco-sa-20080130-wcs, cisco-amb-20080130-wcs] Apache Tomcat map_uri_to_worker Function Buffer Overflow in mod_jk.so, High
Vupen: ADV-2007-0809
scip Labs: https://www.scip.ch/en/?labs.20161013
Entry
Created: 03/13/2015 12:16Updated: 06/13/2025 14:32
Changes: 03/13/2015 12:16 (100), 07/16/2019 09:51 (6), 01/06/2025 03:04 (17), 06/13/2025 14:32 (4)
Complete: 🔍
Cache ID: 216::103
If you want to get best quality of vulnerability data, you may have to visit VulDB.
No comments yet. Languages: en.
Please log in to comment.