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

CVE-2021-32785: Mod Auth OpenIDC DoS Vulnerability

CVE-2021-32785 is a denial of service flaw in mod_auth_openidc affecting unencrypted Redis cache configurations. Attackers can crash Apache workers through format string bugs. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: February 25, 2026

CVE-2021-32785 Overview

CVE-2021-32785 is a format string vulnerability affecting mod_auth_openidc, an authentication and authorization module for the Apache 2.x HTTP server that functions as an OpenID Connect Relying Party. When configured to use an unencrypted Redis cache with specific settings (OIDCCacheEncrypt off, OIDCSessionType server-cache, OIDCCacheType redis), the module incorrectly performs argument interpolation before passing Redis requests to the hiredis library, which then performs interpolation again. This double interpolation leads to an uncontrolled format string bug that can be exploited to reliably cause denial of service by repeatedly crashing Apache worker processes.

Critical Impact

This vulnerability enables remote attackers to crash Apache workers without authentication, causing service disruption for web applications relying on mod_auth_openidc for OpenID Connect authentication.

Affected Products

  • OpenIDC mod_auth_openidc (versions prior to 2.4.9)
  • Apache HTTP Server (when used with vulnerable mod_auth_openidc)
  • NetApp Cloud Backup
  • Debian Linux 10.0

Discovery Timeline

  • 2021-07-22 - Vulnerability discovered by @thomas-chauchefoin-sonarsource
  • 2021-07-22 - CVE CVE-2021-32785 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-32785

Vulnerability Analysis

This vulnerability is classified as CWE-134 (Use of Externally-Controlled Format String). The root issue lies in the interaction between mod_auth_openidc and the hiredis Redis client library. When Redis caching is enabled without encryption, the module constructs Redis commands using format string operations before passing them to hiredis API functions. The hiredis library then performs its own format string processing on the same data, resulting in double interpolation.

An attacker who can influence cache keys or values—potentially through crafted authentication requests—can inject format string specifiers that survive the first interpolation and get processed during the second pass. While the security advisory indicates this does not appear to allow arbitrary code execution, it reliably triggers crashes in Apache worker processes. Repeated exploitation can effectively render the web application unavailable.

Root Cause

The vulnerability stems from improper handling of format string arguments in the Redis cache implementation. The module used direct string formatting when constructing Redis commands rather than utilizing the proper hiredis API (redisvCommand) that handles argument interpolation safely. This architectural oversight allowed user-controllable data to be interpreted as format string specifiers, leading to memory access violations and worker crashes.

Attack Vector

The attack is network-based and can be performed without authentication. An attacker sends specially crafted requests to a web application protected by mod_auth_openidc where:

  1. The server uses Redis for session caching (OIDCCacheType redis)
  2. Server-side session storage is enabled (OIDCSessionType server-cache)
  3. Cache encryption is disabled (OIDCCacheEncrypt off)

The attacker crafts input containing format string specifiers (such as %s, %n, %x) that get incorporated into cache key operations. When the malformed key is processed through the double-interpolation path, it causes memory corruption or invalid memory access, crashing the Apache worker.

text
+07/22/2021
+- use redisvCommand to avoid crash with crafted key when using Redis without encryption; thanks @thomas-chauchefoin-sonarsource
+
 07/15/2021
 - verify that "alg" is not none in logout_token explicitly
 - make session not found on backchannel logout produce a log warning instead of error

Source: GitHub Commit Update

Detection Methods for CVE-2021-32785

Indicators of Compromise

  • Repeated Apache worker crashes or restarts in a short time period
  • Error log entries showing segmentation faults or memory access violations in mod_auth_openidc
  • Unusual patterns in Redis cache keys containing format string specifiers (%s, %n, %x, etc.)
  • Abnormal authentication request patterns with malformed parameters

Detection Strategies

  • Monitor Apache error logs for segmentation faults or crash reports associated with mod_auth_openidc
  • Implement log analysis rules to detect format string patterns in authentication-related request parameters
  • Deploy intrusion detection signatures matching format string injection attempts in HTTP request headers and parameters
  • Track Redis cache key anomalies through Redis monitoring tools

Monitoring Recommendations

  • Enable verbose logging for mod_auth_openidc to capture detailed request information
  • Configure process monitoring to alert on abnormal Apache worker restart rates
  • Implement rate limiting on authentication endpoints to mitigate DoS impact
  • Set up availability monitoring for applications using mod_auth_openidc

How to Mitigate CVE-2021-32785

Immediate Actions Required

  • Upgrade mod_auth_openidc to version 2.4.9 or later immediately
  • If immediate upgrade is not possible, enable cache encryption by setting OIDCCacheEncrypt on in the Apache configuration
  • Review and audit current mod_auth_openidc configurations across all Apache servers
  • Implement rate limiting on authentication endpoints as a defense-in-depth measure

Patch Information

The vulnerability was fixed in mod_auth_openidc version 2.4.9. The patch modifies the code to use the redisvCommand API from hiredis, which properly handles argument interpolation internally, eliminating the double-interpolation issue. Organizations should update to this version or later through their package manager or by building from the GitHub Release v2.4.9.

Additional security advisories have been published by downstream vendors:

  • GitHub Security Advisory GHSA-55r8-6w97-xxr4
  • Oracle Critical Patch Update April 2022
  • NetApp Security Advisory ntap-20210902-0001
  • Debian LTS Announcement

Workarounds

  • Set OIDCCacheEncrypt on in your Apache configuration to enable cache encryption, which cryptographically hashes cache keys before use
  • Consider switching to a different cache type (memcache or shm) if Redis encryption cannot be enabled
  • Implement network-level protections to restrict access to the authentication endpoints
  • Deploy a Web Application Firewall (WAF) with rules to filter format string patterns in request parameters
bash
# Configuration example - Enable cache encryption as workaround
# Add to Apache configuration for mod_auth_openidc

# Enable cache encryption to mitigate the vulnerability
OIDCCacheEncrypt on

# Alternative: If using Redis, ensure this setting is enabled
# This cryptographically hashes keys before use
OIDCCacheType redis
OIDCSessionType server-cache
OIDCCacheEncrypt on

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechApache

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.26%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-134
  • Technical References
  • GitHub Release v2.4.9

  • Debian LTS Announcement

  • NetApp Security Advisory ntap-20210902-0001
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-55r8-6w97-xxr4

  • Oracle Critical Patch Update April 2022
  • Related CVEs
  • CVE-2026-2717: HTTP Headers Plugin DoS Vulnerability

  • CVE-2022-28615: Apache HTTP Server DOS Vulnerability

  • CVE-2025-55753: Apache HTTP Server DoS Vulnerability

  • CVE-2024-36387: Apache HTTP Server DoS 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