CVE-2016-0762: Observable Discrepancy in Apache Tomcat

org.apache.tomcat:tomcat Updated 02 Oct 2025

Summary

13/05/2022
Yes i
Moderate
5.9

CVE-2016-0762: Observable Discrepancy in Apache Tomcat. Affects org.apache.tomcat:tomcat across 5 version ranges.

>= 6.0.0, < 6.0.46 >= 7.0.0, < 7.0.72 >= 8.0.0.RC1, < 8.0.37 >= 8.5.0, < 8.5.5 >= 9.0.0M1, < 9.0.0.M10

Fixed in 5 releases; the minimum fixed version depends on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Apache Tomcat is an open-source web server and servlet container that is used to deploy Java-based web applications. It provides a Java Servlet and JavaServer Pages (JSP) environment for running web applications. The vulnerability in Apache Tomcat versions 6.0.0 to 9.0.0.M9 allows for a timing attack to determine valid user names. This vulnerability arises from a discrepancy in the Realm implementations, specifically in the processing of supplied passwords when the supplied user name does not exist. The default configuration includes the LockOutRealm, which makes exploiting this vulnerability more difficult.

Vulnerability Detail

The vulnerability in Apache Tomcat allows for a timing attack to determine valid user names. When a user name does not exist, the Realm implementations do not process the supplied password. This discrepancy can be exploited through a timing attack, where an attacker can measure the time it takes for a response to determine if a user name is valid or not. By repeatedly attempting different user names and measuring the response times, an attacker can gradually narrow down the list of valid user names. This vulnerability has a CVSS score of 5.9, indicating a moderate severity.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 6.0.0, < 6.0.46 6.0.46
  • >= 7.0.0, < 7.0.72 7.0.72
  • >= 8.0.0.RC1, < 8.0.37 8.0.37
  • >= 8.5.0, < 8.5.5 8.5.5
  • >= 9.0.0M1, < 9.0.0.M10 9.0.0.M10

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

If upgrading to a fixed version is not immediately feasible, a possible workaround is to disable the LockOutRealm in the Tomcat configuration. This can be done by modifying the server.xml file and removing or commenting out the LockOutRealm configuration. However, it is important to note that this workaround may reduce the security of the system, as it removes an additional layer of protection against brute-force attacks.

Conclusion

The vulnerability in Apache Tomcat allows for a timing attack to determine valid user names. It is important to upgrade to a fixed version of Apache Tomcat to mitigate this vulnerability. If immediate upgrading is not possible, disabling the LockOutRealm can serve as a temporary workaround. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.apache.tomcat:tomcat →

Share this vulnerability

FAQ

Apache Tomcat is an open-source web server and servlet container used for deploying Java-based web applications.

This vulnerability allows for a timing attack to determine valid user names, potentially aiding in unauthorized access to the system.

A timing attack is a type of side-channel attack where an attacker measures the time it takes for a response to gain information about a system.

The CVSS score of this vulnerability is 5.9, indicating a moderate severity.

To fix this vulnerability, it is recommended to upgrade to a fixed version of Apache Tomcat.

Related vulnerabilities

Recent vulnerabilities recorded for org.apache.tomcat:tomcat.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 6.0.0, < 6.0.46 6.0.46
  • >= 7.0.0, < 7.0.72 7.0.72
  • >= 8.0.0.RC1, < 8.0.37 8.0.37
  • >= 8.5.0, < 8.5.5 8.5.5
  • >= 9.0.0M1, < 9.0.0.M10 9.0.0.M10

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback