Skip to main content
← All vulnerabilities
CVE-2021-24122GHSA-2RVV-W9R2-RG7MBIT-TOMCAT-2021-24122

Apache Tomcat information disclosure

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 10.0.0-M10, 9.0.40, 8.5.60, 7.0.106, 7.0.107
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

When serving resources from a network location using the NTFS file system, Apache Tomcat versions 10.0.0-M1 to 10.0.0-M9, 9.0.0.M1 to 9.0.39, 8.5.0 to 8.5.59 and 7.0.0 to 7.0.106 were susceptible to JSP source code disclosure in some configurations. The root cause was the unexpected behaviour of the JRE API File.getCanonicalPath() which in turn was caused by the inconsistent behaviour of the Windows API (FindFirstFileW) in some circumstances.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated
  4. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • Apache Software Foundation Apache Tomcat

    From Apache Tomcat 10 · fixed in 10.0.0-M10; From Apache Tomcat 9 · fixed in 9.0.40; From Apache Tomcat 8.5 · fixed in 8.5.60; From Apache Tomcat 7 · fixed in 7.0.106

  • tomcatBitnami

    From 7.0.0 · fixed in 7.0.107; From 8.5.0 · fixed in 8.5.60; From 9.0.1 · fixed in 9.0.40

  • org.apache.tomcat.embed:tomcat-embed-coreMaven

    From 10.0.0-M1 · fixed in 10.0.0-M10

  • org.apache.tomcat.embed:tomcat-embed-coreMaven

    From 9.0.0 · fixed in 9.0.40

  • org.apache.tomcat.embed:tomcat-embed-coreMaven

    From 8.5.0 · fixed in 8.5.60

  • org.apache.tomcat.embed:tomcat-embed-coreMaven

    From 7.0.0 · fixed in 7.0.107

References 11

lists.apache.org

openwall.com

lists.debian.org

oracle.com

security.netapp.com