← Vulnerability feed

Vulnerability record · CVE-2007-5333 · published 12 February 2008

CVE-2007-5333: Apache Tomcat cookie parsing flaw leaks session IDs

Apache · Tomcat

Apache Tomcat versions 6.0.0 through 6.0.14, 5.5.0 through 5.5.25, and 4.1.0 through 4.1.36 mishandle double quote characters and %5C encoded backslash sequences in cookie values. This incomplete fix for CVE-2007-3385 can cause sensitive data such as session IDs to be exposed, undermining session confidentiality.

5.0 CVSS 2.0 Medium EPSS 63% · top 0.8% CWE-200 · Information exposure
5.0CVSS 2.0 base score
63%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
110References, 2 tagged exploit
16 Jun 2026Last modified by NVD

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.

AV:N/AC:L/Au:N/C:P/I:N/A:N

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 19 September 2026. Confidence: medium.

medium priorityCVSS 2.0 rates it medium with partial confidentiality impact, but the high EPSS percentile and session-hijacking potential warrant prompt patching.

What it is

Apache Tomcat versions 6.0.0 through 6.0.14, 5.5.0 through 5.5.25, and 4.1.0 through 4.1.36 mishandle double quote characters and %5C encoded backslash sequences in cookie values. This incomplete fix for CVE-2007-3385 can cause sensitive data such as session IDs to be exposed, undermining session confidentiality.

Impact

An attacker who can observe or influence the affected cookie handling may obtain session IDs and use them to hijack authenticated sessions, gaining the victim's privileges.

Attack surface

The flaw is reachable over the network through HTTP cookie handling; the CVSS vector AV:N/AC:L/Au:N indicates no authentication and no user interaction are required.

Exploitation

Not listed in CISA KEV and no public exploit references are tagged in the record, but EPSS is high at 0.62575 (99th percentile), suggesting elevated likelihood of exploitation activity.

What to do

  • Upgrade Tomcat to a release that includes the complete fix for CVE-2007-3385/CVE-2007-5333 (consult the vendor security pages for 4.x, 5.x and 6.x).
  • If immediate upgrade is not possible, restrict or filter cookie values containing double quotes or %5C sequences at a reverse proxy or WAF.
  • Rotate and invalidate session IDs and enforce short session timeouts to limit the value of any leaked identifier.
  • Apply vendor patches from downstream distributions (Apple, openSUSE, Gentoo, IBM) where Tomcat is bundled.
  • Monitor for anomalous session reuse or authentication from unexpected source addresses.

Detection

  • Inspect web server and proxy logs for cookie values containing double quote characters or %5C sequences.
  • Alert on session ID reuse across different client IP addresses or user agents.
  • Correlate authentication events with sudden changes in session identifiers for the same account.
  • Review Tomcat access logs for malformed Cookie headers targeting session cookies.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://jvn.jp/jp/JVN%2309470767/index.html Third Party AdvisoryVDB Entry
