# CVE-2021-30640: libtomcat9-embed-java: A vulnerability in the JNDI Realm of Apache Tomcat allows an attacker to authenticate using variations of a valid use...

CVE-2021-30640 is fixed in 8 products on 1 platform, first by libtomcat9-embed-java 9.0.16-3ubuntu0.18.04.2, released September 16, 2021. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2021-30640
- Priority: Routine
- CVSS: n/a (Medium)
- EPSS: 0.0989
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jul 12, 2021

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

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | libtomcat9-embed-java Ubuntu 18.04.6 LTS (bionic) | 9.0.16-3ubuntu0.18.04.2 | [libtomcat9-embed-java 9.0.16-3ubuntu0.18.04.2](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libtomcat9-embed-java-9.0.16-3ubuntu0.18.04.2.md) | Sep 16, 2021 |
| Linux | libtomcat9-embed-java Ubuntu 20.04 LTS (focal) | 9.0.31-1ubuntu0.2 | [libtomcat9-embed-java 9.0.31-1ubuntu0.2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libtomcat9-embed-java-9.0.31-1ubuntu0.2.md) | Sep 16, 2021 |
| Linux | libtomcat9-java Ubuntu 18.04.6 LTS (bionic) | 9.0.16-3ubuntu0.18.04.2 | [libtomcat9-java 9.0.16-3ubuntu0.18.04.2](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libtomcat9-java-9.0.16-3ubuntu0.18.04.2.md) | Sep 16, 2021 |
| Linux | libtomcat9-java Ubuntu 20.04 LTS (focal) | 9.0.31-1ubuntu0.2 | [libtomcat9-java 9.0.31-1ubuntu0.2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libtomcat9-java-9.0.31-1ubuntu0.2.md) | Sep 16, 2021 |
| Linux | tomcat9 Ubuntu 18.04.6 LTS (bionic) | 9.0.16-3ubuntu0.18.04.2 | [tomcat9 9.0.16-3ubuntu0.18.04.2](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-tomcat9-9.0.16-3ubuntu0.18.04.2.md) | Sep 16, 2021 |
| Linux | tomcat9 Ubuntu 20.04 LTS (focal) | 9.0.31-1ubuntu0.2 | [tomcat9 9.0.31-1ubuntu0.2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-tomcat9-9.0.31-1ubuntu0.2.md) | Sep 16, 2021 |
| Linux | tomcat9-admin Ubuntu 18.04.6 LTS (bionic) | 9.0.16-3ubuntu0.18.04.2 | [tomcat9-admin 9.0.16-3ubuntu0.18.04.2](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-tomcat9-admin-9.0.16-3ubuntu0.18.04.2.md) | Sep 16, 2021 |
| Linux | tomcat9-admin Ubuntu 20.04 LTS (focal) | 9.0.31-1ubuntu0.2 | [tomcat9-admin 9.0.31-1ubuntu0.2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-tomcat9-admin-9.0.31-1ubuntu0.2.md) | Sep 16, 2021 |
| Linux | tomcat9-common Ubuntu 18.04.6 LTS (bionic) | 9.0.16-3ubuntu0.18.04.2 | [tomcat9-common 9.0.16-3ubuntu0.18.04.2](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-tomcat9-common-9.0.16-3ubuntu0.18.04.2.md) | Sep 16, 2021 |
| Linux | tomcat9-common Ubuntu 20.04 LTS (focal) | 9.0.31-1ubuntu0.2 | [tomcat9-common 9.0.31-1ubuntu0.2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-tomcat9-common-9.0.31-1ubuntu0.2.md) | Sep 16, 2021 |
| Linux | tomcat9-docs Ubuntu 18.04.6 LTS (bionic) | 9.0.16-3ubuntu0.18.04.2 | [tomcat9-docs 9.0.16-3ubuntu0.18.04.2](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-tomcat9-docs-9.0.16-3ubuntu0.18.04.2.md) | Sep 16, 2021 |
| Linux | tomcat9-docs Ubuntu 20.04 LTS (focal) | 9.0.31-1ubuntu0.2 | [tomcat9-docs 9.0.31-1ubuntu0.2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-tomcat9-docs-9.0.31-1ubuntu0.2.md) | Sep 16, 2021 |
| Linux | tomcat9-examples Ubuntu 18.04.6 LTS (bionic) | 9.0.16-3ubuntu0.18.04.2 | [tomcat9-examples 9.0.16-3ubuntu0.18.04.2](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-tomcat9-examples-9.0.16-3ubuntu0.18.04.2.md) | Sep 16, 2021 |
| Linux | tomcat9-examples Ubuntu 20.04 LTS (focal) | 9.0.31-1ubuntu0.2 | [tomcat9-examples 9.0.31-1ubuntu0.2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-tomcat9-examples-9.0.31-1ubuntu0.2.md) | Sep 16, 2021 |
| Linux | tomcat9-user Ubuntu 18.04.6 LTS (bionic) | 9.0.16-3ubuntu0.18.04.2 | [tomcat9-user 9.0.16-3ubuntu0.18.04.2](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-tomcat9-user-9.0.16-3ubuntu0.18.04.2.md) | Sep 16, 2021 |
| Linux | tomcat9-user Ubuntu 20.04 LTS (focal) | 9.0.31-1ubuntu0.2 | [tomcat9-user 9.0.31-1ubuntu0.2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-tomcat9-user-9.0.31-1ubuntu0.2.md) | Sep 16, 2021 |

---

Data as of 2026-11-08T13:06:02Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
