CVE-2021-30640: 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.

Medium CVSS 6.5

CVE id
CVE-2021-30640
Published
Last modified

Affected packages

PackageAffected versionsFixed in
Apache Tomcat
Runtimes and servers
>= 7.0.0, < 7.0.109
>= 8.5.0, < 8.5.66
>= 9.0.0, < 9.0.46
>= 10.0.0, < 10.0.6
7.0.109, 8.5.66, 9.0.46, 10.0.6

How to fix it

Upgrade Apache Tomcat to the fixed release of the line you run: 7.0.109, 8.5.66, 9.0.46, 10.0.6.

catalina.sh version
  • Install the patched Tomcat release of your branch (the tomcat image tag, or your tomcat packages) and restart it.

A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.

Details

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.

References

Am I affected?

Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.

or paste its content

Needed when you paste. package.json and pyproject.toml only have version ranges: use the lockfile next to them.

Only package names and versions are checked; the file itself is not kept. We use your email to send this report and nothing else unless you tick the box above. Privacy policy.

About this data

Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.