Security mailing lists by PureSourceCode

CVE-2021-24122

MEDIUM 5.9CVSS 3.1

Information Disclosure in Apache Tomcat

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.

Published
14 Jan 2021
Last modified
8 Oct 2026
Assigned by
security@apache.org
NVD status
Modified
Weakness
CWE-200CWE-706
Also known as
BIT-tomcat-2021-24122GHSA-2rvv-w9r2-rg7m
Sources
NVDJSONOSV GHSA-2rvv-w9r2-rg7mJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
OSV GitHub CVSS 3.1 MEDIUM 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 4.3 AV:N/AC:M/Au:N/C:P/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD apache tomcat
cpe:2.3:a:apache:tomcat:*:*:*:*:*:*:*:*
>= 7.0.0, <= 7.0.106
NVD apache tomcat
cpe:2.3:a:apache:tomcat:*:*:*:*:*:*:*:*
>= 8.5.0, <= 8.5.59
NVD apache tomcat
cpe:2.3:a:apache:tomcat:*:*:*:*:*:*:*:*
>= 9.0.1, <= 9.0.39
NVD apache tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone1:*:*:*:*:*:*
= 9.0.0
NVD apache tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone10:*:*:*:*:*:*
= 9.0.0
NVD apache tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone11:*:*:*:*:*:*
= 9.0.0
NVD apache tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone12:*:*:*:*:*:*
= 9.0.0
NVD apache tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone13:*:*:*:*:*:*
= 9.0.0
NVD apache tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone14:*:*:*:*:*:*
= 9.0.0
NVD apache tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone15:*:*:*:*:*:*
= 9.0.0
NVD apache tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone16:*:*:*:*:*:*
= 9.0.0
NVD apache tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone17:*:*:*:*:*:*
= 9.0.0
NVD apache tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone18:*:*:*:*:*:*
= 9.0.0
NVD apache tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone19:*:*:*:*:*:*
= 9.0.0
NVD apache tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone2:*:*:*:*:*:*
= 9.0.0
NVD apache tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone20:*:*:*:*:*:*
= 9.0.0
NVD apache tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone21:*:*:*:*:*:*
= 9.0.0
NVD apache tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone22:*:*:*:*:*:*
= 9.0.0
NVD apache tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone23:*:*:*:*:*:*
= 9.0.0
NVD apache tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone24:*:*:*:*:*:*
= 9.0.0
NVD apache tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone25:*:*:*:*:*:*
= 9.0.0
NVD apache tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone26:*:*:*:*:*:*
= 9.0.0
NVD apache tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone27:*:*:*:*:*:*
= 9.0.0
NVD apache tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone3:*:*:*:*:*:*
= 9.0.0
NVD apache tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone4:*:*:*:*:*:*
= 9.0.0
NVD apache tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone5:*:*:*:*:*:*
= 9.0.0
NVD apache tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone6:*:*:*:*:*:*
= 9.0.0
NVD apache tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone7:*:*:*:*:*:*
= 9.0.0
NVD apache tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone8:*:*:*:*:*:*
= 9.0.0
NVD apache tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone9:*:*:*:*:*:*
= 9.0.0
NVD apache tomcat
cpe:2.3:a:apache:tomcat:10.0.0:milestone1:*:*:*:*:*:*
= 10.0.0
NVD apache tomcat
cpe:2.3:a:apache:tomcat:10.0.0:milestone2:*:*:*:*:*:*
= 10.0.0
NVD apache tomcat
cpe:2.3:a:apache:tomcat:10.0.0:milestone3:*:*:*:*:*:*
= 10.0.0
NVD apache tomcat
cpe:2.3:a:apache:tomcat:10.0.0:milestone4:*:*:*:*:*:*
= 10.0.0
NVD apache tomcat
cpe:2.3:a:apache:tomcat:10.0.0:milestone5:*:*:*:*:*:*
= 10.0.0
NVD apache tomcat
cpe:2.3:a:apache:tomcat:10.0.0:milestone6:*:*:*:*:*:*
= 10.0.0
NVD apache tomcat
cpe:2.3:a:apache:tomcat:10.0.0:milestone7:*:*:*:*:*:*
= 10.0.0
NVD apache tomcat
cpe:2.3:a:apache:tomcat:10.0.0:milestone8:*:*:*:*:*:*
= 10.0.0
NVD apache tomcat
cpe:2.3:a:apache:tomcat:10.0.0:milestone9:*:*:*:*:*:*
= 10.0.0
NVD debian debian_linux
cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
= 9.0
NVD oracle agile_product_lifecycle_management
cpe:2.3:a:oracle:agile_product_lifecycle_management:9.3.3:*:*:*:*:*:*:*
= 9.3.3
NVD oracle agile_product_lifecycle_management
cpe:2.3:a:oracle:agile_product_lifecycle_management:9.3.6:*:*:*:*:*:*:*
= 9.3.6
OSV Maven org.apache.tomcat.embed:tomcat-embed-core >= 10.0.0-M1, < 10.0.0-M10 10.0.0-M10
OSV Maven org.apache.tomcat.embed:tomcat-embed-core >= 9.0.0, < 9.0.40 9.0.40
OSV Maven org.apache.tomcat.embed:tomcat-embed-core >= 8.5.0, < 8.5.60 8.5.60
OSV Maven org.apache.tomcat.embed:tomcat-embed-core >= 7.0.0, < 7.0.107 7.0.107

References

History

  • 25 Nov 2026 20:32 UTC · NVD: first stored (published 14 Jan 2021)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 May 2021)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.