Vulnerability · Published Sep 3, 2021 · Assigned by GitHub_M
CVE-2021-39191URL Redirection to Untrusted Site ('Open Redirect') in mod_auth_openidc
Medium 4.7
In plain English
A medium-severity open redirect in mod_auth_openidc from zmartzone. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.7% (higher than 78% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.4, the 3rd-party init SSO functionality of mod_auth_openidc was reported to be vulnerable to an open redirect attack by supplying a crafted URL in the `target_link_uri` parameter. A patch in version 2.4.9.4 made it so that the `OIDCRedirectURLsAllowed` setting must be applied to the `target_link_uri` parameter. There are no known workarounds aside from upgrading to a patched version.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | cjose | 0.6.1-2.module_el8.6.0+2868+44838709 | ALSA-2022:1823 |
| AlmaLinux:8 | cjose-devel | 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 |
| Debian:12 | libapache2-mod-auth-openidc | 2.4.9.4-1 | DEBIAN-CVE-2021-39191 |
| Debian:13 | libapache2-mod-auth-openidc | 2.4.9.4-1 | DEBIAN-CVE-2021-39191 |
| Debian:14 | libapache2-mod-auth-openidc | 2.4.9.4-1 | DEBIAN-CVE-2021-39191 |
| Rocky Linux:8 | cjose | 0:0.6.1-2.module+el8.3.0+129+2feafa46 | RLSA-2022:1823 |
| Rocky Linux:8 | mod_auth_openidc | 0:2.3.7-11.module+el8.6.0+840+73eca44e | RLSA-2022:1823 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| zmartzone | mod_auth_openidc | <=2.4.9.3 |
Weakness: CWE-601 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N
References
- https://github.com/zmartzone/mod_auth_openidc/security/advisories/GHSA-2pgf-8h6h-gqg2
- https://github.com/zmartzone/mod_auth_openidc/issues/672
- https://github.com/zmartzone/mod_auth_openidc/commit/03e6bfb446f4e3f27c003d30d6a433e5dd8e2b3d
- https://github.com/zmartzone/mod_auth_openidc/releases/tag/v2.4.9.4
- FEDORA-2021-8d9aca2ded vendor-advisory
- FEDORA-2022-814ee0c43b vendor-advisory
- [debian-lts-announce] 20230718 [SECURITY] [DLA 3499-1] libapache2-mod-auth-openidc security update mailing-list