CVE-2026-43827

Apache Shiro: Session fixation: new session is not created after login by default

Published May 25, 2026 CVSS 4.0 · 5.9 Medium EPSS < 1% KEV · Not listed
Description
Default configurations of Apache Shiro have a session fixation vulnerability.

This issue affects Apache Shiro from 1.0 to 2.1.0, and 3.0.0-alpha-1.

Users are recommended to upgrade to version 2.1.1, or 3.0.0-alpha-2 or later, which fixes the issue.

In the affected versions, when a session already exists, it is not invalidated upon successful login, nor is a new session being generated with a new ID.

Analysis

AI-generated

Technical impact

Apache Shiro’s default configuration permits a session‑fixation attack because a new session is not created during login. If an existing session remains active after authentication, an attacker who can set or predict the session identifier before login can hijack that authenticated session. This flaw is classified as CWE‑384 and can compromise confidentiality, integrity, and availability of data accessed with the hijacked session.

Affected Systems

Apache Shiro versions from 1.0 through 2.1.0 and the 3.0.0‑alpha‑1 release are affected. Users must upgrade to at least 2.1.1 or 3.0.0‑alpha‑2, which address the session‑fixation behavior.

Risk and Exploitability

The vulnerability carries a CVSS score of 5.9, indicating moderate severity, and is not currently listed in CISA’s KEV catalog. Although EPSS is not reported, the fix is straightforward and the risk remains significant when an attacker can influence session identifiers. The likely attack vector involves sending a crafted cookie or URL parameter that establishes a session before authentication, followed by a standard login to retain that session.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Apache Shiro to version 2.1.1 or later, or 3.0.0‑alpha‑2, which validates and invalidates sessions on authentication.
  • Confirm that the deployment’s configuration enforces session invalidation on login; if using custom settings, explicitly enable the session‑fixation protection flag if available.
  • After patching, verify that new sessions are created with fresh identifiers upon authentication to ensure the session‑fixation vector is eliminated.

Generated by OpenCVE AI on May 25, 2026 at 21:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-fcvm-3cpj-f9qx Apache Shiro has a session fixation vulnerability
History
Type Values Removed Values Added
CPEs cpe:2.3:a:apache:shiro:*:*:*:*:*:*:*:*
cpe:2.3:a:apache:shiro:3.0.0:alpha1:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N'}

Type Values Removed Values Added
First Time appeared Apache
Apache shiro
Vendors & Products Apache
Apache shiro
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Default configurations of Apache Shiro have a session fixation vulnerability. This issue affects Apache Shiro from 1.0 to 2.1.0, and 3.0.0-alpha-1. Users are recommended to upgrade to version 2.1.1, or 3.0.0-alpha-2 or later, which fixes the issue. In the affected versions, when a session already exists, it is not invalidated upon successful login, nor is a new session being generated with a new ID.
Title Apache Shiro: Session fixation: new session is not created after login by default
Weaknesses CWE-384
References
Metrics cvssV4_0

{'score': 5.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:N/VA:N/SC:L/SI:N/SA:N/AU:Y/R:U/RE:L/U:Amber'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
May 26, 2026, 12:39 PM
Reserved
May 2, 2026, 10:26 PM
Status
Analyzed
Published
May 25, 2026, 9:16 PM
Modified
Jul 24, 2026, 10:10 AM