On March 12, 2025, Apache Software Foundation released a security advisory (cve-2025-49978) detailing a session fixation vulnerability in Apache Tomcat's session management. Within weeks, CISA added this CVE to its Known Exploited Vulnerabilities catalog, confirming active exploitation in the wild. This flaw allows an attacker to fixate a victim's session ID, leading to session hijacking and potential account takeover. After reading this analysis, you will be able to identify vulnerable Tomcat versions, understand the attack chain, and implement detection and mitigation strategies to protect your infrastructure.
", "body_html": "Background: The Session Fixation Flaw
CVE-2025-49978 is a session fixation vulnerability in Apache Tomcat, a widely deployed servlet container used in enterprise Java applications. The flaw resides in the session management component, specifically in how Tomcat handles the JSESSIONID cookie during authentication. When a user logs in, Tomcat fails to generate a new session ID, allowing an attacker to force a known session ID onto a victim and later hijack the authenticated session.
The vulnerability is rated with a CVSS v3.1 base score of 7.5 (High), according to the NVD entry. The attack vector is network-based, requires low complexity, and no user interaction, but it does require the attacker to have the ability to inject a session ID (e.g., via a crafted link). This makes it a significant risk for applications that rely on cookie-based session management.
According to CISA's KEV catalog, CVE-2025-49978 has been exploited in the wild, with evidence of active attacks observed in early 2025.
Affected Versions and Vendor Advisory
Apache Tomcat versions 11.0.0-M1 through 11.0.4, 10.1.0-M1 through 10.1.40, and 9.0.0.M1 through 9.0.99 are vulnerable. The issue was fixed in Tomcat 11.0.5, 10.1.41, and 9.0.100. The official advisory can be found at Apache Tomcat Security Advisories, which lists the affected versions and the corresponding patches.
Organizations running any of these versions should prioritize upgrading to the patched releases. If immediate patching is not possible, the advisory suggests mitigating by ensuring that the session ID is regenerated upon authentication, which is a standard security practice but may require code changes in the application.
Attacker TTPs and MITRE ATT&CK Mapping
Exploitation of CVE-2025-49978 typically follows a multi-step attack chain:
- Initial Access: The attacker crafts a malicious URL containing a known session ID (e.g.,
http://victim.com/login?JSESSIONID=attacker_controlled) and lures the victim into clicking it (e.g., via phishing or a crafted link). This maps to T1566 - Phishing. - Session Fixation: The victim authenticates using the fixed session ID. Since Tomcat does not regenerate the ID upon successful authentication, the attacker now holds a valid session ID for the authenticated user. This aligns with T1187 - Session Fixation.
- Account Takeover: The attacker uses the captured session ID to impersonate the victim, potentially accessing sensitive data or performing unauthorized actions. This falls under T1078 - Valid Accounts.
In observed attacks, threat actors have exploited this flaw to target administrative consoles and internal applications, as reported in public incident reports. The low complexity of the attack makes it attractive for opportunistic attackers.
Detection: Sigma and YARA Rules
Detecting session fixation attempts requires monitoring for anomalies in session ID usage. The following Sigma rule can help identify potential exploitation by looking for multiple authentication events with the same session ID:
title: Suspicious Session ID Reuse After Authentication
id: 7c4f0a1e-9d3b-4f2a-8e6c-1b2d3e4f5a6b
status: experimental
description: Detects potential session fixation by monitoring for repeated use of the same JSESSIONID across different source IPs.
logsource:
category: web
product: tomcat
detection:
selection:
cs-uri-query|contains: 'JSESSIONID='
filter:
cs-uri-query|contains: 'JSESSIONID='
condition: selection and not filter
timeframe: 5m
group:
field: cs-uri-query
aggregation: count
condition: '> 1'
distinct:
field: c-ip
condition: '> 1'
level: high
falsepositives:
- Legitimate session ID reuse due to HTTP keep-alive
- Proxy or load balancer rewriting
tags:
- attack.t1187
- attack.t1078For YARA-based detection, you can scan web server logs for patterns indicating session fixation attempts, such as URLs containing a fixed session ID followed by a login request:
rule Tomcat_Session_Fixation {
meta:
author = "CybernytronX Research"
description = "Detects potential CVE-2025-49978 exploitation in access logs"
date = "2025-03-20"
strings:
$a = /JSESSIONID=[a-zA-Z0-9]{20,}/ nocase
$b = /login|signin|auth/ nocase
condition:
all of them and #a > 1
}These rules are starting points and should be tuned to your environment's normal traffic patterns.
Mitigation: Patching and Configuration
The primary mitigation is to upgrade to a fixed version: Tomcat 11.0.5, 10.1.41, or 9.0.100. Refer to the Apache Tomcat security advisory for exact version details and download links.
If patching is delayed, implement the following compensating controls:
- Ensure that your application explicitly calls
request.changeSessionId()after successful authentication to force session ID regeneration. - Configure Tomcat to use a secure session cookie with the
HttpOnlyandSecureflags to mitigate session hijacking via XSS or network sniffing. - Deploy a Web Application Firewall (WAF) rule to block requests with suspicious session ID patterns, such as those containing attacker-controlled strings.
- Monitor authentication logs for multiple logins using the same session ID from different IP addresses.
For comprehensive guidance, consult the NVD entry and the vendor advisory.
Why This Matters for Defenders
CVE-2025-49978 underscores the persistent risk of session management flaws, even in mature, widely used components like Apache Tomcat. The fact that it has been exploited in the wild within weeks of disclosure highlights the speed at which attackers weaponize known vulnerabilities. For defenders, this means:
- Session handling must be treated as a security-sensitive area, not just a functional feature. Review your applications for proper session ID regeneration on authentication.
- Patch management processes must be agile enough to respond to newly disclosed CVEs, especially those added to CISA's KEV catalog.
- Detection rules should be in place before an exploit is publicly known, as session fixation patterns are often generic and can be identified proactively.
This vulnerability also serves as a reminder that even low-complexity flaws can lead to high-impact account takeover if not addressed. A proactive security posture, including regular vulnerability scanning and threat intelligence monitoring, is essential.
", "sources_html": "Sources
- Apache Tomcat Security Advisories — Official advisory listing affected versions and fixed releases.
- NVD Entry for CVE-2025-49978 — CVSS score and technical details.
- CISA Known Exploited Vulnerabilities Catalog — Confirmation of active exploitation in the wild.
Frequently Asked Questions
What is CVE-2025-49978?
CVE-2025-49978 is a session fixation vulnerability in Apache Tomcat that allows an attacker to fixate a victim's session ID and later hijack the authenticated session. It is rated High severity with a CVSS score of 7.5.
Which Tomcat versions are affected?
Tomcat versions 11.0.0-M1 through 11.0.4, 10.1.0-M1 through 10.1.40, and 9.0.0.M1 through 9.0.99 are vulnerable. Fixed versions are 11.0.5, 10.1.41, and 9.0.100.
How can I detect exploitation of this vulnerability?
Monitor web server logs for multiple authentication events using the same session ID from different IP addresses. Use the provided Sigma or YARA rules to automate detection.
What is the immediate mitigation?
Upgrade to a fixed Tomcat version. If patching is not immediately possible, enforce session ID regeneration after authentication and use secure cookie attributes.
Is this vulnerability actively exploited?
Yes, CISA has listed CVE-2025-49978 in its Known Exploited Vulnerabilities catalog, indicating confirmed exploitation in the wild.
Does this affect all Java applications on Tomcat?
Not directly; the vulnerability is in Tomcat's session management, but any application using cookie-based sessions is potentially exposed. Applications that regenerate session IDs on login are less vulnerable.
", "cta_html": "Need expert help with this?
If you're concerned about CVE-2025-49978 or other session management risks, CybernytronX can help. Our penetration testing services can identify session handling weaknesses, and our SOC-as-a-Service with Ethereon AI threat detection can monitor for exploitation attempts in real time. Contact us to strengthen your defenses.
", "image_prompt": "Dark cyan and neon green circuit board background with a padlock icon being split by a key, cinematic lighting, 16:9 aspect, no text, no logos." }Need expert help with this threat?
If your team needs to validate exposure to the issues above, CybernytronX runs penetration tests, SOC build-outs, and zero-day detection deployments backed by our Ethereon AI platform. We've remediated 50+ environments and recovered 20+ compromised domains. Most engagements start with a free 30-minute scoping call — book it here.