Auth weakness in JNDIRealm

Summary

CVECVE-2021-30640
StatePUBLISHED
Assignerapache
Source PriorityCVE Program / NVD first with legacy fallback
Published2021-07-12 15:15:08 UTC
Updated2026-10-08 21:17:35 UTC
DescriptionA 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.

Risk And Classification

Primary CVSS: v3.1 6.5 MEDIUM from [email protected]

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N

Problem Types: CWE-116 | Authentication weaknees


VersionSourceTypeScoreSeverityVector
3.1[email protected]Primary6.5MEDIUMCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N
2.0[email protected]Primary5.8AV:N/AC:M/Au:N/C:P/I:P/A:N

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
High
Availability
None

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N

CVSS v2.0 Breakdown

Access Vector
Network
Access Complexity
Medium
Authentication
None
Confidentiality
Partial
Integrity
Partial
Availability
None

AV:N/AC:M/Au:N/C:P/I:P/A:N

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Apache Tomcat All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Apache Software Foundation Apache Tomcat affected Apache Tomcat 10 10.0.0-M1 to 10.0.5 Not specified
CNA Apache Software Foundation Apache Tomcat affected Apache Tomcat 9 9.0.0.M1 to 9.0.45 Not specified
CNA Apache Software Foundation Apache Tomcat affected Apache Tomcat 8.5 8.5.0 to 8.5.65 Not specified
CNA Apache Software Foundation Apache Tomcat affected Apache Tomcat 7 7.0.0 to 7.0.108 Not specified

References

ReferenceSourceLinkTags
Oracle Critical Patch Update Advisory - October 2021 af854a3a-2127-422b-91ae-364da2661108 www.oracle.com Patch, Third Party Advisory
Oracle Critical Patch Update Advisory - July 2021 af854a3a-2127-422b-91ae-364da2661108 www.oracle.com Third Party Advisory
[SECURITY] [DLA 2733-1] tomcat8 security update af854a3a-2127-422b-91ae-364da2661108 lists.debian.org Mailing List, Third Party Advisory
July 2021 Apache Tomcat Vulnerabilities in NetApp Products | NetApp Product Security af854a3a-2127-422b-91ae-364da2661108 security.netapp.com Third Party Advisory
Oracle Critical Patch Update Advisory - January 2022 af854a3a-2127-422b-91ae-364da2661108 www.oracle.com Patch, Third Party Advisory
Pony Mail! af854a3a-2127-422b-91ae-364da2661108 lists.apache.org Mailing List, Vendor Advisory
Debian -- Security Information -- DSA-4986-1 tomcat9 af854a3a-2127-422b-91ae-364da2661108 www.debian.org Third Party Advisory
Apache Tomcat: Multiple Vulnerabilities (GLSA 202208-34) — Gentoo security af854a3a-2127-422b-91ae-364da2661108 security.gentoo.org Third Party Advisory
Debian -- Security Information -- DSA-4952-1 tomcat9 af854a3a-2127-422b-91ae-364da2661108 www.debian.org Third Party Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 150366 Apache Tomcat Authentication Vulnerability (CVE-2021-30640)
  • 178743 Debian Security Update for tomcat8 (DLA 2733-1)
  • 178746 Debian Security Update for tomcat9 (DSA 4952-1)
  • 179833 Debian Security Update for tomcat9 (CVE-2021-30640)
  • 198724 Ubuntu Security Notification for Tomcat Vulnerabilities (USN-5360-1)
  • 239916 Red Hat Update for red hat jboss web server 5.6.0 (RHSA-2021:4861)
  • 296065 Oracle Solaris 11.4 Support Repository Update (SRU) 39.107.1 Missing (CPUOCT2021)
  • 352801 Amazon Linux Security Advisory for tomcat7: ALAS-2021-1534
  • 356267 Amazon Linux Security Advisory for tomcat : ALASTOMCAT8.5-2023-007
  • 670731 EulerOS Security Update for tomcat (EulerOS-SA-2021-2489)
  • 670762 EulerOS Security Update for tomcat (EulerOS-SA-2021-2520)
  • 670984 EulerOS Security Update for tomcat (EulerOS-SA-2021-2619)
  • 690074 Free Berkeley Software Distribution (FreeBSD) Security Update for tomcat (8b571fb2-f311-11eb-b12b-fc4dd43e2b6a)
  • 710609 Gentoo Linux Apache Tomcat Multiple Vulnerabilities (GLSA 202208-34)
  • 730146 Apache Tomcat Authentication Vulnerability (CVE-2021-30640)
  • 730206 McAfee Web Gateway Multiple Vulnerabilities (WP-3792, WP-4003, WP-4021, WP-4058, WP-4067)
  • 751320 SUSE Enterprise Linux Security Update for tomcat (SUSE-SU-2021:3602-1)
  • 751355 OpenSUSE Security Update for tomcat (openSUSE-SU-2021:3672-1)
  • 751364 SUSE Enterprise Linux Security Update for tomcat (SUSE-SU-2021:3669-1)
  • 751365 SUSE Enterprise Linux Security Update for tomcat (SUSE-SU-2021:3670-1)
  • 751370 OpenSUSE Security Update for tomcat (openSUSE-SU-2021:1490-1)
  • 980361 Java (maven) Security Update for org.apache.tomcat:tomcat (GHSA-36qh-35cm-5w2w)

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report