CVE-2022-23527Open Redirect in oidc_validate_redirect_url()
mod_auth_openidc is an OpenID Certified™ authentication and authorization module for the Apache 2.x HTTP server. Versions prior to 2.4.12.2 are vulnerable to Open Redirect. When providing a logout parameter to the redirect URI, the existing code in oidc_validate_redirect_url() does not properly check for URLs that start with /\t, leading to an open redirect. This issue has been patched in version 2.4.12.2. Users unable to upgrade can mitigate the issue by configuring mod_auth_openidc to only allow redirection when the destination matches a given regular expression with OIDCRedirectURLsAllowed.
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 | Fix pending | UBUNTU-CVE-2022-23527 | |
| Ubuntu 20.04 | libapache2-mod-auth-openidc | Fix pending | UBUNTU-CVE-2022-23527 | |
| Ubuntu 18.04 | libapache2-mod-auth-openidc | Fix pending | UBUNTU-CVE-2022-23527 | |
| Ubuntu 16.04 | libapache2-mod-auth-openidc | Fix pending | ||
| Debian 14 | libapache2-mod-auth-openidc | Fixed | 2.4.12.2-1 | DEBIAN-CVE-2022-23527 |
| Debian 13 | libapache2-mod-auth-openidc | Fixed | 2.4.12.2-1 | DEBIAN-CVE-2022-23527 |
| Debian 12 | libapache2-mod-auth-openidc | Fixed | 2.4.12.2-1 | DEBIAN-CVE-2022-23527 |
| Red Hat Enterprise Linux 9 | mod_auth_openidc | Fixed | 0:2.4.9.4-4.el9 | RHSA-2023:6365 |
| Red Hat Enterprise Linux 8 | cjose | Fixed | 0:0.6.1-4.module+el8.9.0+19469+5b493da9 | RHSA-2023:6940 |
| Red Hat Enterprise Linux 8 | cjose-devel | Fixed | 0:0.6.1-4.module+el8.9.0+19469+5b493da9 | RHSA-2023:6940 |
| Red Hat Enterprise Linux 8 | mod_auth_openidc | Fixed | 0:2.4.9.4-5.module+el8.9.0+18723+672ccf5d | RHSA-2023:6940 |
| Red Hat Enterprise Linux 7 | mod_auth_openidc | Will not fix Out of support scope | ||
| AlmaLinux 9 | mod_auth_openidc | Fixed | 2.4.9.4-4.el9 | ALSA-2023:6365 |
| AlmaLinux 8 | cjose | Fixed | 0.6.1-4.module_el8.9.0+3631+0ced13d7 | ALSA-2023:6940 |
| AlmaLinux 8 | cjose-devel | Fixed | 0.6.1-4.module_el8.9.0+3631+0ced13d7 | ALSA-2023:6940 |
| AlmaLinux 8 | mod_auth_openidc | Fixed | 2.4.9.4-5.module_el8.9.0+3631+0ced13d7 | ALSA-2023:6940 |
| Rocky Linux 8 | cjose | Fixed | 0:0.6.1-4.module+el8.9.0+1384+4b58c166 | RLSA-2023:6940 |
| Rocky Linux 8 | mod_auth_openidc | Fixed | 0:2.4.9.4-5.module+el8.9.0+1384+4b58c166 | RLSA-2023:6940 |
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.12.2
References
- https://github.com/zmartzone/mod_auth_openidc/security/advisories/GHSA-q6f2-285m-gr53
- https://github.com/zmartzone/mod_auth_openidc/blob/v2.4.12.1/auth_openidc.conf#L975-L984
- 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.