← All articles SOC Operations

CVE-2025-49978: Apache Tomcat session fixation flaw exploited in wild

By Ammar Khan, CEH · August 1, 2026 · CybernytronX Research
CVE-2025-49978: Apache Tomcat session fixation flaw exploited in wild
{ "title": "CVE-2025-49978: Apache Tomcat Session Fixation Flaw Exploited in Wild", "meta_title": "CVE-2025-49978: Apache Tomcat Session Fixation Exploited", "meta_description": "Analyze CVE-2025-49978, Apache Tomcat session fixation flaw exploited in the wild. Learn affected versions, detection, and mitigation.", "primary_keyword": "Apache Tomcat session fixation", "secondary_keywords": [ "CVE-2025-49978", "Tomcat session fixation exploit", "session fixation detection", "Apache Tomcat security advisory", "CISA KEV catalog" ], "intro_html": "

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:

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.t1078

For 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:

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:

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

", "faq_html": "

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.

AK

Ammar Khan — Founder, CybernytronX

Certified Ethical Hacker (CEH), B.S. Cybersecurity, Google Certified. 5+ years pentesting, creator of Ethereon AI threat detection. Has remediated 50+ environments and recovered 20+ compromised domains. Hire CybernytronX →

← Back to all articles