Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2020-1957

CVE-2020-1957: Apache Shiro Auth Bypass Vulnerability

CVE-2020-1957 is an authentication bypass vulnerability in Apache Shiro when used with Spring dynamic controllers. Attackers can exploit this flaw to circumvent authentication mechanisms. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: March 4, 2026

CVE-2020-1957 Overview

CVE-2020-1957 is a critical authentication bypass vulnerability affecting Apache Shiro before version 1.5.2. When Apache Shiro is used in conjunction with Spring dynamic controllers, a specially crafted HTTP request can bypass authentication mechanisms entirely. This vulnerability allows unauthenticated attackers to access protected resources and perform unauthorized actions within affected applications.

Critical Impact

Unauthenticated remote attackers can bypass authentication controls to access protected resources in applications using Apache Shiro with Spring dynamic controllers, potentially leading to complete system compromise.

Affected Products

  • Apache Shiro versions prior to 1.5.2
  • Debian Linux 8.0
  • Applications using Apache Shiro with Spring dynamic controllers

Discovery Timeline

  • 2020-03-25 - CVE-2020-1957 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2020-1957

Vulnerability Analysis

This authentication bypass vulnerability occurs due to improper handling of request paths when Apache Shiro is integrated with Spring's dynamic controller routing mechanism. The root cause lies in a path normalization discrepancy between how Shiro processes URL patterns for security filtering and how Spring resolves controller endpoints. When an attacker crafts a request with specific path manipulations, Shiro's security filter may evaluate the path differently than Spring's dispatcher, allowing the request to bypass authentication checks while still being routed to protected controller methods.

The vulnerability is particularly dangerous because it requires no authentication or special privileges to exploit. An attacker can send requests directly over the network without any user interaction required. Successful exploitation grants unauthorized access to protected application functionality, potentially exposing sensitive data, enabling unauthorized modifications, or allowing further system compromise.

Root Cause

The vulnerability stems from inconsistent URL path handling between Apache Shiro's security filter chain and Spring Framework's request dispatcher. Shiro uses its own path matching algorithm to determine which security filters apply to incoming requests, while Spring uses a different mechanism to map requests to controller methods. When certain specially crafted path patterns are submitted, these two systems interpret the path differently. Shiro's filter may determine that no authentication is required for the normalized path, while Spring still routes the original request to a protected endpoint. This semantic gap creates an authentication bypass condition.

Attack Vector

The attack vector is network-based, requiring no authentication and no user interaction. An attacker constructs HTTP requests with manipulated URL paths designed to exploit the path handling discrepancy between Shiro and Spring. The attack involves sending requests where the path satisfies Shiro's security bypass conditions while still resolving to protected Spring controller endpoints.

Typical exploitation patterns include:

  1. Path manipulation using special characters or encoding
  2. Requests that exploit differences in how trailing slashes, semicolons, or URL-encoded characters are processed
  3. Crafted requests that trigger Spring's Ant-style path matching differently than Shiro's pattern matching

The vulnerability affects any application that uses Apache Shiro for authentication/authorization in combination with Spring's dynamic controller routing. Exploitation allows complete bypass of Shiro's security framework, granting access to any protected resources.

Detection Methods for CVE-2020-1957

Indicators of Compromise

  • Unusual access patterns to protected endpoints without valid authentication sessions
  • HTTP requests containing suspicious path patterns with semicolons, double slashes, or URL-encoded characters targeting protected resources
  • Authentication logs showing access to restricted resources without corresponding login events
  • Anomalous requests to Spring MVC endpoints that bypass expected Shiro filter chains

Detection Strategies

  • Monitor web application logs for requests to protected endpoints lacking authentication tokens or session identifiers
  • Implement web application firewall (WAF) rules to detect path manipulation attempts including semicolon injection and URL encoding anomalies
  • Deploy runtime application self-protection (RASP) to detect authentication bypass attempts at the application layer
  • Review access logs for discrepancies between Shiro filter chain processing and actual endpoint access

Monitoring Recommendations

  • Enable verbose logging for both Apache Shiro security filter chains and Spring MVC request routing
  • Configure alerting for any access to authenticated endpoints without valid session tokens
  • Implement centralized log correlation to identify patterns indicating authentication bypass attempts
  • Monitor for requests with unusual path characteristics targeting sensitive application areas

How to Mitigate CVE-2020-1957

Immediate Actions Required

  • Upgrade Apache Shiro to version 1.5.2 or later immediately
  • Audit application access logs for signs of exploitation since the application was deployed
  • Review and restrict network access to affected applications until patching is complete
  • Implement additional authentication controls at the network or reverse proxy layer as a defense-in-depth measure

Patch Information

Apache has released version 1.5.2 which addresses this authentication bypass vulnerability. Organizations should upgrade to Apache Shiro 1.5.2 or the latest available version. For detailed patch information and discussion, see the Apache Shiro Dev Discussion and the Apache Shiro Commits Update.

Debian Linux users should refer to the Debian LTS Announcement for distribution-specific patching guidance.

Workarounds

  • Implement strict path validation at the web server or reverse proxy level before requests reach the application
  • Configure additional authentication mechanisms independent of Shiro at network perimeter devices
  • Restrict access to vulnerable applications to trusted networks only until patching is completed
  • Consider deploying a WAF with rules specifically targeting path manipulation techniques
bash
# Verify Apache Shiro version in Maven-based projects
mvn dependency:tree | grep shiro

# Check current Shiro version in Gradle projects
gradle dependencies | grep shiro

# Update to patched version in pom.xml
# <dependency>
#   <groupId>org.apache.shiro</groupId>
#   <artifactId>shiro-core</artifactId>
#   <version>1.5.2</version>
# </dependency>

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechApache Shiro

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability86.10%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • NVD-CWE-noinfo
  • Technical References
  • Apache Shiro Commits Update

  • Apache Shiro Commits Discussion

  • Apache Geode Dev Notice

  • Apache Camel Commits Update

  • Apache Shiro Commits Note

  • Debian LTS Announcement
  • Vendor Resources
  • Apache Shiro Dev Discussion
  • Related CVEs
  • CVE-2026-3963: perfree go-fastdfs-web Auth Bypass Flaw

  • CVE-2026-23903: Apache Shiro Auth Bypass Vulnerability

  • CVE-2023-46749: Apache Shiro Auth Bypass Vulnerability

  • CVE-2023-34478: Apache Shiro Auth Bypass Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English