# CVE-2021-32786: Open Redirect in oidc_validate_redirect_url()

- Severity: Medium 4.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.34%, higher than 84% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-07-22T00:00:00.000Z
- Modified: 2026-06-17T03:53:37.627Z
- Weaknesses: CWE-601
- 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.

(As written by CVE List.)

## Affected

- zmartzone mod_auth_openidc: < 2.4.9
- openidc mod_auth_openidc: before 2.4.9
- fedoraproject fedora: 33; 34

## Every score

- GitHub_M: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 5.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:N`

## References

- <https://daniel.haxx.se/blog/2017/01/30/one-url-standard-please/> (exploit, third-party-advisory)
- <https://github.com/zmartzone/mod_auth_openidc/releases/tag/v2.4.9> (release-notes, third-party-advisory)
- <https://github.com/zmartzone/mod_auth_openidc/security/advisories/GHSA-xm4c-5wm5-jqv7> (third-party-advisory)
- <https://github.com/zmartzone/mod_auth_openidc/commit/3a115484eb927bc6daa5737dd84f88ff4bbc5544> (patch, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FZVF6BSJLRQZ7PFFR4X5JSU6KUJYNOCU/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QXAWKPT5LXZSUTFSJ6IWSZC7RMYYQXQD/> (vendor-advisory)
- <https://www.oracle.com/security-alerts/cpuapr2022.html> (patch, third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20210902-0001/> (third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2023/04/msg00034.html> (mailing-list)

## Sources

- CVE List: [CVE-2021-32786](https://www.cve.org/CVERecord?id=CVE-2021-32786), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-32786](https://nvd.nist.gov/vuln/detail/CVE-2021-32786), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-32786 · Whole record: https://cve.day/CVE-2021-32786.json · Rebuilt by cve.day 2026-11-25T22:58:02.846Z
