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-35368

CVE-2021-35368: OWASP ModSecurity Auth Bypass Vulnerability

CVE-2021-35368 is an authentication bypass flaw in OWASP ModSecurity Core Rule Set allowing request body bypass via trailing pathname. This article covers the technical details, affected versions, and mitigation strategies.

Published: February 25, 2026

CVE-2021-35368 Overview

CVE-2021-35368 is a critical security bypass vulnerability affecting OWASP ModSecurity Core Rule Set (CRS), a widely deployed open-source Web Application Firewall (WAF) rule set. The vulnerability allows attackers to completely bypass request body inspection by appending a trailing pathname to HTTP requests. This effectively renders the WAF protection ineffective, enabling malicious payloads such as SQL injection, cross-site scripting, and remote code execution attacks to reach backend applications undetected.

The vulnerability was present in the CRS codebase for several years before discovery, affecting versions 3.1.x before 3.1.2, 3.2.x before 3.2.1, and 3.3.x before 3.3.2. Given the widespread deployment of ModSecurity CRS in production environments protecting web applications, this vulnerability represents a significant security risk as it undermines the core protection mechanism of the WAF.

Critical Impact

Complete WAF bypass allowing attackers to deliver malicious payloads to protected applications without detection. This vulnerability negates the security benefits of ModSecurity CRS deployment.

Affected Products

  • OWASP ModSecurity Core Rule Set 3.1.x before 3.1.2
  • OWASP ModSecurity Core Rule Set 3.2.x before 3.2.1
  • OWASP ModSecurity Core Rule Set 3.3.x before 3.3.2
  • Fedora 36 and 37 (with affected CRS packages)
  • Debian Linux 10.0 (with affected CRS packages)

Discovery Timeline

  • 2021-06-30 - OWASP published security advisory for CVE-2021-35368
  • 2021-11-05 - CVE CVE-2021-35368 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-35368

Vulnerability Analysis

This vulnerability is classified as a request body bypass issue that exploits how the OWASP ModSecurity Core Rule Set handles HTTP request parsing. The CRS provides protection rules that inspect request bodies for malicious content such as SQL injection, XSS payloads, and command injection attempts. However, due to improper handling of trailing pathnames in HTTP requests, attackers can craft requests that cause the CRS rules to skip body inspection entirely.

When a specially crafted request with a trailing pathname is sent to a ModSecurity-protected application, the rule engine fails to properly evaluate the request body against the configured security rules. This means that any malicious payload embedded in the request body passes through to the backend application without triggering any WAF alerts or blocks.

The vulnerability is particularly severe because it operates at the network level, requires no authentication or user interaction, and can be exploited remotely against any application protected by vulnerable CRS versions. The attack complexity is low, making it trivial for attackers to weaponize.

Root Cause

The root cause of CVE-2021-35368 lies in the CRS rule logic that processes HTTP requests before applying security inspections. The rule set contains a flaw in how it determines which requests should have their bodies inspected. When processing requests with certain trailing pathname patterns, the CRS incorrectly classifies the request in a way that bypasses the body inspection phase.

This architectural flaw was present in the CRS codebase for several years, as reported in PortSwigger's coverage. The vulnerability highlights the challenges of maintaining complex rule sets that must handle the wide variety of HTTP request formats while maintaining security coverage.

Attack Vector

The attack vector for CVE-2021-35368 is network-based and can be executed remotely without any privileges or user interaction. An attacker crafts an HTTP request containing a trailing pathname that triggers the bypass condition, then includes malicious payloads in the request body. The payload can be any attack type that CRS would normally block, including:

  • SQL injection payloads targeting database backends
  • Cross-site scripting (XSS) payloads for browser exploitation
  • Remote code execution commands
  • Path traversal sequences
  • XML/JSON injection attacks

The attack exploits the trailing pathname parsing behavior to evade body inspection. While the specific technical implementation involves manipulating HTTP request structure to trigger the bypass condition, attackers can deliver any payload that would normally be blocked by CRS rules. For detailed technical information, refer to the Core Rule Set CVE-2021-35368 advisory.

Detection Methods for CVE-2021-35368

Indicators of Compromise

  • HTTP requests with unusual trailing pathname patterns that differ from normal application traffic
  • Increased attack traffic reaching backend applications that should have been blocked by the WAF
  • Application-level security events (SQL errors, XSS attempts) that were not preceded by WAF blocks
  • Log analysis showing requests that bypassed CRS inspection rules

Detection Strategies

  • Review ModSecurity audit logs for requests that reached backend applications without triggering expected security rules
  • Implement backend application logging to detect attacks that may have bypassed WAF protection
  • Compare CRS version in deployment against known vulnerable versions (3.1.x < 3.1.2, 3.2.x < 3.2.1, 3.3.x < 3.3.2)
  • Deploy network-level monitoring to detect anomalous HTTP request patterns with trailing pathnames

Monitoring Recommendations

  • Enable comprehensive logging at both WAF and application layers to correlate security events
  • Implement anomaly detection for HTTP requests with unusual URI structures
  • Monitor backend application security logs for attack patterns that should have been blocked by CRS
  • Set up alerts for increases in application-layer attacks that may indicate WAF bypass attempts

How to Mitigate CVE-2021-35368

Immediate Actions Required

  • Upgrade OWASP ModSecurity Core Rule Set to patched versions: 3.1.2 or later, 3.2.1 or later, or 3.3.2 or later
  • Verify CRS version currently deployed using configuration files or package management commands
  • Review security logs for potential exploitation attempts during the vulnerable period
  • Consider deploying additional security layers (application-level input validation) while patching

Patch Information

OWASP has released patched versions of the Core Rule Set that address this vulnerability. Organizations should upgrade to the following minimum versions:

  • CRS 3.1.x users: Upgrade to 3.1.2 or later
  • CRS 3.2.x users: Upgrade to 3.2.1 or later
  • CRS 3.3.x users: Upgrade to 3.3.2 or later

For distributions, refer to vendor-specific advisories:

  • Debian LTS Security Announcement
  • Gentoo GLSA 2023-05-25
  • Fedora users should update via standard package management

Workarounds

  • If immediate patching is not possible, consider implementing additional upstream filtering to normalize HTTP requests before they reach ModSecurity
  • Deploy application-level security controls as a defense-in-depth measure
  • Implement strict input validation at the application layer to mitigate potential bypass attacks
  • Consider temporarily increasing logging verbosity to detect potential exploitation attempts
bash
# Verify current CRS version
grep -r "version" /etc/modsecurity/crs-setup.conf

# Check package version on Debian/Ubuntu
apt-cache policy modsecurity-crs

# Check package version on Fedora/RHEL
rpm -q mod_security_crs

# Update CRS on Debian/Ubuntu
sudo apt update && sudo apt install modsecurity-crs

# Update CRS on Fedora
sudo dnf update mod_security_crs

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechOwasp Modsecurity Core Rule Set

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.41%

  • 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-Other
  • Technical References
  • Debian LTS Security Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • PortSwigger Lessons Learned on ModSecurity Vulnerability

  • PortSwigger WAF Bypass ModSecurity Bug

  • Gentoo GLSA 2023-05-25
  • Vendor Resources
  • Core Rule Set CVE-2021-35368 Bypass

  • OWASP ModSecurity Core Rule Set
  • Latest CVEs
  • CVE-2025-49454: TinySalt Path Traversal Vulnerability

  • CVE-2025-48261: MultiVendorX Information Disclosure Flaw

  • CVE-2025-32119: CardGate WooCommerce SQL Injection Flaw

  • CVE-2025-26879: s2Member Plugin Reflected XSS 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