CVE-2025-49124: Apache Tomcat Apache Tomcat Installer For Windows Vulnerability

MODERATE
Advisory Identifier: GHSA-42wg-hm62-jcwg
CWE-426
Published
Advisory Summary

CVE-2025-49124 is a MODERATE apache tomcat installer for windows vulnerability (CWE-426: Untrusted Search Path) affecting Apache Tomcat libraries in the Maven ecosystem. The issue involves apache tomcat installer for windows has an untrusted search path vulnerability. Remediation is available by upgrading affected packages to version 11.0.8, 10.1.42, 9.0.106.

CVE-2025-49124 at a Glance

CVE Identifier CVE-2025-49124
GHSA Identifier GHSA-42wg-hm62-jcwg
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-426: Untrusted Search Path
Affected Product Apache Tomcat
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2025-49124

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.embed:tomcat-embed-core fixed: 11.0.8
<dependency>
    <groupId>org.apache.tomcat.embed</groupId>
    <artifactId>tomcat-embed-core</artifactId>
    <version>11.0.8</version>
</dependency>
org.apache.tomcat.embed:tomcat-embed-core fixed: 10.1.42
<dependency>
    <groupId>org.apache.tomcat.embed</groupId>
    <artifactId>tomcat-embed-core</artifactId>
    <version>10.1.42</version>
</dependency>
org.apache.tomcat.embed:tomcat-embed-core fixed: 9.0.106
<dependency>
    <groupId>org.apache.tomcat.embed</groupId>
    <artifactId>tomcat-embed-core</artifactId>
    <version>9.0.106</version>
</dependency>
org.apache.tomcat:tomcat fixed: 11.0.8
<dependency>
    <groupId>org.apache.tomcat</groupId>
    <artifactId>tomcat</artifactId>
    <version>11.0.8</version>
</dependency>
org.apache.tomcat:tomcat fixed: 10.1.42
<dependency>
    <groupId>org.apache.tomcat</groupId>
    <artifactId>tomcat</artifactId>
    <version>10.1.42</version>
</dependency>
org.apache.tomcat:tomcat fixed: 9.0.106
<dependency>
    <groupId>org.apache.tomcat</groupId>
    <artifactId>tomcat</artifactId>
    <version>9.0.106</version>
</dependency>
org.apache.tomcat:tomcat-catalina fixed: 11.0.8
<dependency>
    <groupId>org.apache.tomcat</groupId>
    <artifactId>tomcat-catalina</artifactId>
    <version>11.0.8</version>
</dependency>
org.apache.tomcat:tomcat-catalina fixed: 10.1.42
<dependency>
    <groupId>org.apache.tomcat</groupId>
    <artifactId>tomcat-catalina</artifactId>
    <version>10.1.42</version>
</dependency>
org.apache.tomcat:tomcat-catalina fixed: 9.0.106
<dependency>
    <groupId>org.apache.tomcat</groupId>
    <artifactId>tomcat-catalina</artifactId>
    <version>9.0.106</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.embed

How to Check if You Are Affected

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

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

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 11.0.8), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apache.tomcat.embed 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-426: Untrusted Search Path, where the product searches for critical resources using an externally-supplied search path that can point to resources that are not under the product's direct control. 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

Untrusted Search Path vulnerability in Apache Tomcat installer for Windows. During installation, the Tomcat installer for Windows used icacls.exe without specifying a full path. This issue affects Apache Tomcat: from 11.0.0-M1 through 11.0.7, from 10.1.0 through 10.1.41, from 9.0.23 through 9.0.105. Users are recommended to upgrade to version 11.0.8, 10.1.42 or 9.0.106, which fix the issue.

CVE-2025-49124 Affected Apache Tomcat Versions

9 component(s)
Fixed Versions:
11.0.810.1.429.0.106
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.tomcat.embed:tomcat-embed-core
Maven
≥ 11.0.0-M1
< 11.0.8
11.0.8
org.apache.tomcat.embed:tomcat-embed-core
Maven
≥ 10.1.0
< 10.1.42
10.1.42
org.apache.tomcat.embed:tomcat-embed-core
Maven
≥ 9.0.23
< 9.0.106
9.0.106
org.apache.tomcat:tomcat
Maven
≥ 11.0.0-M1
< 11.0.8
11.0.8
org.apache.tomcat:tomcat
Maven
≥ 10.1.0
< 10.1.42
10.1.42
org.apache.tomcat:tomcat
Maven
≥ 9.0.23
< 9.0.106
9.0.106
org.apache.tomcat:tomcat-catalina
Maven
≥ 11.0.0-M1
< 11.0.8
11.0.8
org.apache.tomcat:tomcat-catalina
Maven
≥ 10.1.0
< 10.1.42
10.1.42
org.apache.tomcat:tomcat-catalina
Maven
≥ 9.0.23
< 9.0.106
9.0.106

