cve.bz

CVE-2021-30640 Improper Encoding or Escaping of Output

6.5 mediumEPSS 9.9%Fix available

Medium (6.5). EPSS 9.9% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.tomcat:tomcat 10.0.5, 8.5.65, 9.0.45.

On this page
A vulnerability in the JNDI Realm of Apache Tomcat allows an attacker to authenticate using variations of a valid user name and/or to bypass some of the protection provided by the LockOut Realm. This issue affects Apache Tomcat 10.0.0-M1 to 10.0.5; 9.0.0.M1 to 9.0.45; 8.5.0 to 8.5.65.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N
EPSS
9.9% (unchanged from 9.9% a week ago; 9.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 96th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-10-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-116 Improper Encoding or Escaping of Output
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-30640 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-30640?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-30640?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-30640 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2021-30640

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2021-30640](https://cve.bz/cve/badge/CVE-2021-30640.svg)](https://cve.bz/cve/CVE-2021-30640)

HTML:

<a href="https://cve.bz/cve/CVE-2021-30640"><img src="https://cve.bz/cve/badge/CVE-2021-30640.svg" alt="CVE-2021-30640"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
apache:tomcatfrom 7.0.0 before 7.0.109
apache:tomcatfrom 8.5.0 before 8.5.66
apache:tomcatfrom 9.0.0 before 9.0.46
apache:tomcatfrom 10.0.0 before 10.0.6
oracle:communications_cloud_native_core_policy1.14.0
oracle:communications_diameter_signaling_routerfrom 8.0.0 through 8.5.0
oracle:communications_pricing_design_center12.0.0.3.0
oracle:hospitality_cruise_shipboard_property_management_system20.1.0
oracle:tekelec_platform_distributionfrom 7.4.0 through 7.7.1
debian:debian_linux9.0
debian:debian_linux10.0
debian:debian_linux11.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-36qh-35cm-5w2wMavenorg.apache.tomcat:tomcat>=10.0.0-M1 <10.0.510.0.5
GHSA-36qh-35cm-5w2wMavenorg.apache.tomcat:tomcat>=9.0.0M1 <9.0.459.0.45
GHSA-36qh-35cm-5w2wMavenorg.apache.tomcat:tomcat>=8.5.0 <8.5.658.5.65

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9tomcat88.5.54-0+deb9u7DLA-2733-1
Debian10tomcat99.0.31-1~deb10u5DSA-4952-1
Debian12, 13, 14tomcat99.0.43-2DEBIAN-CVE-2021-30640
Ubuntu18.04:LTStomcat99.0.16-3ubuntu0.18.04.2UBUNTU-CVE-2021-30640 USN-5360-1
Ubuntu20.04:LTStomcat99.0.31-1ubuntu0.2UBUNTU-CVE-2021-30640 USN-5360-1
UbuntuPro:14.04:LTStomcat6, tomcat7no fix listedUBUNTU-CVE-2021-30640
UbuntuPro:16.04:LTStomcat7, tomcat8no fix listedUBUNTU-CVE-2021-30640
UbuntuPro:18.04:LTStomcat8no fix listedUBUNTU-CVE-2021-30640
Red Hatjboss_enterprise_web_server:5.6::el7jws5-tomcat, jws5-tomcat-lib, jws5-tomcat-javadoc and 9 more0:9.0.50-3.redhat_00004.1.el7jwsRHSA-2021:4861
Red Hatjboss_enterprise_web_server:5.6::el7jws5-tomcat-native, jws5-tomcat-native-debuginfo0:1.2.30-3.redhat_3.el7jwsRHSA-2021:4861
Red Hatjboss_enterprise_web_server:5.6::el7jws5-tomcat-vault, jws5-tomcat-vault-javadoc0:1.1.8-4.Final_redhat_00004.1.el7jwsRHSA-2021:4861
Red Hatjboss_enterprise_web_server:5.6::el8jws5-tomcat, jws5-tomcat-lib, jws5-tomcat-javadoc and 7 more0:9.0.50-3.redhat_00004.1.el8jwsRHSA-2021:4861
Red Hatjboss_enterprise_web_server:5.6::el8jws5-tomcat-native, jws5-tomcat-native-debuginfo0:1.2.30-3.redhat_3.el8jwsRHSA-2021:4861
Red Hatjboss_enterprise_web_server:5.6::el8jws5-tomcat-vault, jws5-tomcat-vault-javadoc0:1.1.8-4.Final_redhat_00004.1.el8jwsRHSA-2021:4861
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 3 moretomcat9.0.36-4.63.1SUSE-SU-2021:3669-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server 15-LTSS and 1 moretomcat9.0.36-3.84.1SUSE-SU-2021:3670-1
SUSELinux Enterprise Module for Web and Scripting 15 SP2, Linux Enterprise Module for Web and Scripting 15 SP3tomcat9.0.36-13.1SUSE-SU-2021:3672-1
SUSELinux Enterprise Server 12 SP4-LTSS, Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP4 and 3 morejavapackages-tools2.0.1-13.1SUSE-SU-2021:3602-1
SUSELinux Enterprise Server 12 SP4-LTSS, Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP4 and 3 moretomcat9.0.36-3.71.1SUSE-SU-2021:3602-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5tomcat9.0.115-3.160.1SUSE-SU-2026:1058-1
openSUSELeap 15.2tomcat9.0.36-lp152.2.25.1openSUSE-SU-2021:1490-1
openSUSELeap 15.3tomcat9.0.36-13.1openSUSE-SU-2021:3672-1
openSUSETumbleweedtomcat9.0.43-2.1openSUSE-SU-2024:11618-1
openSUSETumbleweedtomcat1010.1.14-1.1openSUSE-SU-2024:13441-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Low.

Red Hat's statement

Red Hat OpenStack Platform's OpenDaylight will not be updated for this flaw because it was deprecated as of OpenStack Platform 14 and is only receiving security fixes for Critical flaws.

ProductPackageStateAdvisory
Red Hat Fuse 7.11tomcatFixed 2022-07-07RHSA-2022:5532
Red Hat JBoss Web Server 5tomcatFixed 2021-11-30RHSA-2021:4863
Red Hat JBoss Web Server 5.6 on RHEL 7jws5-tomcat-0:9.0.50-3.redhat_00004.1.el7jwsFixed 2021-11-30RHSA-2021:4861
Red Hat JBoss Web Server 5.6 on RHEL 7jws5-tomcat-native-0:1.2.30-3.redhat_3.el7jwsFixed 2021-11-30RHSA-2021:4861
Red Hat JBoss Web Server 5.6 on RHEL 7jws5-tomcat-vault-0:1.1.8-4.Final_redhat_00004.1.el7jwsFixed 2021-11-30RHSA-2021:4861
Red Hat JBoss Web Server 5.6 on RHEL 8jws5-tomcat-0:9.0.50-3.redhat_00004.1.el8jwsFixed 2021-11-30RHSA-2021:4861
Red Hat JBoss Web Server 5.6 on RHEL 8jws5-tomcat-native-0:1.2.30-3.redhat_3.el8jwsFixed 2021-11-30RHSA-2021:4861
Red Hat JBoss Web Server 5.6 on RHEL 8jws5-tomcat-vault-0:1.1.8-4.Final_redhat_00004.1.el8jwsFixed 2021-11-30RHSA-2021:4861
Red Hat Support for Spring Boot 2.5.10tomcatFixed 2022-04-12RHSA-2022:1179
Red Hat Decision Manager 7tomcatNot affected
Red Hat Enterprise Linux 6tomcat6Not affected
Red Hat Enterprise Linux 7tomcatNot affected
Red Hat Enterprise Linux 8pki-deps:10.6/pki-servlet-engineNot affected
Red Hat JBoss Data Grid 6jbosswebNot affected
Red Hat JBoss Data Virtualization 6jbosswebNot affected
Red Hat JBoss Enterprise Application Platform 6jbosswebNot affected
Red Hat JBoss Fuse 6tomcatOut of support scope
Red Hat JBoss Web Server 3tomcatOut of support scope
Red Hat OpenStack Platform 10 (Newton)opendaylightOut of support scope
Red Hat OpenStack Platform 13 (Queens)opendaylightOut of support scope
1 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-30640.

Attack patterns (CAPEC)

  • CAPEC-73 User-Controlled Filename Likelihood: High · Severity: High
  • CAPEC-81 Web Server Logs Tampering Likelihood: Medium · Severity: High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-104 Cross Zone Scripting Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON