CVE-2006-7197: Apache Tomcat Apache Tomcat Buffer Over-Read Vulnerability

HIGH
Advisory Identifier: GHSA-jpqr-vh55-xqxf
CWE-126
Published
Advisory Summary

CVE-2006-7197 is a HIGH apache tomcat buffer over-read vulnerability (CWE-126: Buffer Over-read) affecting Apache Tomcat libraries in the Maven ecosystem. The issue involves apache tomcat buffer over-read. Remediation is available in the latest vendor maintenance releases.

CVE-2006-7197 at a Glance

CVE Identifier CVE-2006-7197
GHSA Identifier GHSA-jpqr-vh55-xqxf
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-126: Buffer Over-read
Affected Product Apache Tomcat
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2006-7197

To remediate this vulnerability, upgrade all affected Apache Tomcat dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.apache.tomcat:tomcat fixed: Latest secure release
<dependency>
    <groupId>org.apache.tomcat</groupId>
    <artifactId>tomcat</artifactId>
    <version>Latest secure release</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.apache.tomcat

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2006-7197, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.apache.tomcat

Analyze the terminal output to locate any version of Apache Tomcat in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apache.tomcat command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-126: Buffer Over-read, where the product reads from a buffer using buffer access mechanisms such as indexes or pointers that reference memory locations after the targeted buffer. In Apache Tomcat, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

The AJP connector in Apache Tomcat 5.5.15 uses an incorrect length for chunks, which can cause a buffer over-read in the `ajp_process_callback` in mod_jk, which allows remote attackers to read portions of sensitive memory.

CVE-2006-7197 Affected Apache Tomcat Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.tomcat:tomcat
Maven
≤ 5.5.15

References

NVD — CVE-2006-7197 NVD
https://nvd.nist.gov/vuln/detail/CVE-2006-7197
Apache Tomcat Security Information SECURITY
https://web.archive.org/web/20080511190321/http://www.securityfocus.com/bid/28477
svn.apache.org/viewvc WEB
https://svn.apache.org/viewvc?view=revision&revision=381505
lists.apache.org/thread.html/rf8e8c0... WEB
https://lists.apache.org/thread.html/rf8e8c091182b45daa50d3557cad9b10bb4198e3f08cf8f1c66a1b08d@%3Cdev.tomcat.apache.org%3E
lists.apache.org/thread.html/rf8e8c0... WEB
https://lists.apache.org/thread.html/rf8e8c091182b45daa50d3557cad9b10bb4198e3f08cf8f1c66a1b08d%40%3Cdev.tomcat.apache.org%3E
lists.apache.org/thread.html/r5c616d... WEB
https://lists.apache.org/thread.html/r5c616dfc49156e4b06ffab842800c80f4425924d0f20c452c127a53c@%3Cdev.tomcat.apache.org%3E
lists.apache.org/thread.html/r5c616d... WEB
https://lists.apache.org/thread.html/r5c616dfc49156e4b06ffab842800c80f4425924d0f20c452c127a53c%40%3Cdev.tomcat.apache.org%3E
lists.apache.org/thread.html/ba661b0... WEB
https://lists.apache.org/thread.html/ba661b0edd913b39ff129a32d855620dd861883ade05fd88a8ce517d@%3Cdev.tomcat.apache.org%3E
lists.apache.org/thread.html/ba661b0... WEB
https://lists.apache.org/thread.html/ba661b0edd913b39ff129a32d855620dd861883ade05fd88a8ce517d%40%3Cdev.tomcat.apache.org%3E
lists.apache.org/thread.html/8d2a579... WEB
https://lists.apache.org/thread.html/8d2a579bbd977c225c70cb23b0ec54865fb0dab5da3eff1e060c9935@%3Cdev.tomcat.apache.org%3E
lists.apache.org/thread.html/8d2a579... WEB
https://lists.apache.org/thread.html/8d2a579bbd977c225c70cb23b0ec54865fb0dab5da3eff1e060c9935%40%3Cdev.tomcat.apache.org%3E
lists.apache.org/thread.html/5b7a23e... WEB
https://lists.apache.org/thread.html/5b7a23e245c93235c503900da854a143596d901bf1a1f67e851a5de4@%3Cdev.tomcat.apache.org%3E
lists.apache.org/thread.html/5b7a23e... WEB
https://lists.apache.org/thread.html/5b7a23e245c93235c503900da854a143596d901bf1a1f67e851a5de4%40%3Cdev.tomcat.apache.org%3E
lists.apache.org/thread.html/277d42b... WEB
https://lists.apache.org/thread.html/277d42b48b6e9aef50949c0dcc79ce21693091d73da246b3c1981925@%3Cdev.tomcat.apache.org%3E
lists.apache.org/thread.html/277d42b... WEB
https://lists.apache.org/thread.html/277d42b48b6e9aef50949c0dcc79ce21693091d73da246b3c1981925%40%3Cdev.tomcat.apache.org%3E
Apache Tomcat Source Repository REPOSITORY
https://github.com/apache/tomcat
access.redhat.com/errata/rhsa-2008:02... WEB
https://access.redhat.com/errata/RHSA-2008:0261
issues.apache.org/bugzilla/show_bug.c... WEB
http://issues.apache.org/bugzilla/show_bug.cgi?id=38859
www.redhat.com/support/errata/rhsa... WEB
http://www.redhat.com/support/errata/RHSA-2008-0261.html
Apache Tomcat Security Information SECURITY
http://www.securityfocus.com/bid/28477