References

Frequently Asked Questions

What is CVE-2025-49124?
CVE-2025-49124 is a security vulnerability in Apache Tomcat involving Apache Tomcat installer for Windows has an untrusted search path vulnerability under CWE-426: Untrusted Search Path.
Which Apache Tomcat versions are affected?
Affected versions include releases prior to 11.0.8, 10.1.42, 9.0.106 across affected packages: org.apache.tomcat.embed:tomcat-embed-core, org.apache.tomcat:tomcat, org.apache.tomcat:tomcat-catalina.
What version fixes CVE-2025-49124?
Upgrading to 11.0.8, 10.1.42, 9.0.106 (or the latest patched release for your respective branch) resolves the vulnerability.
Is tomcat-embed-core affected?
Yes, org.apache.tomcat.embed:tomcat-embed-core is affected in releases prior to 11.0.8, 10.1.42, 9.0.106. Upgrade your dependency to 11.0.8, 10.1.42, 9.0.106 or later.
Is tomcat affected?
Yes, org.apache.tomcat:tomcat is affected in releases prior to 11.0.8, 10.1.42, 9.0.106. Upgrade your dependency to 11.0.8, 10.1.42, 9.0.106 or later.
What CWE is associated with CVE-2025-49124?
CVE-2025-49124 is classified under CWE-426: Untrusted Search Path (The product searches for critical resources using an externally-supplied search path that can point to resources that are not under the product's direct control.).
How can I check Maven dependencies for CVE-2025-49124?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.tomcat.embed'. 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-42wg-hm62-jcwg",
  "modified" : "2025-10-29T16:05:26Z",
  "published" : "2025-06-16T15:32:28Z",
  "aliases" : [ "CVE-2025-49124" ],
  "summary" : "Apache Tomcat installer for Windows has an untrusted search path vulnerability",
  "details" : "Untrusted Search Path vulnerability in Apache Tomcat installer for Windows. During installation, the Tomcat installer for Windows used icacls.exe without specifying a full path.\n\nThis issue affects Apache Tomcat: from 11.0.0-M1 through 11.0.7, from 10.1.0 through 10.1.41, from 9.0.23 through 9.0.105.\n\nUsers are recommended to upgrade to version 11.0.8, 10.1.42 or 9.0.106, which fix the issue.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.tomcat.embed:tomcat-embed-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "11.0.0-M1"
      }, {
        "fixed" : "11.0.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.tomcat.embed:tomcat-embed-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "10.1.0"
      }, {
        "fixed" : "10.1.42"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.tomcat.embed:tomcat-embed-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "9.0.23"
      }, {
        "fixed" : "9.0.106"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.tomcat:tomcat"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "11.0.0-M1"
      }, {
        "fixed" : "11.0.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.tomcat:tomcat"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "10.1.0"
      }, {
        "fixed" : "10.1.42"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.tomcat:tomcat"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "9.0.23"
      }, {
        "fixed" : "9.0.106"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.tomcat:tomcat-catalina"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "11.0.0-M1"
      }, {
        "fixed" : "11.0.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.tomcat:tomcat-catalina"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "10.1.0"
      }, {
        "fixed" : "10.1.42"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.tomcat:tomcat-catalina"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "9.0.23"
      }, {
        "fixed" : "9.0.106"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-49124"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/tomcat/commit/28726cc2e63bed68771f5eb0f65a78dc7080571823"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/tomcat/commit/c56456cda8151c9504dfb7985700824559d769a7"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/tomcat/commit/e0e07812224d327a321babb554f5a5758d30cc49"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/tomcat"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/lnow7tt2j6hb9kcpkggx32ht6o90vqzv"
  }, {
    "type" : "WEB",
    "url" : "https://tomcat.apache.org/security-10.html#Fixed_in_Apache_Tomcat_10.1.42"
  }, {
    "type" : "WEB",
    "url" : "https://tomcat.apache.org/security-11.html#Fixed_in_Apache_Tomcat_11.0.8"
  }, {
    "type" : "WEB",
    "url" : "https://tomcat.apache.org/security-9.html#Fixed_in_Apache_Tomcat_9.0.106"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2025/06/16/3"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-426" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-10-29T16:05:26Z",
    "nvd_published_at" : "2025-06-16T15:15:24Z"
  }
}