CVE-2021-32786
No exploitation reported by the sources we read.
- Published2021-07-22
- WeaknessCWE-601
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « 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- 2021-07-2222:15CVE publishedNVD
Versions per branch
NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 33.x | = 33 | no fix published | NVD |
| 34.x | = 34 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 2.4 | < 2.4.9 | 2.4.9 | NVD |
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
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
Red Hat Security Advisory: mod_auth_openidc:2.3 security update
Fix
- 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
- No fix planned, says the vendor Red Hat Product Security CVE-2021-32786 · 2 productsOut of support scope
Advisories and patches
- github.comPatch
- github.comRelease Notes
- www.oracle.comPatch
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-11-17
- Metasploit modules
- none listed Metasploit Framework
Sources
Identifiers
- AZL-6480same flawAzure Linux · MIT
- EUVD-2021-19549same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- ALSA-2022:1823advisory covering several CVEsAlmaLinux · MIT
- DLA-3409-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2021-0452advisory covering several CVEsMageia · LicenseRef-unstated
- openSUSE-SU-2021:1277-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2021:3020-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:10624-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2022:1823advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2022:1823advisory covering several CVEsRocky Linux · BSD-3-Clause
- SUSE-SU-2021:3020-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2021:3352-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2025:4532-1advisory covering several CVEsSUSE · LicenseRef-unstated
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?
Is CVE-2021-32786 actively exploited?
What is the CVSS score for CVE-2021-32786?
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
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0