CVE-2021-32786
CVE-2021-32786 · Open Redirect in oidc_validate_redirect_url()
CVSS 4.7 · Medium · EPSS 2.4% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- mod_auth_openidcNo fix published
- libapache2-mod-auth-openidc Debian 12Update to 2.4.9-1
- libapache2-mod-auth-openidc Debian 13Update to 2.4.9-1
- libapache2-mod-auth-openidc Debian 14Update to 2.4.9-1
- and 2 more
Check the installed version:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="libapache2-mod-auth-openidc"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
- Published
- Updated
Fixes in distributions
- SUSE-SU-2025:4532-1 · openSUSE Leap 15.6, SUSE Linux Enterprise Module for Server Applications 15 SP6, SUSE Linux Enterprise Module for Server Applications 15 SP7 ·
- RHSA-2022:1823 · Red Hat Enterprise Linux 8 appstream ·
- openSUSE-SU-2024:10624-1 · openSUSE Tumbleweed ·
- DLA-3409-1 · Debian 10 ·
- ALSA-2022:1823 · AlmaLinux 8 ·
- RLSA-2022:1823 · Rocky Linux 8 ·
- SUSE-SU-2021:3352-1 · SUSE Linux Enterprise Server 12 SP5, SUSE Linux Enterprise Server for SAP Applications 12 SP5 ·
- openSUSE-SU-2021:1277-1 · openSUSE Leap 15.2 ·
- openSUSE-SU-2021:3020-1 · openSUSE Leap 15.3 ·
- SUSE-SU-2021:3020-1 · SUSE Linux Enterprise Module for Server Applications 15 SP2, SUSE Linux Enterprise Module for Server Applications 15 SP3 ·
Stack: system
Affected products and versions
mod_auth_openidc
- Versions
- < 2.4.9: Affected
No fix published
libapache2-mod-auth-openidc Debian 12
- Affected ranges
- ECOSYSTEM: < 2.4.9-1
Update to 2.4.9-1
libapache2-mod-auth-openidc Debian 13
- Affected ranges
- ECOSYSTEM: < 2.4.9-1
Update to 2.4.9-1
libapache2-mod-auth-openidc Debian 14
- Affected ranges
- ECOSYSTEM: < 2.4.9-1
Update to 2.4.9-1
libapache2-mod-auth-openidc Ubuntu 18.04 LTS
- Versions
- 2.1.6-1
- 2.3.1-2
- 2.3.2-1
- 2.3.2-1build1
- 2.3.3-1build1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
libapache2-mod-auth-openidc Ubuntu 20.04 LTS
- Versions
- 2.3.10.2-1
- 2.4.0.4-1
- 2.4.1-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- https://github.com/zmartzone/mod_auth_openidc/releases/tag/v2.4.9
- https://github.com/zmartzone/mod_auth_openidc/security/advisories/GHSA-xm4c-5wm5-jqv7
- https://github.com/zmartzone/mod_auth_openidc/commit/3a115484eb927bc6daa5737dd84f88ff4bbc5544
- https://daniel.haxx.se/blog/2017/01/30/one-url-standard-please/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FZVF6BSJLRQZ7PFFR4X5JSU6KUJYNOCU/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QXAWKPT5LXZSUTFSJ6IWSZC7RMYYQXQD/
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://security.netapp.com/advisory/ntap-20210902-0001/
- https://lists.debian.org/debian-lts-announce/2023/04/msg00034.html
- https://nvd.nist.gov/vuln/detail/CVE-2021-32786