CVE-2021-39191URL Redirection to Untrusted Site ('Open Redirect') in mod_auth_openidc
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.
What to do
Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | libapache2-mod-auth-openidc | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | libapache2-mod-auth-openidc | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | libapache2-mod-auth-openidc | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | libapache2-mod-auth-openidc | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | libapache2-mod-auth-openidc | Fix pending | UBUNTU-CVE-2021-39191 | |
| Ubuntu 18.04 | libapache2-mod-auth-openidc | Fix pending | UBUNTU-CVE-2021-39191 | |
| Ubuntu 16.04 | libapache2-mod-auth-openidc | Fix pending | ||
| Debian 14 | libapache2-mod-auth-openidc | Fixed | 2.4.9.4-1 | DEBIAN-CVE-2021-39191 |
| Debian 13 | libapache2-mod-auth-openidc | Fixed | 2.4.9.4-1 | DEBIAN-CVE-2021-39191 |
| Debian 12 | libapache2-mod-auth-openidc | Fixed | 2.4.9.4-1 | DEBIAN-CVE-2021-39191 |
| Red Hat Enterprise Linux 9 | mod_auth_openidc | Not affected | ||
| Red Hat Enterprise Linux 8 | cjose | Fixed | 0:0.6.1-2.module+el8+2454+f890a43a | RHSA-2022:1823 |
| Red Hat Enterprise Linux 8 | cjose-devel | Fixed | 0:0.6.1-2.module+el8+2454+f890a43a | RHSA-2022:1823 |
| Red Hat Enterprise Linux 8 | mod_auth_openidc | Fixed | 0:2.3.7-11.module+el8.6.0+14082+b6f23e95 | RHSA-2022:1823 |
| Red Hat Enterprise Linux 7 | mod_auth_openidc | Will not fix Out of support scope | ||
| AlmaLinux 8 | cjose | Fixed | 0.6.1-2.module_el8.6.0+2868+44838709 | ALSA-2022:1823 |
| AlmaLinux 8 | cjose-devel | Fixed | 0.6.1-2.module_el8.6.0+2868+44838709 | ALSA-2022:1823 |
| AlmaLinux 8 | mod_auth_openidc | Fixed | 2.3.7-11.module_el8.6.0+2868+44838709 | ALSA-2022:1823 |
| Rocky Linux 8 | cjose | Fixed | 0:0.6.1-2.module+el8.3.0+129+2feafa46 | RLSA-2022:1823 |
| Rocky Linux 8 | mod_auth_openidc | Fixed | 0:2.3.7-11.module+el8.6.0+840+73eca44e | RLSA-2022:1823 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- zmartzone mod_auth_openidc: affected: <=2.4.9.3
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
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
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/32RGPW5LZDLDTB7MKZIGAHPSLFOUNWR5/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RHXO4O4G2UQS7X6OQJCVZKHZAQ7SAIFB/
- https://lists.debian.org/debian-lts-announce/2023/07/msg00020.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.