
CVE catalog
CVE-2021-32786
libapache2-mod-auth-openidc: CVE-2021-32786
- Severity
- Medium · CVSS 6.1
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 2.36% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | libapache2-mod-auth-openidc | sid | 2.4.20.3-1 | fixed |
| Debian | libapache2-mod-auth-openidc | forky | 2.4.20.3-1 | fixed |
| Debian | libapache2-mod-auth-openidc | trixie | 2.4.17-1 | fixed |
| Debian | libapache2-mod-auth-openidc | trixie-security | 2.4.17-1+deb13u1 | fixed |
| Debian | libapache2-mod-auth-openidc | bookworm | 2.4.12.3-2+deb12u4 | fixed |
| Debian | libapache2-mod-auth-openidc | bookworm-security | 2.4.12.3-2+deb12u5 | fixed |
| Ubuntu | libapache2-mod-auth-openidc | 18.04 | 2.1.6-1 | vulnerable |
| Ubuntu | libapache2-mod-auth-openidc | 18.04 | 2.3.1-2 | vulnerable |
| Ubuntu | libapache2-mod-auth-openidc | 18.04 | 2.3.2-1 | vulnerable |
| Ubuntu | libapache2-mod-auth-openidc | 18.04 | 2.3.2-1build1 | vulnerable |
| Ubuntu | libapache2-mod-auth-openidc | 18.04 | 2.3.3-1build1 | vulnerable |
| Ubuntu | libapache2-mod-auth-openidc | 20.04 | 2.3.10.2-1 | vulnerable |
| Ubuntu | libapache2-mod-auth-openidc | 20.04 | 2.4.0.4-1 | vulnerable |
| Ubuntu | libapache2-mod-auth-openidc | 20.04 | 2.4.1-1 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | libapache2-mod-auth-openidc | source | sid | 2.4.9-1 | not yet assigned | Not reported | [991582] |
| Debian | libapache2-mod-auth-openidc | source | forky | 2.4.9-1 | not yet assigned | Not reported | [991582] |
| Debian | libapache2-mod-auth-openidc | source | trixie | 2.4.9-1 | not yet assigned | Not reported | [991582] |
| Debian | libapache2-mod-auth-openidc | source | bookworm | 2.4.9-1 | not yet assigned | Not reported | [991582] |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
[Debian 12 (Bookworm)]
- [libapache2-mod-auth-openidc]Unknown
Details (4)
2.4.12.3-2+deb12u4· amd64 · bookwormFixed · Fixed:
2.4.9-1dsa · libapache2-mod-auth-openidc · debian · bookworm; dsa · libapache2-mod-auth-openidc · debian · 12
2.4.12.3-2+deb12u4· arm64 · bookwormFixed · Fixed:
2.4.9-1dsa · libapache2-mod-auth-openidc · debian · bookworm; dsa · libapache2-mod-auth-openidc · debian · 12
2.4.12.3-2+deb12u4· amd64 · bookworm-securityFixed · Fixed:
2.4.9-1dsa · libapache2-mod-auth-openidc · debian · bookworm; dsa · libapache2-mod-auth-openidc · debian · 12
2.4.12.3-2+deb12u4· arm64 · bookworm-securityFixed · Fixed:
2.4.9-1dsa · libapache2-mod-auth-openidc · debian · bookworm; dsa · libapache2-mod-auth-openidc · debian · 12
[Debian 13 (Trixie)]
- [libapache2-mod-auth-openidc]Unknown
Details (3)
2.4.17-1· amd64 · trixieFixed · Fixed:
2.4.9-1dsa · libapache2-mod-auth-openidc · debian · 13
2.4.17-1· arm64 · trixieFixed · Fixed:
2.4.9-1dsa · libapache2-mod-auth-openidc · debian · 13
2.4.17-1+deb13u1· amd64 · trixie-securityFixed · Fixed:
2.4.9-1dsa · libapache2-mod-auth-openidc · debian · 13
Observed:
References
- [https://access.redhat.com/errata/RHSA-2022:1823]
- [https://ftp.suse.com/pub/projects/security/csaf/rhsa-2022_1823.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2021-32786]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2021-32786]
- [https://security-tracker.debian.org/tracker/CVE-2021-32786]
- [https://wid.cert-bund.de/.well-known/csaf/white/2022/wid-sec-w-2023-0580.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]