Skip to main content
No exploitation reportedFix available

CVE-2021-32786

No exploitation reported by the sources we read.

  • Published2021-07-22
  • WeaknessCWE-601

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

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.

Timeline

dates in UTC
  1. 2021-07-2222:15CVE publishedNVD

Versions per branch

NVD
Fedoraproject fedora
BranchAffectedFixed in
33.x= 33no fix published
34.x= 34no fix published
Openidc mod auth openidcversion to verify
BranchAffectedFixed in
2.4< 2.4.92.4.9

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • apache-mod_auth_openidcMageia:8all versions · fixed in 2.4.9.4-1.mga8
  • apache2-mod_auth_openidcSUSE:Linux Enterprise Server for SAP Applications 12 SP5all versions · fixed in 2.4.0-3.23.1
  • apache2-mod_auth_openidcSUSE:Linux Enterprise Server 12 SP5all versions · fixed in 2.4.0-3.23.1
  • apache2-mod_auth_openidcSUSE:Linux Enterprise Module for Server Applications 15 SP7all versions · fixed in 2.4.17.1-150600.16.14.1
  • apache2-mod_auth_openidcSUSE:Linux Enterprise Module for Server Applications 15 SP6all versions · fixed in 2.4.17.1-150600.16.14.1
  • apache2-mod_auth_openidcSUSE:Linux Enterprise Module for Server Applications 15 SP3all versions · fixed in 2.3.8-3.15.1
  • apache2-mod_auth_openidcSUSE:Linux Enterprise Module for Server Applications 15 SP2all versions · fixed in 2.3.8-3.15.1
  • apache2-mod_auth_openidcopenSUSE:Tumbleweedall versions · fixed in 2.4.9.4-1.2

16 more package ranges on OSV.dev

Vendor advisories

  • CVE-2021-32786 Red Hat Product Security30 products fixed · 2 known affected

    mod_auth_openidc: open redirect in oidc_validate_redirect_url()

    mod_auth_openidc as a component of Red Hat Enterprise Linux 7 · mod_auth_openidc.src as a component of Red Hat Enterprise Linux 7

  • RHSA-2022:1823 Red Hat Product Security30 products fixed

    Red Hat Security Advisory: mod_auth_openidc:2.3 security update

Full record on NVD

Fix

  1. Vendor fix Red Hat Product Security RHSA-2022:1823 · 30 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  2. No fix planned, says the vendor Red Hat Product Security CVE-2021-32786 · 2 productsOut of support scope

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CNACVSS 3.14.7known since 2026-10-23
  • NVDCVSS 3.16.1read 2026-10-23
  • NVDCVSS 2.05.8read 2026-10-23
  • CNAweakness (CWE)CWE-601known since 2026-10-23
  • NVDweakness (CWE)CWE-601read 2026-10-23
  • FIRST EPSSEPSS score2.4 %2026-11-16
  • OSVaffected packages—

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Published
2021-07-22
Last Modified
2026-06-17
NVD status
Modified

Frequently asked questions

What is CVE-2021-32786?

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.

Is CVE-2021-32786 actively exploited?

Active exploitation of CVE-2021-32786 has not been confirmed. Its EPSS score was 2.4% on 2026-11-16, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2021-32786?

CVE-2021-32786 has a CVSS v3 base score of 6.1 (MEDIUM severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.

Running mod_auth_openidc? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record