CVE-2021-30640Auth weakness in JNDIRealm
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.
What to do
Fixed builds are available from Debian, Maven, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | tomcat9 | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | tomcat9 | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | tomcat9 | Fixed | 9.0.31-1ubuntu0.2 | UBUNTU-CVE-2021-30640 |
| Ubuntu 18.04 | tomcat8 | Fix pending | UBUNTU-CVE-2021-30640 | |
| Ubuntu 18.04 | tomcat9 | Fixed | 9.0.16-3ubuntu0.18.04.2 | UBUNTU-CVE-2021-30640 |
| Ubuntu 16.04 | tomcat6 | Fix pending | ||
| Ubuntu 16.04 | tomcat7 | Fix pending | UBUNTU-CVE-2021-30640 | |
| Ubuntu 16.04 | tomcat8 | Fix pending | UBUNTU-CVE-2021-30640 | |
| Ubuntu 14.04 | tomcat6 | Fix pending | UBUNTU-CVE-2021-30640 | |
| Ubuntu 14.04 | tomcat7 | Fix pending | UBUNTU-CVE-2021-30640 | |
| Debian 14 | tomcat9 | Fixed | 9.0.43-2 | DEBIAN-CVE-2021-30640 |
| Debian 13 | tomcat9 | Fixed | 9.0.43-2 | DEBIAN-CVE-2021-30640 |
| Debian 12 | tomcat9 | Fixed | 9.0.43-2 | DEBIAN-CVE-2021-30640 |
| Red Hat Enterprise Linux 8 | pki-servlet-4.0-api | Not affected | ||
| Red Hat Enterprise Linux 8 | pki-servlet-engine | Not affected | ||
| Red Hat Enterprise Linux 7 | tomcat | Not affected | ||
| Red Hat Enterprise Linux 7 | tomcat-admin-webapps | Not affected | ||
| Red Hat Enterprise Linux 7 | tomcat-docs-webapp | Not affected | ||
| Red Hat Enterprise Linux 7 | tomcat-el-2.2-api | Not affected | ||
| Red Hat Enterprise Linux 7 | tomcat-javadoc | Not affected | ||
| Red Hat Enterprise Linux 7 | tomcat-jsp-2.2-api | Not affected | ||
| Red Hat Enterprise Linux 7 | tomcat-jsvc | Not affected | ||
| Red Hat Enterprise Linux 7 | tomcat-lib | Not affected | ||
| Red Hat Enterprise Linux 7 | tomcat-servlet-3.0-api | Not affected | ||
| Red Hat Enterprise Linux 7 | tomcat-webapps | Not affected | ||
| Red Hat Enterprise Linux 6 | tomcat6 | Not affected | ||
| Red Hat Enterprise Linux 6 | tomcat6-admin-webapps | Not affected | ||
| Red Hat Enterprise Linux 6 | tomcat6-docs-webapp | Not affected | ||
| Red Hat Enterprise Linux 6 | tomcat6-el-2.1-api | Not affected | ||
| Red Hat Enterprise Linux 6 | tomcat6-javadoc | Not affected | ||
| Red Hat Enterprise Linux 6 | tomcat6-jsp-2.1-api | Not affected | ||
| Red Hat Enterprise Linux 6 | tomcat6-lib | Not affected | ||
| Red Hat Enterprise Linux 6 | tomcat6-log4j | Not affected | ||
| Red Hat Enterprise Linux 6 | tomcat6-servlet-2.5-api | Not affected | ||
| Red Hat Enterprise Linux 6 | tomcat6-webapps | Not affected | ||
| Maven library | org.apache.tomcat:tomcat | Fixed | 9.0.45 | GHSA-36qh-35cm-5w2w |
What the vendor says
As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Apache Software Foundation Apache Tomcat: affected: 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
Vendor advisories:
- https://www.debian.org/security/2021/dsa-4952 (vendor-advisory)
- https://www.debian.org/security/2021/dsa-4986 (vendor-advisory)
- https://security.gentoo.org/glsa/202208-34 (vendor-advisory)
References
- https://lists.apache.org/thread.html/r59f9ef03929d32120f91f4ea7e6e79edd5688d75d0a9b65fd26d1fe8%40%3Cannounce.tomcat.apache.org%3E
- https://www.oracle.com//security-alerts/cpujul2021.html
- https://lists.debian.org/debian-lts-announce/2021/08/msg00009.html
- https://www.debian.org/security/2021/dsa-4952
- https://www.debian.org/security/2021/dsa-4986
- https://www.oracle.com/security-alerts/cpuoct2021.html
- https://security.netapp.com/advisory/ntap-20210827-0007/
- https://www.oracle.com/security-alerts/cpujan2022.html
- https://security.gentoo.org/glsa/202208-34
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.