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-2021-43557

CVE-2021-43557: Apache Apisix Auth Bypass Vulnerability

CVE-2021-43557 is an authentication bypass flaw in Apache Apisix's uri-block plugin that allows attackers to circumvent block lists using unnormalized URIs. This article covers technical details, affected versions, and mitigations.

Published: February 25, 2026

CVE-2021-43557 Overview

CVE-2021-43557 is an authorization bypass vulnerability in the uri-block plugin of Apache APISIX before version 2.10.2. The vulnerability stems from the plugin's use of $request_uri without proper verification or normalization. Since $request_uri contains the full original request URI without normalization, attackers can craft malformed URIs to circumvent block list restrictions. For example, when a block list contains the pattern ^/internal/, an attacker can use a URI like //internal/ to bypass security controls and access restricted resources.

Critical Impact

Attackers can bypass URI-based access controls to access protected internal endpoints and resources that should be restricted, potentially exposing sensitive data or functionality.

Affected Products

  • Apache APISIX versions prior to 2.10.2
  • Custom plugins using $request_uri without normalization
  • Other APISIX plugins with similar URI handling patterns

Discovery Timeline

  • 2021-11-22 - CVE CVE-2021-43557 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-43557

Vulnerability Analysis

This vulnerability is classified as CWE-77 (Improper Neutralization of Special Elements used in a Command - Command Injection), though it more precisely represents an authorization bypass through improper input validation. The root issue lies in how Apache APISIX handles URI pattern matching in its security plugins.

The uri-block plugin is designed to prevent access to certain URI patterns by matching incoming requests against a configured block list. However, the plugin uses the raw $request_uri variable directly without normalizing the path. This creates a gap between what the security policy intends to block and what actually gets blocked.

Web servers and applications often normalize URIs by collapsing multiple slashes, resolving relative paths, and decoding URL-encoded characters. When security checks occur before this normalization, or when they use non-normalized values, attackers can exploit the discrepancy to bypass restrictions while still reaching the intended backend resource.

Root Cause

The fundamental cause is the use of $request_uri without proper URI normalization before pattern matching. The $request_uri nginx variable contains the original request URI exactly as sent by the client, including any malformed or non-standard formatting. The uri-block plugin performs regex matching against this raw value, but the backend routing may normalize the URI before processing, creating a security bypass opportunity.

For example, a block rule targeting ^/internal/ will match /internal/secret but will fail to match //internal/secret because the pattern expects a single slash at the start. However, most backend servers will normalize //internal/secret to /internal/secret when processing the request.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker can exploit this vulnerability by manipulating the URI in HTTP requests to evade block list restrictions.

The exploitation technique involves identifying protected URI patterns in the block list configuration and then crafting requests with non-normalized URIs that bypass the regex patterns while still resolving to the protected resources. Common bypass techniques include:

  • Using double slashes: //internal/ instead of /internal/
  • Adding path segments with traversal: /public/../internal/
  • URL encoding path components: /%69nternal/ (encoding 'i')
  • Case manipulation if not accounted for
  • Adding trailing characters or null bytes

Once the block list is bypassed, the attacker gains access to resources that administrators intended to protect, potentially exposing internal APIs, administrative interfaces, or sensitive data endpoints.

Detection Methods for CVE-2021-43557

Indicators of Compromise

  • HTTP requests containing double slashes (//) or unusual path patterns in access logs
  • Requests to internal or administrative endpoints from external sources
  • Access log entries showing normalized URIs that differ from raw request URIs
  • Unexpected access to endpoints that should be blocked by uri-block plugin rules

Detection Strategies

  • Review HTTP access logs for requests containing non-standard URI formatting such as double slashes, encoded characters, or path traversal sequences
  • Implement Web Application Firewall (WAF) rules to detect and alert on URI normalization bypass attempts
  • Monitor for access to protected endpoints that should be blocked by the uri-block plugin
  • Compare raw request URIs against normalized URIs in application logs to identify discrepancies

Monitoring Recommendations

  • Enable detailed request logging in Apache APISIX to capture both raw and processed URIs
  • Set up alerts for access attempts to known protected URI patterns from unauthorized sources
  • Monitor for sudden increases in requests containing unusual URI formatting patterns
  • Implement network-level monitoring for requests to internal API endpoints

How to Mitigate CVE-2021-43557

Immediate Actions Required

  • Upgrade Apache APISIX to version 2.10.2 or later immediately
  • Review all uri-block plugin configurations to identify potentially affected routes
  • Audit custom plugins for similar usage of $request_uri without normalization
  • Implement additional WAF rules as a defense-in-depth measure while patching

Patch Information

Apache has released version 2.10.2 of APISIX which addresses this vulnerability. The patch ensures proper URI normalization before pattern matching in the uri-block plugin. Administrators should upgrade to this version or later to remediate the vulnerability.

For detailed information about the fix, refer to the Apache Security Mailing List Thread. Additional context is available in the OpenWall security advisories: OSS Security Update 1, OSS Security Update 2, and OSS Security Update 3.

Workarounds

  • Implement URI normalization at the network edge (load balancer or WAF) before requests reach APISIX
  • Add additional block list patterns that account for common bypass techniques (e.g., ^//internal/, ^/+internal/)
  • Use network segmentation to restrict access to internal endpoints at the infrastructure level
  • Implement application-level authentication and authorization as a secondary protection layer
bash
# Example: Enhanced uri-block configuration with bypass prevention
# Add normalized patterns to catch common bypass attempts
# Note: Upgrade to 2.10.2+ is the recommended solution

# Review current APISIX version
apisix version

# Upgrade APISIX (example for package manager)
# Consult official documentation for your deployment method

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 Apisix

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability58.26%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-77
  • Technical References
  • OpenWall OSS Security Update 1

  • OpenWall OSS Security Update 2

  • OpenWall OSS Security Update 3
  • Vendor Resources
  • Apache Security Mailing List Thread
  • Related CVEs
  • CVE-2022-24112: Apache Apisix Auth Bypass Vulnerability

  • CVE-2022-25757: Apache APISIX Auth Bypass Vulnerability

  • CVE-2020-13945: Apache APISIX Auth Bypass Vulnerability

  • CVE-2026-31908: Apache APISIX Header Injection 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