{"id":"CVE-2021-30640","state":"PUBLISHED","title":"Auth weakness in JNDIRealm","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.","publishedAt":"2021-07-12T14:55:13.000Z","updatedAt":"2026-10-08T21:03:16.938Z","severity":null,"assigner":"apache","products":["Apache Software Foundation Apache Tomcat"],"affected":[{"vendor":"Apache Software Foundation","product":"Apache Tomcat","versions":[{"version":"Apache Tomcat 10 10.0.0-M1 to 10.0.5","status":"affected"},{"version":"Apache Tomcat 9 9.0.0.M1 to 9.0.45","status":"affected"},{"version":"Apache Tomcat 8.5 8.5.0 to 8.5.65","status":"affected"},{"version":"Apache Tomcat 7 7.0.0 to 7.0.108","status":"affected"}]}],"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"],"weaknesses":[],"ingestedAt":"2026-10-29T19:48:26.823Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/30xxx/CVE-2021-30640.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2021-30640","state":"PUBLISHED","datePublished":"2021-07-12T14:55:13.000Z","dateUpdated":"2026-10-08T21:03:16.938Z","assignerShortName":"apache","assignerOrgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09","dateReserved":"2021-04-13T00:00:00.000Z"},"containers":{"cna":{"title":"Auth weakness in JNDIRealm","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Apache Software Foundation","product":"Apache Tomcat","versions":[{"version":"Apache Tomcat 10 10.0.0-M1 to 10.0.5","status":"affected"},{"version":"Apache Tomcat 9 9.0.0.M1 to 9.0.45","status":"affected"},{"version":"Apache Tomcat 8.5 8.5.0 to 8.5.65","status":"affected"},{"version":"Apache Tomcat 7 7.0.0 to 7.0.108","status":"affected"}]}],"references":[{"url":"https://lists.apache.org/thread.html/r59f9ef03929d32120f91f4ea7e6e79edd5688d75d0a9b65fd26d1fe8%40%3Cannounce.tomcat.apache.org%3E","tags":["x_refsource_MISC"]},{"url":"https://www.oracle.com//security-alerts/cpujul2021.html","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/08/msg00009.html","name":"[debian-lts-announce] 20210805 [SECURITY] [DLA 2733-1] tomcat8 security update","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://www.debian.org/security/2021/dsa-4952","name":"DSA-4952","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://www.debian.org/security/2021/dsa-4986","name":"DSA-4986","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://www.oracle.com/security-alerts/cpuoct2021.html","tags":["x_refsource_MISC"]},{"url":"https://security.netapp.com/advisory/ntap-20210827-0007/","tags":["x_refsource_CONFIRM"]},{"url":"https://www.oracle.com/security-alerts/cpujan2022.html","tags":["x_refsource_MISC"]},{"url":"https://security.gentoo.org/glsa/202208-34","name":"GLSA-202208-34","tags":["vendor-advisory","x_refsource_GENTOO"]}],"problemTypes":[{"descriptions":[{"description":"Authentication weaknees","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"apache","dateUpdated":"2022-08-21T04:07:59.000Z","orgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09"},"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 0.0.9"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security@apache.org","ID":"CVE-2021-30640","STATE":"PUBLIC","TITLE":"Auth weakness in JNDIRealm"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"Apache Tomcat","version":{"version_data":[{"version_affected":"=","version_name":"Apache Tomcat 10","version_value":"10.0.0-M1 to 10.0.5"},{"version_affected":"=","version_name":"Apache Tomcat 9","version_value":"9.0.0.M1 to 9.0.45"},{"version_affected":"=","version_name":"Apache Tomcat 8.5","version_value":"8.5.0 to 8.5.65"},{"version_affected":"=","version_name":"Apache Tomcat 7","version_value":"7.0.0 to 7.0.108"}]}}]},"vendor_name":"Apache Software Foundation"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"generator":{"engine":"Vulnogram 0.0.9"},"impact":[{}],"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Authentication weaknees"}]}]},"references":{"reference_data":[{"name":"https://lists.apache.org/thread.html/r59f9ef03929d32120f91f4ea7e6e79edd5688d75d0a9b65fd26d1fe8%40%3Cannounce.tomcat.apache.org%3E","refsource":"MISC","url":"https://lists.apache.org/thread.html/r59f9ef03929d32120f91f4ea7e6e79edd5688d75d0a9b65fd26d1fe8%40%3Cannounce.tomcat.apache.org%3E"},{"name":"https://www.oracle.com//security-alerts/cpujul2021.html","refsource":"MISC","url":"https://www.oracle.com//security-alerts/cpujul2021.html"},{"name":"[debian-lts-announce] 20210805 [SECURITY] [DLA 2733-1] tomcat8 security update","refsource":"MLIST","url":"https://lists.debian.org/debian-lts-announce/2021/08/msg00009.html"},{"name":"DSA-4952","refsource":"DEBIAN","url":"https://www.debian.org/security/2021/dsa-4952"},{"name":"DSA-4986","refsource":"DEBIAN","url":"https://www.debian.org/security/2021/dsa-4986"},{"name":"https://www.oracle.com/security-alerts/cpuoct2021.html","refsource":"MISC","url":"https://www.oracle.com/security-alerts/cpuoct2021.html"},{"name":"https://security.netapp.com/advisory/ntap-20210827-0007/","refsource":"CONFIRM","url":"https://security.netapp.com/advisory/ntap-20210827-0007/"},{"name":"https://www.oracle.com/security-alerts/cpujan2022.html","refsource":"MISC","url":"https://www.oracle.com/security-alerts/cpujan2022.html"},{"name":"GLSA-202208-34","refsource":"GENTOO","url":"https://security.gentoo.org/glsa/202208-34"}]},"source":{"discovery":"UNKNOWN"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://lists.apache.org/thread.html/r59f9ef03929d32120f91f4ea7e6e79edd5688d75d0a9b65fd26d1fe8%40%3Cannounce.tomcat.apache.org%3E","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://www.oracle.com//security-alerts/cpujul2021.html","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/08/msg00009.html","name":"[debian-lts-announce] 20210805 [SECURITY] [DLA 2733-1] tomcat8 security update","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"https://www.debian.org/security/2021/dsa-4952","name":"DSA-4952","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"]},{"url":"https://www.debian.org/security/2021/dsa-4986","name":"DSA-4986","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"]},{"url":"https://www.oracle.com/security-alerts/cpuoct2021.html","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20210827-0007/","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://www.oracle.com/security-alerts/cpujan2022.html","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://security.gentoo.org/glsa/202208-34","name":"GLSA-202208-34","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T22:40:31.832Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2021-30640","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2026-10-08T20:56:22.590191Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-08T21:03:16.938Z"}}]}}}