LiveActive security incident?Get immediate response
CVE Record

CVE-2021-32786: Open Redirect in oidc_validate_redirect_url()

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. In versions prior to 2.4.9, `oidc_validate_redirect_url()` does not parse URLs the same way as most browsers do. As a result, this function can be bypassed and leads to an Open Redirect vulnerability in the logout functionality. This bug has been fixed in version 2.4.9 by replacing any backslash of the URL to redirect with slashes to address a particular breaking change between the different specifications (RFC2396 / RFC3986 and WHATWG). As a workaround, this vulnerability can be mitigated by configuring `mod_auth_openidc` to only allow redirection whose destination matches a given regular expression.

MediumCVSS 4.7Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

This issue lets an attacker abuse certain logout redirects in Apache deployments using mod_auth_openidc before 2.4.9. It is not a server takeover, but it can send users from a trusted site to an attacker-controlled destination, supporting phishing or trust abuse.

Executive priority

Treat this as a moderate-priority fix, highest for internet-facing SSO or customer portals. It does not appear to enable direct compromise, but trusted-domain redirects are useful in phishing and can damage user trust.

Technical view

oidc_validate_redirect_url() parsed redirect URLs differently from common browsers. Backslash handling could bypass validation in logout functionality, causing CWE-601 open redirect. Version 2.4.9 fixes this by replacing backslashes with slashes before validation; a regex-based redirect allowlist is the documented workaround.

Likely exposure

Exposure is limited to Apache 2.x HTTP Server environments running zmartzone mod_auth_openidc before 2.4.9, including deployments receiving it through distribution or vendor packages. The vulnerable surface is logout redirection behavior, not the whole authentication flow.

Exploitation context

The CVE is not listed in KEV, and the provided sources do not state active exploitation. CVSS indicates network access, low attack complexity, no privileges, and required user interaction, with limited integrity impact.

Researcher notes

Primary evidence comes from the GitHub advisory, release, and fixing commit. The root cause is URL parsing inconsistency across RFC2396, RFC3986, and WHATWG behavior. Sources support the affected range, fix version, workaround, and downstream advisories, but not active exploitation.

Mitigation direction

  • Upgrade mod_auth_openidc to version 2.4.9 or later.
  • Apply relevant vendor package updates where mod_auth_openidc is bundled.
  • Configure redirect destinations to match a strict regular expression allowlist.
  • Review logout redirect settings for broad or permissive destination patterns.
  • Check vendor advisories for embedded or downstream package status.

Validation and detection

  • Inventory Apache servers using mod_auth_openidc.
  • Confirm installed mod_auth_openidc versions are 2.4.9 or later.
  • Review logout redirect configuration for strict destination allowlisting.
  • Verify vendor-managed systems have received corresponding security updates.
  • Document any exception where upgrade depends on vendor guidance.
Prepared
Confidence
high
Sources
10

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 · medium confidence lookup

CWE-601: User-session and phishing behavior lookup

Client-side and session-facing weaknesses should be reviewed alongside initial-access and user-execution behaviors. 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
cve · low confidence lookup

CVE-2021-32786 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
4.7 (3.1)
Known Exploited
No
Published

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

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
10Source 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
4.7CVSS 3.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N2.81.4Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

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

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

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-601 · source CWE mapping

URL Redirection to Untrusted Site ('Open Redirect')

URL Redirection to Untrusted Site ('Open Redirect') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.