CVE-2021-30640
Auth weakness in JNDIRealm
Reported by apache · Published July 12, 2021
tomcat-embed-core is fixed in 10.0.6, 9.0.46, 8.5.66 and 1 more (Maven Central)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| org.apache.tomcat.embed:tomcat-embed-core | Maven Central | 10.0.6, 9.0.46, 8.5.66, 7.0.109 |
| org.apache.tomcat:tomcat | Maven Central | 10.0.6, 10.0.5, 9.0.46, 9.0.45, 8.5.66, 8.5.65, 7.0.109 |
| tomcat9 | Ubuntu:18.04:LTS | 9.0.16-3ubuntu0.18.04.2 |
| tekelec_platform_distribution | oracle | 7.7.1 |
| tomcat | Bitnami | 10.0.6, 9.0.46, 8.5.66, 7.0.109 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| 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 Software Foundation | Apache Tomcat | 7.0.0, 8.5, 9.0.0.M1 |
| Maven | org.apache.tomcat:tomcat | 7.0.0, 8.5.0, 9.0.0 |
| Maven | org.apache.tomcat.embed:tomcat-embed-core | 10.0.0, 9.0.0, 8.5.0 |
Timeline
- Jul 12, 2021 CVE Published
- Jul 13, 2021 EPSS Score (30 in total, the first dated here)
- Mar 7, 2026 Distribution Patch (32 in total, the first dated here)
- Mar 7, 2026 Security Advisory (42 in total, the first dated here)
- Aug 3, 2026 Coalition ESS Score
- Aug 9, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-30640
vulnetix vdb fixes CVE-2021-30640
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-30640/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- [debian-lts-announce] 20210805 [SECURITY] [DLA 2733-1] tomcat8 security update mailing-listx_refsource_MLIST
- DSA-4952 vendor-advisoryx_refsource_DEBIAN
- DSA-4986 vendor-advisoryx_refsource_DEBIAN
- x_refsource_MISC
- x_refsource_CONFIRM
- x_refsource_MISC
- GLSA-202208-34 vendor-advisoryx_refsource_GENTOO
- https://nvd.nist.gov/vuln/detail/CVE-2021-30640 advisory