CVE-2021-30640 Auth weakness in JNDIRealm

Medium 6.5 Published Updated

Attackers can bypass authentication or lockout protections in Apache Tomcat by manipulating JNDI Realm username variations.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-30640?

CVE-2021-30640 is a medium-severity authentication bypass vulnerability in Apache Tomcat, published on 12 Jul 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-116

Which versions are affected by CVE-2021-30640?

7 open source packages ship an affected version, including org.apache.tomcat:tomcat and tomcat. It affects 7 products.

PackageAffectedFixed in
org.apache.tomcat:tomcat MavenFrom 10.0.0-M110.0.5
org.apache.tomcat:tomcat MavenFrom 10.0.0-M110.0.5
org.apache.tomcat:tomcat MavenFrom 8.5.08.5.65
org.apache.tomcat:tomcat MavenFrom 8.5.08.5.65
org.apache.tomcat:tomcat MavenFrom 9.0.0M19.0.45
org.apache.tomcat:tomcat MavenFrom 9.0.0M19.0.45
1 more packages
tomcat BitnamiFrom 7.0.07.0.109, 8.5.66, 9.0.46, 10.0.6

Products include Apache Tomcat, Debian Debian Linux, Oracle Communications Cloud Native Core Policy, Oracle Communications Diameter Signaling Router, Oracle Communications Pricing Design Center, Oracle Hospitality Cruise Shipboard Property Management System and 1 more.

How do I fix CVE-2021-30640?

Upgrade org.apache.tomcat:tomcat to a fixed version for your release line: 10.0.5, 8.5.65 or 9.0.45.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2021-30640 being exploited?

There is no known exploitation of CVE-2021-30640 in the wild and no public exploit code.

All Apache Tomcat vulnerabilities

Sources

Also known as BIT-tomcat-2021-30640, DEBIAN-CVE-2021-30640, GHSA-36qh-35cm-5w2w, OESA-2021-1299, UBUNTU-CVE-2021-30640.

Is CVE-2021-30640 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free