CVE-2007-0774 Memory corruption in n/a

High 7.5 Published Updated

Remote attackers can execute arbitrary code via a stack-based buffer overflow in the Apache Tomcat JK Web Server Connector triggered by a long URL.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2007-0774?

CVE-2007-0774 is a high-severity memory corruption vulnerability in n/a, published on 4 Mar 2007. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Which versions are affected by CVE-2007-0774?

It affects 1 product.

Linux distribution packages (8)
mod_jk Red Hat:rhel_application_server:2All versions0:1.2.20-1jpp_1rh
mod_jk-ap20 Red Hat:rhel_application_server:2All versions0:1.2.20-1jpp_1rh
mod_jk-debuginfo Red Hat:rhel_application_server:2All versions0:1.2.20-1jpp_1rh
mod_jk-manual Red Hat:rhel_application_server:2All versions0:1.2.20-1jpp_1rh
mod_jk Red Hat:rhel_application_stack:1All versions0:1.2.20-1.el4s1.2
mod_jk-ap20 Red Hat:rhel_application_stack:1All versions0:1.2.20-1.el4s1.2
mod_jk-debuginfo Red Hat:rhel_application_stack:1All versions0:1.2.20-1.el4s1.2
mod_jk-manual Red Hat:rhel_application_stack:1All versions0:1.2.20-1.el4s1.2

Products include Apache Tomcat Jk Web Server Connector.

How do I fix CVE-2007-0774?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2007-0774 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2007-0774 exists.

Public exploit code: 1 Metasploit module and 2 Exploit-DB entries.

Sources

Also known as DEBIAN-CVE-2007-0774, GHSA-5cwp-c46g-8v55, RHSA-2007:0096, RHSA-2007:0164.

Is CVE-2007-0774 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free