CVE-2007-3382 Apache Tomcat treats single quotes as delimiters in cookies

Medium 4.3 Published Updated

Apache Tomcat mishandles single quotes in cookies, potentially leaking session IDs and enabling remote session hijacking.

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-3382?

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

Official description

Apache Tomcat 6.0.0 to 6.0.13, 5.5.0 to 5.5.24, 5.0.0 to 5.0.30, 4.1.0 to 4.1.36, and 3.3 to 3.3.2 treats single quotes ("'") as delimiters in cookies, which might cause sensitive information such as session IDs to be leaked and allow remote attackers to conduct session hijacking attacks.

Weakness: CWE-200

Which versions are affected by CVE-2007-3382?

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

PackageAffectedFixed in
org.apache.tomcat:tomcat MavenFrom 3.3.0 to 3.3.2None
org.apache.tomcat:tomcat MavenFrom 3.3.0 to 3.3.2None
org.apache.tomcat:tomcat MavenFrom 4.1.0 to 4.1.36None
org.apache.tomcat:tomcat MavenFrom 4.1.0 to 4.1.36None
org.apache.tomcat:tomcat MavenFrom 5.0.0 to 5.0.30None
org.apache.tomcat:tomcat MavenFrom 5.0.0 to 5.0.30None
4 more packages
org.apache.tomcat:tomcat MavenFrom 5.5.0 to 5.5.24None
org.apache.tomcat:tomcat MavenFrom 5.5.0 to 5.5.24None
org.apache.tomcat:tomcat MavenFrom 6.0.0 to 6.0.13None
org.apache.tomcat:tomcat MavenFrom 6.0.0 to 6.0.13None

Products include Apache Tomcat.

How do I fix CVE-2007-3382?

Upgrade to a fixed version.

Is CVE-2007-3382 being exploited?

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

Public exploit code: 1 Exploit-DB entry.

All Apache Tomcat vulnerabilities

Sources

Also known as GHSA-qff8-g48j-pwpw.

Is CVE-2007-3382 in your software?

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

Check your SBOMs for free