# CVE-2021-30640: Auth weakness in JNDIRealm

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 9.33%, higher than 95% of CVEs (2026-12-01)
- Published: 2021-07-12T14:55:13.000Z
- Modified: 2026-10-08T21:17:35.173Z
- Also known as: GHSA-36qh-35cm-5w2w, BIT-TOMCAT-2021-30640
- Weaknesses: CWE-116, CWE-287, CWE-289
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- 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
- org.apache.tomcat:tomcat (Maven): from 10.0.0-M1 before 10.0.5; from 9.0.0M1 before 9.0.45; from 8.5.0 before 8.5.65
- apache tomcat: from 7.0.0 before 7.0.109; from 8.5.0 before 8.5.66; from 9.0.0 before 9.0.46; from 10.0.0 before 10.0.6
- oracle communications_cloud_native_core_policy: 1.14.0
- oracle communications_diameter_signaling_router: from 8.0.0 up to 8.5.0
- oracle communications_pricing_design_center: 12.0.0.3.0
- oracle hospitality_cruise_shipboard_property_management_system: 20.1.0
- oracle tekelec_platform_distribution: from 7.4.0 up to 7.7.1
- debian debian_linux: 9.0; 10.0; 11.0
- tomcat (Bitnami): from 7.0.0 before 7.0.109; from 8.5.0 before 8.5.66; from 9.0.0 before 9.0.46; from 10.0.0 before 10.0.6

## Every score

- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N`
- NVD: CVSS:2.0 5.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://lists.apache.org/thread.html/r59f9ef03929d32120f91f4ea7e6e79edd5688d75d0a9b65fd26d1fe8%40%3Cannounce.tomcat.apache.org%3E> (advisory, mailing-list, vendor-advisory, web)
- <https://www.oracle.com//security-alerts/cpujul2021.html> (advisory, third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2021/08/msg00009.html> (advisory, mailing-list, third-party-advisory, web)
- <https://www.debian.org/security/2021/dsa-4952> (advisory, third-party-advisory, vendor-advisory, web)
- <https://www.debian.org/security/2021/dsa-4986> (advisory, third-party-advisory, vendor-advisory, web)
- <https://www.oracle.com/security-alerts/cpuoct2021.html> (advisory, patch, third-party-advisory, web)
- <https://security.netapp.com/advisory/ntap-20210827-0007/> (advisory, third-party-advisory)
- <https://www.oracle.com/security-alerts/cpujan2022.html> (advisory, patch, third-party-advisory, web)
- <https://security.gentoo.org/glsa/202208-34> (advisory, third-party-advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-30640> (advisory, web)
- <https://security.netapp.com/advisory/ntap-20210827-0007> (web)

## Sources

- CVE List: [CVE-2021-30640](https://www.cve.org/CVERecord?id=CVE-2021-30640), CVE Terms of Use, modified 2026-10-08
- GitHub Advisory Database: [GHSA-36qh-35cm-5w2w](https://github.com/advisories/GHSA-36qh-35cm-5w2w), CC-BY-4.0, modified 2024-02-19
- NVD: [CVE-2021-30640](https://nvd.nist.gov/vuln/detail/CVE-2021-30640), Public domain, modified 2026-10-08
- Bitnami Vulnerability Database: [BIT-TOMCAT-2021-30640](https://osv.dev/vulnerability/BIT-TOMCAT-2021-30640), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-30640 · Whole record: https://cve.day/CVE-2021-30640.json · Rebuilt by cve.day 2026-11-25T22:58:02.513Z
