LiveActive security incident?Get immediate response
CVE Record

CVE-2021-32785: Format string bug in the Redis cache implementation

mod_auth_openidc is an authentication/authorization module for the Apache 2.x HTTP server that functions as an OpenID Connect Relying Party, authenticating users against an OpenID Connect Provider. When mod_auth_openidc versions prior to 2.4.9 are configured to use an unencrypted Redis cache (`OIDCCacheEncrypt off`, `OIDCSessionType server-cache`, `OIDCCacheType redis`), `mod_auth_openidc` wrongly performed argument interpolation before passing Redis requests to `hiredis`, which would perform it again and lead to an uncontrolled format string bug. Initial assessment shows that this bug does not appear to allow gaining arbitrary code execution, but can reliably provoke a denial of service by repeatedly crashing the Apache workers. This bug has been corrected in version 2.4.9 by performing argument interpolation only once, using the `hiredis` API. As a workaround, this vulnerability can be mitigated by setting `OIDCCacheEncrypt` to `on`, as cache keys are cryptographically hashed before use when this option is enabled.

MediumCVSS 5.3Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

This issue can make Apache authentication workers crash when a specific Redis-backed mod_auth_openidc configuration is exposed. It is not described as a data theft or code execution issue. Business impact is service disruption for protected web applications until the module is upgraded or the cache is encrypted.

Executive priority

Treat as a targeted availability risk, not a broad compromise scenario. Remediate promptly on externally reachable authentication front ends, especially where outages affect customer access or internal single sign-on availability.

Technical view

A CWE-134 format string flaw occurred because mod_auth_openidc interpolated Redis request arguments before hiredis interpolated them again. Under the affected Redis cache configuration, attacker-controlled input could trigger worker crashes. The advisory says arbitrary code execution did not appear likely, but denial of service was reliable.

Likely exposure

Exposure is narrow: Apache deployments using mod_auth_openidc before 2.4.9 with Redis server-side cache and OIDCCacheEncrypt off. Sites using encrypted cache keys or other cache/session configurations are not described as affected in the provided sources.

Exploitation context

The CVE is not listed as KEV, and the provided sources do not claim active exploitation. The public advisory describes reliable denial of service through repeated Apache worker crashes, but does not support claims of arbitrary code execution.

Researcher notes

The vulnerable condition depends on a specific Redis cache configuration and unencrypted cache keys. The fix changes Redis request handling to use the hiredis API with one interpolation pass. Evidence for impact beyond denial of service is not present in the supplied sources.

Mitigation direction

  • Upgrade mod_auth_openidc to version 2.4.9 or later.
  • Set OIDCCacheEncrypt to on where Redis cache remains in use.
  • Check distribution or vendor advisories for packaged backports.
  • Prioritize internet-facing authentication gateways and high-availability portals.

Validation and detection

  • Inventory Apache hosts running mod_auth_openidc.
  • Confirm installed mod_auth_openidc versions are 2.4.9 or patched builds.
  • Review configuration for OIDCSessionType server-cache and OIDCCacheType redis.
  • Verify OIDCCacheEncrypt is not set to off on affected versions.
  • Check Apache error logs for repeated worker crashes around authentication traffic.
Prepared
Confidence
high
Sources
7

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-134: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-32785 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
5.3 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
7Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
5.3CVSS 3.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L3.91.4Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

5.3Medium
CVSS 3.1 vector shape for CVE-2021-32785Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
zmartzonemod_auth_openidc< 2.4.9Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-134 · source CWE mapping

Use of Externally-Controlled Format String

Use of Externally-Controlled Format String represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.