CVE-2021-30640
tomcat: JNDI realm authentication weakness
Overview
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.
Source: OX vulnerability database
Severity
6.5 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- High
- Availability
- None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N
Weakness: CWE-116
Affected packages · 4
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | tomcat | >=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.1098.5.669.0.4610.0.6 |
| Maven | org.apache.tomcat:tomcat | >=10.0.0-M1, <10.0.5>=9.0.0M1, <9.0.45>=8.5.0, <8.5.65 | 10.0.59.0.458.5.65 |
| Seal Maven | org.apache.tomcat.embed:tomcat-embed-core | >=9.0.39+sp0, <9.0.39+sp2 | 9.0.39+sp2 |
| Seal Maven | seal.sp1.org.apache.tomcat.embed:tomcat-embed-core | >=9.0.39, <9.0.39+sp999 | 9.0.39+sp999 |
Open a package to see all its vulnerabilities.
Operating systems · 24 fixes
Red Hat 3 releases · 4 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | opendaylight | eol | — |
| 7 | jws5-tomcat-vault +1 | 0:1.1.8-4.Final_redhat_00004.1.el7jws | RHSA-2021:4861 |
| 7 | jws5-tomcat-native | 0:1.2.30-3.redhat_3.el7jws | RHSA-2021:4861 |
| 7 | jws5-tomcat +11 | 0:9.0.50-3.redhat_00004.1.el7jws | RHSA-2021:4861 |
| 8 | jws5-tomcat-vault +1 | 0:1.1.8-4.Final_redhat_00004.1.el8jws | RHSA-2021:4861 |
| 8 | jws5-tomcat-native | 0:1.2.30-3.redhat_3.el8jws | RHSA-2021:4861 |
2 more rows
SUSE Linux Enterprise 1 release · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | javapackages-tools | 2.0.1-13.1 | SUSE-SU-2021:3602-1 |
| 12.5 | tomcat +8 | 9.0.36-3.71.1 | SUSE-SU-2021:3602-1 |
debian 6 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 10 | tomcat9 | 9.0.31-1~deb10u6 |
| 11 | tomcat9 | 9.0.43-2~deb11u1 |
| 12 | tomcat9 | 9.0.43-2 |
| 13 | tomcat9 | 9.0.43-2 |
| 14 | tomcat9 | 9.0.43-2 |
| 9 | tomcat8 | 8.5.54-0+deb9u7 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| tomcat9 | 9.0.43-2 |
openSUSE 1 release · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | tomcat10 +10 | 10.1.14-1.1 | openSUSE-SU-2024:13441-1 |
| Tumbleweed | tomcat +10 | 9.0.43-2.1 | openSUSE-SU-2024:11618-1 |
ubuntu 4 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 18.04 | tomcat9 | 9.0.16-3ubuntu0.18.04.2 |
| 18.04-ESM | tomcat8 | affected |
| 18.04-ESM | tomcat9 | 9.0.16-3ubuntu0.18.04.2 |
| 20.04 | tomcat9 | 9.0.31-1ubuntu0.2 |
| 20.04-ESM | tomcat9 | 9.0.31-1ubuntu0.2 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2021-30640
- bz.apache.org https://bz.apache.org/bugzilla/show_bug.cgi?id=65224
- github.com https://github.com/apache/tomcat/commit/0a272b00aed57526dbfc8b881ab253c23c61f100 (8.5.66)
- github.com https://github.com/apache/tomcat/commit/24dfb30076997b640e5123e92c4b8d7f206f609c (8.5.66)
- github.com https://github.com/apache/tomcat/commit/329932012d3a9b95fde0b18618416e659ecffdc0 (9.0.46)
- github.com https://github.com/apache/tomcat/commit/3ce84512ed8783577d9945df28da5a033465b945 (9.0.46)
- github.com https://github.com/apache/tomcat/commit/4e86b4ea0d1a9b00fa93971c31b93ad1bd49c7fe (8.5.66)
- github.com https://github.com/apache/tomcat/commit/6a9129ac9bd06555ce04bb564a76fc3987311f38 (8.5.66)
- github.com https://github.com/apache/tomcat/commit/749f3cc192c68c34f2375509aea087be45fc4434 (9.0.46)
- github.com https://github.com/apache/tomcat/commit/79580e7f70a07c083be07307376511bb864d5a7b (8.5.66)
Show all 31 references
- github.com https://github.com/apache/tomcat/commit/91ecdc61ce3420054c04114baaaf1c1e0cbd5d56 (9.0.46)
- github.com https://github.com/apache/tomcat/commit/ad22db641dcd61c2e8078f658fa709897b5da375 (8.5.66)
- github.com https://github.com/apache/tomcat/commit/b5585a9e5d4fec020cc5ebadb82f899fae22bc43 (9.0.46)
- github.com https://github.com/apache/tomcat/commit/c4df8d44a959a937d507d15e5b1ca35c3dbc41eb (9.0.46)
- github.com https://github.com/apache/tomcat/commit/c6b6e1015ae44c936971b6bf8bce70987935b92e (9.0.46)
- github.com https://github.com/apache/tomcat/commit/c9f21a2a7908c7c4ecd4f9bb495d3ee36a2bd822 (8.5.66)
- github.com https://github.com/apache/tomcat/commit/d3407672774e372fae8b5898d55f85d16f22b972 (8.5.66)
- github.com https://github.com/apache/tomcat/commit/e50067486cf86564175ca0cfdcbf7d209c6df862 (9.0.46)
- lists.apache.org https://lists.apache.org/thread.html/r59f9ef03929d32120f91f4ea7e6e79edd5688d75d0a9b65fd26d1fe8%40%3Cannounce.tomcat.apache.org%3E
- lists.debian.org https://lists.debian.org/debian-lts-announce/2021/08/msg00009.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2021-30640
- security.gentoo.org https://security.gentoo.org/glsa/202208-34
- security.netapp.com https://security.netapp.com/advisory/ntap-20210827-0007
- security.netapp.com https://security.netapp.com/advisory/ntap-20210827-0007/
- ubuntu.com https://ubuntu.com/security/notices/USN-5360-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2021-30640
- www.debian.org https://www.debian.org/security/2021/dsa-4952
- www.debian.org https://www.debian.org/security/2021/dsa-4986
- www.oracle.com https://www.oracle.com//security-alerts/cpujul2021.html
- www.oracle.com https://www.oracle.com/security-alerts/cpujan2022.html
- www.oracle.com https://www.oracle.com/security-alerts/cpuoct2021.html
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.