{"id":"CVE-2021-24122","aliases":["CVE-2021-24122","GHSA-2rvv-w9r2-rg7m","BIT-TOMCAT-2021-24122"],"related":[],"kind":"vulnerability","state":"published","title":"Apache Tomcat information disclosure","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Cuando se sirven recursos desde una ubicación de red usando el sistema de archivos NTFS, Apache Tomcat versiones 10.0.0-M1 hasta 10.0.0-M9, versiones 9.0.0.M1 hasta 9.0.39, versiones 8.5.0 hasta 8.5.59 y versiones 7.0.0 hasta 7.0.106, fueron susceptibles a una divulgación del código fuente JSP en algunas configuraciones.&#xa0;La causa raíz fue el comportamiento inesperado de la función File.getCanonicalPath() de la API JRE que a su vez fue causado por el comportamiento incoherente de la API de Windows (FindFirstFileW) en algunas circunstancias","source":"nvd"},{"lang":"en","text":"When serving resources from a network location using the NTFS file system, Apache Tomcat versions 9.0.0 through 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.","format":"markdown","source":"bitnami"}],"published":"2021-01-14T14:45:18.000Z","modified":"2026-10-08T21:17:34.143Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:N/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-200","CWE-706"],"affected":[{"ranges":[{"type":"custom","introduced":"Apache Tomcat 10","fixed":"10.0.0-M10","status":"affected"},{"type":"custom","introduced":"Apache Tomcat 9","fixed":"9.0.40","status":"affected"},{"type":"custom","introduced":"Apache Tomcat 8.5","fixed":"8.5.60","status":"affected"},{"type":"custom","introduced":"Apache Tomcat 7","fixed":"7.0.106","status":"affected"}],"vendor":"Apache Software Foundation","product":"Apache Tomcat","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"10.0.0-M1","status":"affected","fixed":"10.0.0-M10"}],"ecosystem":"Maven","package":"org.apache.tomcat.embed:tomcat-embed-core","purl":"pkg:maven/org.apache.tomcat.embed/tomcat-embed-core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"9.0.0","status":"affected","fixed":"9.0.40"}],"ecosystem":"Maven","package":"org.apache.tomcat.embed:tomcat-embed-core","purl":"pkg:maven/org.apache.tomcat.embed/tomcat-embed-core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"8.5.0","status":"affected","fixed":"8.5.60"}],"ecosystem":"Maven","package":"org.apache.tomcat.embed:tomcat-embed-core","purl":"pkg:maven/org.apache.tomcat.embed/tomcat-embed-core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"7.0.0","status":"affected","fixed":"7.0.107"}],"ecosystem":"Maven","package":"org.apache.tomcat.embed:tomcat-embed-core","purl":"pkg:maven/org.apache.tomcat.embed/tomcat-embed-core","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"7.0.0","lastAffected":"7.0.106"},{"status":"affected","introduced":"8.5.0","lastAffected":"8.5.59"},{"status":"affected","introduced":"9.0.1","lastAffected":"9.0.39"},{"status":"affected","version":"9.0.0"},{"status":"affected","version":"9.0.0"},{"status":"affected","version":"9.0.0"},{"status":"affected","version":"9.0.0"},{"status":"affected","version":"9.0.0"},{"status":"affected","version":"9.0.0"},{"status":"affected","version":"9.0.0"},{"status":"affected","version":"9.0.0"},{"status":"affected","version":"9.0.0"},{"status":"affected","version":"9.0.0"},{"status":"affected","version":"9.0.0"},{"status":"affected","version":"9.0.0"},{"status":"affected","version":"9.0.0"},{"status":"affected","version":"9.0.0"},{"status":"affected","version":"9.0.0"},{"status":"affected","version":"9.0.0"},{"status":"affected","version":"9.0.0"},{"status":"affected","version":"9.0.0"},{"status":"affected","version":"9.0.0"},{"status":"affected","version":"9.0.0"},{"status":"affected","version":"9.0.0"},{"status":"affected","version":"9.0.0"},{"status":"affected","version":"9.0.0"},{"status":"affected","version":"9.0.0"},{"status":"affected","version":"9.0.0"},{"status":"affected","version":"9.0.0"},{"status":"affected","version":"9.0.0"},{"status":"affected","version":"10.0.0"},{"status":"affected","version":"10.0.0"},{"status":"affected","version":"10.0.0"},{"status":"affected","version":"10.0.0"},{"status":"affected","version":"10.0.0"},{"status":"affected","version":"10.0.0"},{"status":"affected","version":"10.0.0"},{"status":"affected","version":"10.0.0"},{"status":"affected","version":"10.0.0"}],"vendor":"apache","product":"tomcat","cpe":"cpe:2.3:a:apache:tomcat:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"9.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"9.3.3"},{"status":"affected","version":"9.3.6"}],"vendor":"oracle","product":"agile_product_lifecycle_management","cpe":"cpe:2.3:a:oracle:agile_product_lifecycle_management:9.3.3:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"7.0.0","status":"affected","fixed":"7.0.107"},{"type":"semver","introduced":"8.5.0","status":"affected","fixed":"8.5.60"},{"type":"semver","introduced":"9.0.1","status":"affected","fixed":"9.0.40"}],"ecosystem":"Bitnami","package":"tomcat","purl":"pkg:bitnami/tomcat","source":"bitnami"}],"references":[{"url":"https://lists.apache.org/thread.html/r1595889b083e05986f42b944dc43060d6b083022260b6ea64d2cec52%40%3Cannounce.tomcat.apache.org%3E","tags":["advisory","mailing-list","vendor-advisory","web","x-refsource-misc","x-refsource-mlist","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://lists.apache.org/thread.html/rca833c6d42b7b9ce1563488c0929f29fcc95947d86e5e740258c8937%40%3Cdev.tomcat.apache.org%3E","tags":["mailing-list","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.apache.org/thread.html/r776c64337495bf28b7d5597268114a888e3fad6045c40a0da0c66d4d%40%3Cdev.tomee.apache.org%3E","tags":["mailing-list","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"http://www.openwall.com/lists/oss-security/2021/01/14/1","tags":["advisory","mailing-list","third-party-advisory","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://lists.apache.org/thread.html/r1595889b083e05986f42b944dc43060d6b083022260b6ea64d2cec52%40%3Cannounce.apache.org%3E","tags":["mailing-list","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.apache.org/thread.html/r7e0bb9ea415724550e2b325e143b23e269579e54d66fcd7754bd0c20%40%3Cdev.tomcat.apache.org%3E","tags":["mailing-list","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.apache.org/thread.html/rb32a73b7cb919d4f44a2596b6b951274c0004fc8b0e393d6829a45f9%40%3Cusers.tomcat.apache.org%3E","tags":["mailing-list","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.apache.org/thread.html/r7382e1e35b9bc7c8f320b90ad77e74c13172d08034e20c18000fe710%40%3Cdev.tomee.apache.org%3E","tags":["mailing-list","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/03/msg00018.html","tags":["advisory","mailing-list","third-party-advisory","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://www.oracle.com//security-alerts/cpujul2021.html","tags":["advisory","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://security.netapp.com/advisory/ntap-20210212-0008/","tags":["advisory","third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-24122","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/apache/tomcat/commit/7f004ac4531c45f9a2a2d1470561fe135cf27bc2","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/apache/tomcat/commit/800b03140e640f8892f27021e681645e8e320177","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/apache/tomcat/commit/920dddbdb981f92e8d5872a4bb126a10af5ca8a9","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/apache/tomcat/commit/935fc5582dc25ae10bab6f9d5629ff8d996cb533","tags":["web"],"sources":["ghsa"]},{"url":"https://tomcat.apache.org/security-9.html","tags":["web"],"sources":["ghsa"]},{"url":"https://tomcat.apache.org/security-8.html","tags":["web"],"sources":["ghsa"]},{"url":"https://tomcat.apache.org/security-7.html","tags":["web"],"sources":["ghsa"]},{"url":"https://tomcat.apache.org/security-10.html","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20210212-0008","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.apache.org/thread.html/rca833c6d42b7b9ce1563488c0929f29fcc95947d86e5e740258c8937@%3Cdev.tomcat.apache.org%3E","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.apache.org/thread.html/rb32a73b7cb919d4f44a2596b6b951274c0004fc8b0e393d6829a45f9@%3Cusers.tomcat.apache.org%3E","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.apache.org/thread.html/r7e0bb9ea415724550e2b325e143b23e269579e54d66fcd7754bd0c20@%3Cdev.tomcat.apache.org%3E","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.apache.org/thread.html/r776c64337495bf28b7d5597268114a888e3fad6045c40a0da0c66d4d@%3Cdev.tomee.apache.org%3E","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.apache.org/thread.html/r7382e1e35b9bc7c8f320b90ad77e74c13172d08034e20c18000fe710@%3Cdev.tomee.apache.org%3E","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.apache.org/thread.html/r1595889b083e05986f42b944dc43060d6b083022260b6ea64d2cec52@%3Cannounce.tomcat.apache.org%3E","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.apache.org/thread.html/r1595889b083e05986f42b944dc43060d6b083022260b6ea64d2cec52@%3Cannounce.apache.org%3E","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/apache/tomcat","tags":["package"],"sources":["ghsa"]}],"credits":["This issue was identified by Ilja Brander."],"assigner":"apache","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-10-08T20:57:54.522Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-24122","url":"https://www.cve.org/CVERecord?id=CVE-2021-24122","licence":"CVE Terms of Use","modified":"2026-10-08T21:03:21.063Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2rvv-w9r2-rg7m","url":"https://github.com/advisories/GHSA-2rvv-w9r2-rg7m","licence":"CC-BY-4.0","modified":"2026-08-07T08:12:22.863Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-24122","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-24122","licence":"Public domain","modified":"2026-10-08T21:17:34.143Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-TOMCAT-2021-24122","url":"https://osv.dev/vulnerability/BIT-TOMCAT-2021-24122","licence":"Apache-2.0","modified":"2026-09-08T08:48:20.970Z"}],"updatedAt":"2026-11-25T22:57:59.454Z","epss":{"score":0.22499,"percentile":0.97753,"date":"2026-12-01T12:00:22.000Z"}}