Frequently Asked Questions

What is CVE-2006-7197?
CVE-2006-7197 is a security vulnerability in Apache Tomcat involving Apache Tomcat Buffer Over-Read under CWE-126: Buffer Over-read.
Which Apache Tomcat versions are affected?
Affected versions include releases prior to current release patches across affected packages: org.apache.tomcat:tomcat.
What version fixes CVE-2006-7197?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is tomcat affected?
Yes, org.apache.tomcat:tomcat is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with CVE-2006-7197?
CVE-2006-7197 is classified under CWE-126: Buffer Over-read (The product reads from a buffer using buffer access mechanisms such as indexes or pointers that reference memory locations after the targeted buffer.).
How can I check Maven dependencies for CVE-2006-7197?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.tomcat'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-jpqr-vh55-xqxf",
  "modified" : "2025-04-09T15:16:43Z",
  "published" : "2022-05-01T07:45:38Z",
  "aliases" : [ "CVE-2006-7197" ],
  "summary" : "Apache Tomcat Buffer Over-Read",
  "details" : "The AJP connector in Apache Tomcat 5.5.15 uses an incorrect length for chunks, which can cause a buffer over-read in the `ajp_process_callback` in mod_jk, which allows remote attackers to read portions of sensitive memory.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.tomcat:tomcat"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "5.5.15"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2006-7197"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20080511190321/http://www.securityfocus.com/bid/28477"
  }, {
    "type" : "WEB",
    "url" : "https://svn.apache.org/viewvc?view=revision&revision=381505"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/rf8e8c091182b45daa50d3557cad9b10bb4198e3f08cf8f1c66a1b08d@%3Cdev.tomcat.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/rf8e8c091182b45daa50d3557cad9b10bb4198e3f08cf8f1c66a1b08d%40%3Cdev.tomcat.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r5c616dfc49156e4b06ffab842800c80f4425924d0f20c452c127a53c@%3Cdev.tomcat.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r5c616dfc49156e4b06ffab842800c80f4425924d0f20c452c127a53c%40%3Cdev.tomcat.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/ba661b0edd913b39ff129a32d855620dd861883ade05fd88a8ce517d@%3Cdev.tomcat.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/ba661b0edd913b39ff129a32d855620dd861883ade05fd88a8ce517d%40%3Cdev.tomcat.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/8d2a579bbd977c225c70cb23b0ec54865fb0dab5da3eff1e060c9935@%3Cdev.tomcat.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/8d2a579bbd977c225c70cb23b0ec54865fb0dab5da3eff1e060c9935%40%3Cdev.tomcat.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/5b7a23e245c93235c503900da854a143596d901bf1a1f67e851a5de4@%3Cdev.tomcat.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/5b7a23e245c93235c503900da854a143596d901bf1a1f67e851a5de4%40%3Cdev.tomcat.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/277d42b48b6e9aef50949c0dcc79ce21693091d73da246b3c1981925@%3Cdev.tomcat.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/277d42b48b6e9aef50949c0dcc79ce21693091d73da246b3c1981925%40%3Cdev.tomcat.apache.org%3E"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/tomcat"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2008:0261"
  }, {
    "type" : "WEB",
    "url" : "http://issues.apache.org/bugzilla/show_bug.cgi?id=38859"
  }, {
    "type" : "WEB",
    "url" : "http://www.redhat.com/support/errata/RHSA-2008-0261.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/28477"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-126" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-12T16:45:52Z",
    "nvd_published_at" : "2007-04-25T20:19:00Z"
  }
}