Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2021-30640

tomcat: JNDI realm authentication weakness

Overview

Published
12 Jul 2021
Modified
8 Oct 2026
Medium CVE
4 Registry packages
41 OS packages
6 Linux distributions
Yes Fix available

Description

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.

Source: OX vulnerability database

Severity

6.5 · MEDIUM

CVSS 3.1 base score, scored by NVD.

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

Weakness: CWE-116

Affected packages · 4

Packages affected by CVE-2021-30640
EcosystemPackageVulnerableFixed in
Bitnami tomcat >=7.0.0, <7.0.109>=8.5.0, <8.5.66>=9.0.0, <9.0.46>=10.0.0, <10.0.6 7.0.1098.5.669.0.4610.0.6
Maven org.apache.tomcat:tomcat >=10.0.0-M1, <10.0.5>=9.0.0M1, <9.0.45>=8.5.0, <8.5.65 10.0.59.0.458.5.65
Seal Maven org.apache.tomcat.embed:tomcat-embed-core >=9.0.39+sp0, <9.0.39+sp2 9.0.39+sp2
Seal Maven seal.sp1.org.apache.tomcat.embed:tomcat-embed-core >=9.0.39, <9.0.39+sp999 9.0.39+sp999

Open a package to see all its vulnerabilities.

Operating systems · 24 fixes

Red Hat 3 releases · 4 packages

eol 1 fixed 6 affected 1
opendaylight jws5-tomcat-vault jws5-tomcat-native jws5-tomcat
Red Hat fixes for CVE-2021-30640
ReleasePackageFixed inAdvisory
7 opendaylight eol —
7 jws5-tomcat-vault +1 0:1.1.8-4.Final_redhat_00004.1.el7jws RHSA-2021:4861
7 jws5-tomcat-native 0:1.2.30-3.redhat_3.el7jws RHSA-2021:4861
7 jws5-tomcat +11 0:9.0.50-3.redhat_00004.1.el7jws RHSA-2021:4861
8 jws5-tomcat-vault +1 0:1.1.8-4.Final_redhat_00004.1.el8jws RHSA-2021:4861
8 jws5-tomcat-native 0:1.2.30-3.redhat_3.el8jws RHSA-2021:4861

2 more rows

SUSE Linux Enterprise 1 release · 2 packages

fixed 2
javapackages-tools tomcat
SUSE Linux Enterprise fixes for CVE-2021-30640
ReleasePackageFixed inAdvisory
12.5 javapackages-tools 2.0.1-13.1 SUSE-SU-2021:3602-1
12.5 tomcat +8 9.0.36-3.71.1 SUSE-SU-2021:3602-1

debian 6 releases · 2 packages

fixed 6
tomcat9 tomcat8
debian fixes for CVE-2021-30640
ReleasePackageFixed in
10 tomcat9 9.0.31-1~deb10u6
11 tomcat9 9.0.43-2~deb11u1
12 tomcat9 9.0.43-2
13 tomcat9 9.0.43-2
14 tomcat9 9.0.43-2
9 tomcat8 8.5.54-0+deb9u7

echo 1 release · 1 package

fixed 1
tomcat9
echo fixes for CVE-2021-30640
ReleasePackageFixed in
tomcat9 9.0.43-2

openSUSE 1 release · 2 packages

fixed 2
tomcat10 tomcat
openSUSE fixes for CVE-2021-30640
ReleasePackageFixed inAdvisory
Tumbleweed tomcat10 +10 10.1.14-1.1 openSUSE-SU-2024:13441-1
Tumbleweed tomcat +10 9.0.43-2.1 openSUSE-SU-2024:11618-1

ubuntu 4 releases · 2 packages

fixed 4 affected 1
tomcat9 tomcat8
ubuntu fixes for CVE-2021-30640
ReleasePackageFixed in
18.04 tomcat9 9.0.16-3ubuntu0.18.04.2
18.04-ESM tomcat8 affected
18.04-ESM tomcat9 9.0.16-3ubuntu0.18.04.2
20.04 tomcat9 9.0.31-1ubuntu0.2
20.04-ESM tomcat9 9.0.31-1ubuntu0.2

References

Show all 31 references

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.