http://lists.apple.com/archives/security-announce/2008//Jun/msg00002.html Mailing ListThird Party Advisory
http://lists.apple.com/archives/security-announce/2008/Oct/msg00001.html Mailing ListThird Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2009-02/msg00002.html Third Party Advisory
http://marc.info/?l=bugtraq&m=139344343412337&w=2 Mailing ListThird Party Advisory
http://secunia.com/advisories/28878 Broken Link
http://secunia.com/advisories/28884 Broken Link
http://secunia.com/advisories/28915 Broken Link
http://secunia.com/advisories/29711 Broken Link
http://secunia.com/advisories/30676 Broken Link
http://secunia.com/advisories/30802 Broken Link
http://secunia.com/advisories/32036 Broken Link
http://secunia.com/advisories/32222 Broken Link
http://secunia.com/advisories/33330 Broken Link
http://secunia.com/advisories/37460 Broken Link
http://secunia.com/advisories/44183 Broken Link
http://secunia.com/advisories/57126 Broken Link
http://security.gentoo.org/glsa/glsa-200804-10.xml Broken Link
http://securityreason.com/securityalert/3636 Broken Link
http://support.apple.com/kb/HT2163 Third Party Advisory
http://support.apple.com/kb/HT3216 Third Party Advisory
http://tomcat.apache.org/security-4.html Vendor Advisory
http://tomcat.apache.org/security-5.html Vendor Advisory
http://tomcat.apache.org/security-6.html Vendor Advisory
http://www-01.ibm.com/support/docview.wss?uid=swg24018932 Third Party Advisory
http://www-01.ibm.com/support/docview.wss?uid=swg27012047 Third Party Advisory
http://www-01.ibm.com/support/docview.wss?uid=swg27012048 Third Party Advisory
http://www-1.ibm.com/support/docview.wss?uid=swg1IZ20133 Third Party Advisory
http://www-1.ibm.com/support/docview.wss?uid=swg1IZ20991 Third Party Advisory
http://www.mandriva.com/security/advisories?name=MDVSA-2009:018 Third Party Advisory
http://www.mandriva.com/security/advisories?name=MDVSA-2010:176 Third Party Advisory
http://www.redhat.com/docs/en-US/JBoss_Enterprise_Application_Platform/4.2.0.cp08/html-single/Release_Notes/index.html Third Party Advisory
http://www.securityfocus.com/archive/1/487822/100/0/threaded Third Party AdvisoryVDB Entry
http://www.securityfocus.com/archive/1/507985/100/0/threaded Third Party AdvisoryVDB Entry
http://www.securityfocus.com/bid/27706 ExploitPatchThird Party AdvisoryVDB Entry
http://www.securityfocus.com/bid/31681 Third Party AdvisoryVDB Entry
http://www.vmware.com/security/advisories/VMSA-2008-0010.html Third Party Advisory
http://www.vmware.com/security/advisories/VMSA-2009-0016.html Third Party Advisory
http://www.vupen.com/english/advisories/2008/0488 URL Repurposed
http://www.vupen.com/english/advisories/2008/1856/references URL Repurposed

Track CVE-2007-5333 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2025-24813Apache Tomcat Default Servlet path equivalence enables RCE and file disclosureApache Tomcat mishandles path equivalence for names containing an internal dot, letting a remote unauthenticated attacker write files through the Def…KEVEPSS 100%analysed9.8CVE-2020-1938Apache Tomcat AJP connector file read and JSP execution flawApache Tomcat shipped an AJP Connector enabled by default that listened on all configured IP addresses, and Tomcat treats AJP connections as more tru…KEVEPSS 99%analysed9.8CVE-2016-8735Apache Tomcat JmxRemoteLifecycleListener remote code executionApache Tomcat's JmxRemoteLifecycleListener was not updated to match the Oracle CVE-2016-3427 credential-type fix, leaving a deserialization weakness …KEVEPSS 90%analysed8.1CVE-2017-12617Apache Tomcat Default Servlet JSP upload leads to remote code executionApache Tomcat with HTTP PUT enabled (for example, the Default servlet readonly parameter set to false) allows an attacker to upload a JSP file throug…KEVEPSS 100%analysed8.1CVE-2017-12615Apache Tomcat on Windows unrestricted JSP upload via HTTP PUTApache Tomcat 7.0.0 through 7.0.79 on Windows with HTTP PUT enabled (for example, Default servlet readonly set to false) allows an attacker to upload…KEVEPSS 100%analysed7.5CVE-2026-34486Apache Tomcat EncryptInterceptor bypass exposes sensitive dataApache Tomcat contains a missing encryption of sensitive data flaw: the fix for CVE-2026-29146 can be bypassed, allowing the EncryptInterceptor to be…KEVEPSS 6.6%analysed7.5CVE-2023-44487HTTP/2 Rapid Reset stream cancellation denial of serviceThe HTTP/2 protocol permits a client to cancel many streams quickly, and the server's handling of those resets consumes disproportionate resources. T…KEVEPSS 100%analysed9.8CVE-2026-65637Apache tomcat improper input validation vulnerabilityImproper Input Validation vulnerability in Apache Tomcat due to incomplete fix for CVE-2026-32990. This issue affects Apache Tomcat: from 11.0.20 thr…EPSS 0.74%

Source: NIST National Vulnerability Database (record CVE-2007-5333), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.