CVE-2021-30640 Auth weakness in JNDIRealm
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.
| Package | Affected | Fixed in |
|---|---|---|
org.apache.tomcat:tomcat Maven | From 10.0.0-M1 | 10.0.5 |
org.apache.tomcat:tomcat Maven | From 10.0.0-M1 | 10.0.5 |
org.apache.tomcat:tomcat Maven | From 8.5.0 | 8.5.65 |
org.apache.tomcat:tomcat Maven | From 8.5.0 | 8.5.65 |
org.apache.tomcat:tomcat Maven | From 9.0.0M1 | 9.0.45 |
org.apache.tomcat:tomcat Maven | From 9.0.0M1 | 9.0.45 |
1 more packages
tomcat Bitnami | From 7.0.0 | 7.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.
Other vulnerabilities in Apache Tomcat
Sources
Also known as BIT-tomcat-2021-30640, DEBIAN-CVE-2021-30640, GHSA-36qh-35cm-5w2w, OESA-2021-1299, UBUNTU-CVE-2021-30640.