ubuntu-cve-2021-30640
Vulnerability from osv_ubuntu
Published
2021-07-12 15:15
Modified
2026-07-15 17:28
Summary
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.


{
  "affected": [
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "libservlet2.4-java",
            "binary_version": "6.0.39-1ubuntu0.1+esm3"
          },
          {
            "binary_name": "libservlet2.5-java",
            "binary_version": "6.0.39-1ubuntu0.1+esm3"
          },
          {
            "binary_name": "libtomcat6-java",
            "binary_version": "6.0.39-1ubuntu0.1+esm3"
          },
          {
            "binary_name": "tomcat6",
            "binary_version": "6.0.39-1ubuntu0.1+esm3"
          },
          {
            "binary_name": "tomcat6-admin",
            "binary_version": "6.0.39-1ubuntu0.1+esm3"
          },
          {
            "binary_name": "tomcat6-common",
            "binary_version": "6.0.39-1ubuntu0.1+esm3"
          },
          {
            "binary_name": "tomcat6-docs",
            "binary_version": "6.0.39-1ubuntu0.1+esm3"
          },
          {
            "binary_name": "tomcat6-examples",
            "binary_version": "6.0.39-1ubuntu0.1+esm3"
          },
          {
            "binary_name": "tomcat6-extras",
            "binary_version": "6.0.39-1ubuntu0.1+esm3"
          },
          {
            "binary_name": "tomcat6-user",
            "binary_version": "6.0.39-1ubuntu0.1+esm3"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:14.04:LTS",
        "name": "tomcat6",
        "purl": "pkg:deb/ubuntu/tomcat6@6.0.39-1ubuntu0.1+esm3?arch=source\u0026distro=esm-infra-legacy/trusty"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "6.0.37-1",
        "6.0.39-1",
        "6.0.39-1ubuntu0.1",
        "6.0.39-1ubuntu0.1+esm1",
        "6.0.39-1ubuntu0.1+esm2",
        "6.0.39-1ubuntu0.1+esm3"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "libservlet3.0-java",
            "binary_version": "7.0.52-1ubuntu0.16+esm2"
          },
          {
            "binary_name": "libtomcat7-java",
            "binary_version": "7.0.52-1ubuntu0.16+esm2"
          },
          {
            "binary_name": "tomcat7",
            "binary_version": "7.0.52-1ubuntu0.16+esm2"
          },
          {
            "binary_name": "tomcat7-admin",
            "binary_version": "7.0.52-1ubuntu0.16+esm2"
          },
          {
            "binary_name": "tomcat7-common",
            "binary_version": "7.0.52-1ubuntu0.16+esm2"
          },
          {
            "binary_name": "tomcat7-docs",
            "binary_version": "7.0.52-1ubuntu0.16+esm2"
          },
          {
            "binary_name": "tomcat7-examples",
            "binary_version": "7.0.52-1ubuntu0.16+esm2"
          },
          {
            "binary_name": "tomcat7-user",
            "binary_version": "7.0.52-1ubuntu0.16+esm2"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:14.04:LTS",
        "name": "tomcat7",
        "purl": "pkg:deb/ubuntu/tomcat7@7.0.52-1ubuntu0.16+esm2?arch=source\u0026distro=esm-infra-legacy/trusty"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "7.0.42-1",
        "7.0.47-1",
        "7.0.50-1",
        "7.0.52-1",
        "7.0.52-1ubuntu0.1",
        "7.0.52-1ubuntu0.3",
        "7.0.52-1ubuntu0.6",
        "7.0.52-1ubuntu0.7",
        "7.0.52-1ubuntu0.8",
        "7.0.52-1ubuntu0.9",
        "7.0.52-1ubuntu0.10",
        "7.0.52-1ubuntu0.11",
        "7.0.52-1ubuntu0.13",
        "7.0.52-1ubuntu0.14",
        "7.0.52-1ubuntu0.15",
        "7.0.52-1ubuntu0.16",
        "7.0.52-1ubuntu0.16+esm1",
        "7.0.52-1ubuntu0.16+esm2"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "libservlet3.1-java",
            "binary_version": "8.0.32-1ubuntu1.13+esm2"
          },
          {
            "binary_name": "libtomcat8-java",
            "binary_version": "8.0.32-1ubuntu1.13+esm2"
          },
          {
            "binary_name": "tomcat8",
            "binary_version": "8.0.32-1ubuntu1.13+esm2"
          },
          {
            "binary_name": "tomcat8-admin",
            "binary_version": "8.0.32-1ubuntu1.13+esm2"
          },
          {
            "binary_name": "tomcat8-common",
            "binary_version": "8.0.32-1ubuntu1.13+esm2"
          },
          {
            "binary_name": "tomcat8-docs",
            "binary_version": "8.0.32-1ubuntu1.13+esm2"
          },
          {
            "binary_name": "tomcat8-examples",
            "binary_version": "8.0.32-1ubuntu1.13+esm2"
          },
          {
            "binary_name": "tomcat8-user",
            "binary_version": "8.0.32-1ubuntu1.13+esm2"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:16.04:LTS",
        "name": "tomcat8",
        "purl": "pkg:deb/ubuntu/tomcat8@8.0.32-1ubuntu1.13+esm2?arch=source\u0026distro=esm-infra-legacy/xenial"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "8.0.26-1",
        "8.0.28-1",
        "8.0.30-1",
        "8.0.32-1",
        "8.0.32-1ubuntu1",
        "8.0.32-1ubuntu1.1",
        "8.0.32-1ubuntu1.2",
        "8.0.32-1ubuntu1.3",
        "8.0.32-1ubuntu1.4",
        "8.0.32-1ubuntu1.5",
        "8.0.32-1ubuntu1.6",
        "8.0.32-1ubuntu1.7",
        "8.0.32-1ubuntu1.8",
        "8.0.32-1ubuntu1.9",
        "8.0.32-1ubuntu1.10",
        "8.0.32-1ubuntu1.11",
        "8.0.32-1ubuntu1.13",
        "8.0.32-1ubuntu1.13+esm1",
        "8.0.32-1ubuntu1.13+esm2"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "libservlet3.0-java",
            "binary_version": "7.0.68-1ubuntu0.4+esm4"
          },
          {
            "binary_name": "libtomcat7-java",
            "binary_version": "7.0.68-1ubuntu0.4+esm4"
          },
          {
            "binary_name": "tomcat7",
            "binary_version": "7.0.68-1ubuntu0.4+esm4"
          },
          {
            "binary_name": "tomcat7-admin",
            "binary_version": "7.0.68-1ubuntu0.4+esm4"
          },
          {
            "binary_name": "tomcat7-common",
            "binary_version": "7.0.68-1ubuntu0.4+esm4"
          },
          {
            "binary_name": "tomcat7-docs",
            "binary_version": "7.0.68-1ubuntu0.4+esm4"
          },
          {
            "binary_name": "tomcat7-examples",
            "binary_version": "7.0.68-1ubuntu0.4+esm4"
          },
          {
            "binary_name": "tomcat7-user",
            "binary_version": "7.0.68-1ubuntu0.4+esm4"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:16.04:LTS",
        "name": "tomcat7",
        "purl": "pkg:deb/ubuntu/tomcat7@7.0.68-1ubuntu0.4+esm4?arch=source\u0026distro=esm-apps-legacy/xenial"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "7.0.64-1",
        "7.0.68-1",
        "7.0.68-1ubuntu0.1",
        "7.0.68-1ubuntu0.3",
        "7.0.68-1ubuntu0.4",
        "7.0.68-1ubuntu0.4+esm1",
        "7.0.68-1ubuntu0.4+esm2",
        "7.0.68-1ubuntu0.4+esm3",
        "7.0.68-1ubuntu0.4+esm4"
      ]
    },
    {
      "ecosystem_specific": {
        "availability": "No subscription required",
        "binaries": [
          {
            "binary_name": "libtomcat9-embed-java",
            "binary_version": "9.0.16-3ubuntu0.18.04.2"
          },
          {
            "binary_name": "libtomcat9-java",
            "binary_version": "9.0.16-3ubuntu0.18.04.2"
          },
          {
            "binary_name": "tomcat9",
            "binary_version": "9.0.16-3ubuntu0.18.04.2"
          },
          {
            "binary_name": "tomcat9-admin",
            "binary_version": "9.0.16-3ubuntu0.18.04.2"
          },
          {
            "binary_name": "tomcat9-common",
            "binary_version": "9.0.16-3ubuntu0.18.04.2"
          },
          {
            "binary_name": "tomcat9-docs",
            "binary_version": "9.0.16-3ubuntu0.18.04.2"
          },
          {
            "binary_name": "tomcat9-examples",
            "binary_version": "9.0.16-3ubuntu0.18.04.2"
          },
          {
            "binary_name": "tomcat9-user",
            "binary_version": "9.0.16-3ubuntu0.18.04.2"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:18.04:LTS",
        "name": "tomcat9",
        "purl": "pkg:deb/ubuntu/tomcat9@9.0.16-3ubuntu0.18.04.2?arch=source\u0026distro=bionic"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "9.0.16-3ubuntu0.18.04.2"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "9.0.16-3~18.04.1",
        "9.0.16-3ubuntu0.18.04.1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "libtomcat8-embed-java",
            "binary_version": "8.5.39-1ubuntu1~18.04.3+esm6"
          },
          {
            "binary_name": "libtomcat8-java",
            "binary_version": "8.5.39-1ubuntu1~18.04.3+esm6"
          },
          {
            "binary_name": "tomcat8",
            "binary_version": "8.5.39-1ubuntu1~18.04.3+esm6"
          },
          {
            "binary_name": "tomcat8-admin",
            "binary_version": "8.5.39-1ubuntu1~18.04.3+esm6"
          },
          {
            "binary_name": "tomcat8-common",
            "binary_version": "8.5.39-1ubuntu1~18.04.3+esm6"
          },
          {
            "binary_name": "tomcat8-docs",
            "binary_version": "8.5.39-1ubuntu1~18.04.3+esm6"
          },
          {
            "binary_name": "tomcat8-examples",
            "binary_version": "8.5.39-1ubuntu1~18.04.3+esm6"
          },
          {
            "binary_name": "tomcat8-user",
            "binary_version": "8.5.39-1ubuntu1~18.04.3+esm6"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:18.04:LTS",
        "name": "tomcat8",
        "purl": "pkg:deb/ubuntu/tomcat8@8.5.39-1ubuntu1~18.04.3+esm6?arch=source\u0026distro=esm-apps/bionic"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "8.5.21-1ubuntu1",
        "8.5.29-1",
        "8.5.30-1",
        "8.5.30-1ubuntu1",
        "8.5.30-1ubuntu1.2",
        "8.5.30-1ubuntu1.3",
        "8.5.30-1ubuntu1.4",
        "8.5.39-1ubuntu1~18.04.1",
        "8.5.39-1ubuntu1~18.04.2",
        "8.5.39-1ubuntu1~18.04.3",
        "8.5.39-1ubuntu1~18.04.3+esm1",
        "8.5.39-1ubuntu1~18.04.3+esm2",
        "8.5.39-1ubuntu1~18.04.3+esm3",
        "8.5.39-1ubuntu1~18.04.3+esm4",
        "8.5.39-1ubuntu1~18.04.3+esm5",
        "8.5.39-1ubuntu1~18.04.3+esm6"
      ]
    },
    {
      "ecosystem_specific": {
        "availability": "No subscription required",
        "binaries": [
          {
            "binary_name": "libtomcat9-embed-java",
            "binary_version": "9.0.31-1ubuntu0.2"
          },
          {
            "binary_name": "libtomcat9-java",
            "binary_version": "9.0.31-1ubuntu0.2"
          },
          {
            "binary_name": "tomcat9",
            "binary_version": "9.0.31-1ubuntu0.2"
          },
          {
            "binary_name": "tomcat9-admin",
            "binary_version": "9.0.31-1ubuntu0.2"
          },
          {
            "binary_name": "tomcat9-common",
            "binary_version": "9.0.31-1ubuntu0.2"
          },
          {
            "binary_name": "tomcat9-docs",
            "binary_version": "9.0.31-1ubuntu0.2"
          },
          {
            "binary_name": "tomcat9-examples",
            "binary_version": "9.0.31-1ubuntu0.2"
          },
          {
            "binary_name": "tomcat9-user",
            "binary_version": "9.0.31-1ubuntu0.2"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:20.04:LTS",
        "name": "tomcat9",
        "purl": "pkg:deb/ubuntu/tomcat9@9.0.31-1ubuntu0.2?arch=source\u0026distro=focal"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "9.0.31-1ubuntu0.2"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "9.0.24-1",
        "9.0.27-1",
        "9.0.31-1",
        "9.0.31-1ubuntu0.1"
      ]
    }
  ],
  "aliases": [],
  "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.",
  "id": "UBUNTU-CVE-2021-30640",
  "modified": "2026-07-15T17:28:03Z",
  "published": "2021-07-12T15:15:00Z",
  "references": [
    {
      "type": "REPORT",
      "url": "https://ubuntu.com/security/CVE-2021-30640"
    },
    {
      "type": "REPORT",
      "url": "https://bz.apache.org/bugzilla/show_bug.cgi?id=65224"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/apache/tomcat/commit/c4df8d44a959a937d507d15e5b1ca35c3dbc41eb"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/apache/tomcat/commit/749f3cc192c68c34f2375509aea087be45fc4434"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/apache/tomcat/commit/c6b6e1015ae44c936971b6bf8bce70987935b92e"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/apache/tomcat/commit/91ecdc61ce3420054c04114baaaf1c1e0cbd5d56"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/apache/tomcat/commit/e50067486cf86564175ca0cfdcbf7d209c6df862"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/apache/tomcat/commit/b5585a9e5d4fec020cc5ebadb82f899fae22bc43"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/apache/tomcat/commit/329932012d3a9b95fde0b18618416e659ecffdc0"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/apache/tomcat/commit/3ce84512ed8783577d9945df28da5a033465b945"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/apache/tomcat/commit/24dfb30076997b640e5123e92c4b8d7f206f609c"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/apache/tomcat/commit/0a272b00aed57526dbfc8b881ab253c23c61f100"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/apache/tomcat/commit/c9f21a2a7908c7c4ecd4f9bb495d3ee36a2bd822"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/apache/tomcat/commit/4e86b4ea0d1a9b00fa93971c31b93ad1bd49c7fe"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/apache/tomcat/commit/79580e7f70a07c083be07307376511bb864d5a7b"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/apache/tomcat/commit/d3407672774e372fae8b5898d55f85d16f22b972"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/apache/tomcat/commit/6a9129ac9bd06555ce04bb564a76fc3987311f38"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/apache/tomcat/commit/ad22db641dcd61c2e8078f658fa709897b5da375"
    },
    {
      "type": "REPORT",
      "url": "https://lists.apache.org/thread.html/r59f9ef03929d32120f91f4ea7e6e79edd5688d75d0a9b65fd26d1fe8%40%3Cannounce.tomcat.apache.org%3E"
    },
    {
      "type": "ADVISORY",
      "url": "https://ubuntu.com/security/notices/USN-5360-1"
    },
    {
      "type": "REPORT",
      "url": "https://www.cve.org/CVERecord?id=CVE-2021-30640"
    }
  ],
  "related": [
    "USN-5360-1"
  ],
  "schema_version": "1.7.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N",
      "type": "CVSS_V3"
    },
    {
      "score": "medium",
      "type": "Ubuntu"
    }
  ],
  "upstream": [
    "CVE-2021-30640"
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…