Skip to content
OpenAdvisories
Medium · 6.5 CVE-2021-30640 BIT-tomcat-2021-30640EUVD-2021-1533GHSA-36qh-35cm-5w2w

Auth weakness in JNDIRealm

Published Jul 12, 2021 · Updated Oct 8, 2026 · Assigned by apache

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.

Affected products

VendorProductAffectedFixed
Apache Software Foundation Apache Tomcat Apache Tomcat 10 10.0.0-M1 to 10.0.5, Apache Tomcat 9 9.0.0.M1 to 9.0.45, Apache Tomcat 8.5 8.5.0 to 8.5.65, Apache Tomcat 7 7.0.0 to 7.0.108 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 tomcat9 9.0.43-2 —
Debian 13 tomcat9 9.0.43-2 —
Debian 12 tomcat9 9.0.43-2 —
Debian 10 tomcat9 9.0.31-1~deb10u5 DSA-4952-1
Debian 9 tomcat8 8.5.54-0+deb9u7 DLA-2733-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS tomcat9 9.0.31-1ubuntu0.2 USN-5360-1
Ubuntu 18.04 LTS tomcat9 9.0.16-3ubuntu0.18.04.2 USN-5360-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS tomcat8 No fix yet —
Ubuntu Pro 16.04 LTS tomcat7 +1 No fix yet —
Ubuntu Pro 14.04 LTS tomcat6 +1 No fix yet —
ReleasePackageFixed inAdvisory
Red Hat JBoss Web Server 5 jws5-tomcat +11 9.0.50-3.redhat_00004.1.el7jws RHSA-2021:4861
Red Hat JBoss Web Server 5 jws5-tomcat-native 1.2.30-3.redhat_3.el7jws RHSA-2021:4861
Red Hat JBoss Web Server 5 jws5-tomcat-vault +1 1.1.8-4.Final_redhat_00004.1.el7jws RHSA-2021:4861
ReleasePackageFixed inAdvisory
SLES 15 SP3 tomcat 9.0.36-13.1 SUSE-SU-2021:3672-1
SLES 15 SP2 tomcat 9.0.36-13.1 SUSE-SU-2021:3672-1
SLES 15 SP1 tomcat 9.0.36-4.63.1 SUSE-SU-2021:3669-1
SLES 15 tomcat 9.0.36-3.84.1 SUSE-SU-2021:3670-1
SLES 12 SP5 javapackages-tools 2.0.1-13.1 SUSE-SU-2021:3602-1
SLES 12 SP5 tomcat 9.0.36-3.71.1 SUSE-SU-2026:1058-1, SUSE-SU-2021:3602-1
Show 10 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP4 javapackages-tools 2.0.1-13.1 SUSE-SU-2021:3602-1
SLES 12 SP4 tomcat 9.0.36-3.71.1 SUSE-SU-2021:3602-1
SLES for SAP 15 SP1 tomcat 9.0.36-4.63.1 SUSE-SU-2021:3669-1
SLES for SAP 15 tomcat 9.0.36-3.84.1 SUSE-SU-2021:3670-1
SLES for SAP 12 SP5 javapackages-tools 2.0.1-13.1 SUSE-SU-2021:3602-1
SLES for SAP 12 SP5 tomcat 9.0.36-3.71.1 SUSE-SU-2021:3602-1
SLES for SAP 12 SP4 javapackages-tools 2.0.1-13.1 SUSE-SU-2021:3602-1
SLES for SAP 12 SP4 tomcat 9.0.36-3.71.1 SUSE-SU-2021:3602-1
SLE HPC 15 SP1 tomcat 9.0.36-4.63.1 SUSE-SU-2021:3669-1
SLE HPC 15 tomcat 9.0.36-3.84.1 SUSE-SU-2021:3670-1
SUSE OpenStack Cloud Crowbar 9 javapackages-tools 2.0.1-13.1 SUSE-SU-2021:3602-1
SUSE OpenStack Cloud Crowbar 9 tomcat 9.0.36-3.71.1 SUSE-SU-2021:3602-1
SUSE OpenStack Cloud 9 javapackages-tools 2.0.1-13.1 SUSE-SU-2021:3602-1
SUSE OpenStack Cloud 9 tomcat 9.0.36-3.71.1 SUSE-SU-2021:3602-1
SUSE Enterprise Storage 6 tomcat 9.0.36-4.63.1 SUSE-SU-2021:3669-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed tomcat 9.0.43-2.1 openSUSE-SU-2024:11618-1
openSUSE Tumbleweed tomcat10 10.1.14-1.1 openSUSE-SU-2024:13441-1
openSUSE Leap 15.3 tomcat 9.0.36-13.1 openSUSE-SU-2021:3672-1
openSUSE Leap 15.2 tomcat 9.0.36-lp152.2.25.1 openSUSE-SU-2021:1490-1

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.tomcat:tomcat >= 10.0.0-M1, < 10.0.5 10.0.5 GHSA-36qh-35cm-5w2w
Maven org.apache.tomcat:tomcat >= 9.0.0M1, < 9.0.45 9.0.45 GHSA-36qh-35cm-5w2w
Maven org.apache.tomcat:tomcat >= 8.5.0, < 8.5.65 8.5.65 GHSA-36qh-35cm-5w2w

Advisories 18

References