CVE-2010-1157 Exposure of Sensitive Information to an Unauthorized Actor in Apache Tomcat

Low 2.6 Published Updated

Remote attackers can discover the server's hostname or IP address by reading the realm field in authentication headers, affecting Apache Tomcat servers.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2010-1157?

CVE-2010-1157 is a low-severity vulnerability in Apache Tomcat, published on 23 Apr 2010. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Apache Tomcat 5.5.0 through 5.5.29 and 6.0.0 through 6.0.26 might allow remote attackers to discover the server's hostname or IP address by sending a request for a resource that requires (1) BASIC or (2) DIGEST authentication, and then reading the realm field in the WWW-Authenticate header in the reply.

Weakness: CWE-200

Which versions are affected by CVE-2010-1157?

4 open source packages ship an affected version, including org.apache.tomcat:tomcat. It affects 1 product.

PackageAffectedFixed in
org.apache.tomcat:tomcat MavenFrom 5.5.05.5.30
org.apache.tomcat:tomcat MavenFrom 5.5.05.5.30
org.apache.tomcat:tomcat MavenFrom 6.0.06.0.28
org.apache.tomcat:tomcat MavenFrom 6.0.06.0.28

Products include Apache Tomcat.

How do I fix CVE-2010-1157?

Upgrade org.apache.tomcat:tomcat to a fixed version for your release line: 5.5.30 or 6.0.28.

Is CVE-2010-1157 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2010-1157 exists.

Public exploit code: 1 Exploit-DB entry.

All Apache Tomcat vulnerabilities

Sources

Also known as GHSA-w6q7-ww2x-7gm3.

Is CVE-2010-1157 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free