{"schemaVersion":3,"id":"CVE-2021-32786","aliases":["UBUNTU-CVE-2021-32786","DEBIAN-CVE-2021-32786"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2021-07-22T00:00:00.000Z","modified":"2024-08-03T23:33:55.659Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.1,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":4.7,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":6.1,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","exploitability":7.2,"impact":4.5,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":6.1,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","exploitability":7.2,"impact":4.5,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.1,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5.8,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.02364,"percentile":0.83562,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.02364},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02364,"percentile":0.83562}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02364,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02364,"percentile":0.83562}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_7C969E239B7CB75D","name":"Exploit Reference (daniel.haxx.se)","source":"reference","url":"https://daniel.haxx.se/blog/2017/01/30/one-url-standard-please/","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site ('Open Redirect')","description":"The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Low","url":"https://cwe.mitre.org/data/definitions/601.html"}],"affected":[{"vendor":"debian","product":"libapache2-mod-auth-openidc","name":"libapache2-mod-auth-openidc","label":"libapache2-mod-auth-openidc","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/libapache2-mod-auth-openidc","purlType":"deb","versions":[{"text":"< 2.4.9-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.4.9-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"libapache2-mod-auth-openidc","name":"libapache2-mod-auth-openidc","label":"libapache2-mod-auth-openidc","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/libapache2-mod-auth-openidc","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"33","noFixRecorded":false,"fixedIn":null},{"text":"34","noFixRecorded":false,"fixedIn":null}],"versionsText":"33 | 34","eol":{"isEol":true,"eolDate":"2021-11-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"33","label":"33","eolFrom":"2021-11-30T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"openidc","product":"mod_auth_openidc","name":"mod auth openidc","label":"mod_auth_openidc","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.4.9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.4.9","eol":null,"hubHref":"/vendor/openidc/mod_auth_openidc"},{"vendor":"zmartzone","product":"mod_auth_openidc","name":"mod_auth_openidc","label":"mod_auth_openidc","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.4.9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.4.9","eol":null,"hubHref":"/vendor/zmartzone/mod_auth_openidc"}],"affectedCount":5,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/zmartzone/mod_auth_openidc/releases/tag/v2.4.9","label":"github.com/zmartzone/mod_auth_openidc/releases/tag/v2.4.9","hostname":"github.com","tags":["REPORT","Release Notes","Third Party Advisory"]},{"url":"https://github.com/zmartzone/mod_auth_openidc/security/advisories/GHSA-xm4c-5wm5-jqv7","label":"github.com/zmartzone/mod_auth_openidc/security/advisories/GHSA-xm4c-5wm5-jqv7","hostname":"github.com","tags":["REPORT","Third Party Advisory"]},{"url":"https://github.com/zmartzone/mod_auth_openidc/commit/3a115484eb927bc6daa5737dd84f88ff4bbc5544","label":"github.com/zmartzone/mod_auth_openidc/commit/3a115484eb927bc6daa5737dd84f88ff4bbc5544","hostname":"github.com","tags":["REPORT","Patch","Third Party Advisory"]},{"url":"https://daniel.haxx.se/blog/2017/01/30/one-url-standard-please/","label":"daniel.haxx.se/blog/2017/01/30/one-url-standard-please/","hostname":"daniel.haxx.se","tags":["REPORT","Exploit","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FZVF6BSJLRQZ7PFFR4X5JSU6KUJYNOCU/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QXAWKPT5LXZSUTFSJ6IWSZC7RMYYQXQD/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2022.html","label":"www.oracle.com/security-alerts/cpuapr2022.html","hostname":"www.oracle.com","tags":["Patch","Third Party Advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20210902-0001/","label":"security.netapp.com/advisory/ntap-20210902-0001/","hostname":"security.netapp.com","tags":["Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/04/msg00034.html","label":"lists.debian.org/debian-lts-announce/2023/04/msg00034.html","hostname":"lists.debian.org","tags":["Mailing List"]},{"url":"https://ubuntu.com/security/CVE-2021-32786","label":"ubuntu.com/security/CVE-2021-32786","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-32786","label":"www.cve.org/CVERecord?id=CVE-2021-32786","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-32786","label":"security-tracker.debian.org/tracker/CVE-2021-32786","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32786","label":"nvd.nist.gov/vuln/detail/CVE-2021-32786","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-3409-1","MGASA-2021-0452","OPENSUSE-SU-2021:1277-1","OPENSUSE-SU-2021:3020-1","OPENSUSE-SU-2024:10624-1","RHSA-2022:1823","SUSE-SU-2021:3020-1","SUSE-SU-2021:3352-1","SUSE-SU-2025:4532-1"],"duplicates":[],"related":["OPENSUSE-SU-2021:1277-1","OPENSUSE-SU-2021:3020-1","OPENSUSE-SU-2024:10624-1","SUSE-SU-2021:3020-1","SUSE-SU-2021:3352-1","SUSE-SU-2025:4532-1"]},"timeline":[{"kind":"published","date":"2021-07-22T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T23:33:55.659Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":35,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T23:49:16.474Z","stale":false,"partial":false}}