Skip to content
OpenAdvisories
Medium · 4.7 CVE-2021-32786 EUVD-2021-19549

Open Redirect in oidc_validate_redirect_url()

Published Jul 22, 2021 · Updated Aug 3, 2024 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
zmartzone mod_auth_openidc < 2.4.9 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libapache2-mod-auth-openidc 2.4.9-1 —
Debian 13 libapache2-mod-auth-openidc 2.4.9-1 —
Debian 12 libapache2-mod-auth-openidc 2.4.9-1 —
Debian 10 libapache2-mod-auth-openidc 2.3.10.2-1+deb10u2 DLA-3409-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS libapache2-mod-auth-openidc No fix yet —
Ubuntu 18.04 LTS libapache2-mod-auth-openidc No fix yet —
ReleasePackageFixed inAdvisory
RHEL 8 cjose +1 0.6.1-2.module+el8+2454+f890a43a RHSA-2022:1823
RHEL 8 mod_auth_openidc 2.3.7-11.module+el8.6.0+14082+b6f23e95 RHSA-2022:1823

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 cjose +1 0.6.1-2.module_el8.6.0+2868+44838709 ALSA-2022:1823
AlmaLinux 8 mod_auth_openidc 2.3.7-11.module_el8.6.0+2868+44838709 ALSA-2022:1823

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 cjose 0.6.1-2.module+el8.3.0+129+2feafa46 RLSA-2022:1823
Rocky Linux 8 mod_auth_openidc 2.3.7-11.module+el8.6.0+840+73eca44e RLSA-2022:1823
ReleasePackageFixed inAdvisory
SLES 15 SP7 apache2-mod_auth_openidc 2.4.17.1-150600.16.14.1 SUSE-SU-2025:4532-1
SLES 15 SP6 apache2-mod_auth_openidc 2.4.17.1-150600.16.14.1 SUSE-SU-2025:4532-1
SLES 15 SP3 apache2-mod_auth_openidc 2.3.8-3.15.1 SUSE-SU-2021:3020-1
SLES 15 SP2 apache2-mod_auth_openidc 2.3.8-3.15.1 SUSE-SU-2021:3020-1
SLES 12 SP5 apache2-mod_auth_openidc 2.4.0-3.23.1 SUSE-SU-2021:3352-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP5 apache2-mod_auth_openidc 2.4.0-3.23.1 SUSE-SU-2021:3352-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed apache2-mod_auth_openidc 2.4.9.4-1.2 openSUSE-SU-2024:10624-1
openSUSE Leap 15.6 apache2-mod_auth_openidc 2.4.17.1-150600.16.14.1 SUSE-SU-2025:4532-1
openSUSE Leap 15.3 apache2-mod_auth_openidc 2.3.8-3.15.1 openSUSE-SU-2021:3020-1
openSUSE Leap 15.2 apache2-mod_auth_openidc 2.3.8-lp152.5.6.1 openSUSE-SU-2021:1277-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) httpd 2.4.52-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 cjose +1 0.6.1-2.module+el8+5139+bcb28322 ELSA-2022-1823
Oracle Linux 8 mod_auth_openidc 2.3.7-11.module+el8.6.0+20572+b6f23e95 ELSA-2022-1823

Advisories 12

References