CVE-2007-5333 Exposure of Sensitive Information in Apache Tomcat

Medium 5.0 Published Updated

Apache Tomcat fails to sanitize cookie values, allowing remote attackers to steal session IDs and hijack user sessions.

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

What is CVE-2007-5333?

CVE-2007-5333 is a medium-severity vulnerability in Apache Tomcat, published on 12 Feb 2008. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Apache Tomcat 6.0.0 through 6.0.14, 5.5.0 through 5.5.25, and 4.1.0 through 4.1.36 does not properly handle (1) double quote (") characters or (2) %5C (encoded backslash) sequences in a cookie value, which might cause sensitive information such as session IDs to be leaked to remote attackers and enable session hijacking attacks. NOTE: this issue exists because of an incomplete fix for CVE-2007-3385.

Weakness: CWE-200

Which versions are affected by CVE-2007-5333?

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

PackageAffectedFixed in
org.apache.tomcat:tomcat MavenFrom 4.1.04.1.37
org.apache.tomcat:tomcat MavenFrom 4.1.04.1.37
org.apache.tomcat:tomcat MavenFrom 5.5.05.5.26
org.apache.tomcat:tomcat MavenFrom 5.5.05.5.26
org.apache.tomcat:tomcat MavenFrom 6.0.06.0.15
org.apache.tomcat:tomcat MavenFrom 6.0.06.0.15

Products include Apache Tomcat.

How do I fix CVE-2007-5333?

Upgrade org.apache.tomcat:tomcat to a fixed version for your release line: 4.1.37, 5.5.26 or 6.0.15.

Is CVE-2007-5333 being exploited?

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

Public exploit code: 1 Exploit-DB entry.

All Apache Tomcat vulnerabilities

Sources

Also known as GHSA-cww4-vj5r-rx57.

Is CVE-2007-5333 in your software?

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

Check your SBOMs for free