{"schemaVersion":4,"id":"CVE-2021-39191","aliases":["UBUNTU-CVE-2021-39191","DEBIAN-CVE-2021-39191"],"status":"published","duplicateOf":null,"title":"URL Redirection to Untrusted Site ('Open Redirect') in mod_auth_openidc","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.","dates":{"published":"2021-09-03T00:00:00.000Z","modified":"2024-08-04T01:58:18.283Z","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.01735,"percentile":0.78464,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.01735},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0175,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0175,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0175,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0175,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0175,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.01735,"percentile":0.78464}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.01735,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.01735,"percentile":0.78464}]},"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":"GITHUB_ZMARTZONE_MOD_AUTH_OPENIDC","name":"Mod Auth Openidc","source":"github","url":"https://github.com/zmartzone/mod_auth_openidc/issues/672","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site","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.4-1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"2.4.9.4-1","endInclusive":false}}],"versionsText":"< 2.4.9.4-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,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"10.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"exact","version":"10.0"}}],"versionsText":"10.0","eol":{"isEol":true,"eolDate":"2024-06-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"10","label":"10 (Buster)","eolFrom":"2024-06-30T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"10.13"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"35","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"exact","version":"35"}},{"text":"36","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"exact","version":"36"}}],"versionsText":"35 | 36","eol":{"isEol":true,"eolDate":"2022-12-13T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"35","label":"35","eolFrom":"2022-12-13T00: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.4","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"2.4.9.4","endInclusive":false}}],"versionsText":"< 2.4.9.4","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.3","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"2.4.9.3","endInclusive":true}}],"versionsText":"≤ 2.4.9.3","eol":null,"hubHref":"/vendor/zmartzone/mod_auth_openidc"}],"affectedCount":6,"eol":{"hasEol":true,"count":2},"references":[{"url":"https://github.com/zmartzone/mod_auth_openidc/security/advisories/GHSA-2pgf-8h6h-gqg2","label":"github.com/zmartzone/mod_auth_openidc/security/advisories/GHSA-2pgf-8h6h-gqg2","hostname":"github.com","tags":["REPORT","Vendor Advisory"]},{"url":"https://github.com/zmartzone/mod_auth_openidc/issues/672","label":"github.com/zmartzone/mod_auth_openidc/issues/672","hostname":"github.com","tags":["REPORT","Exploit"]},{"url":"https://github.com/zmartzone/mod_auth_openidc/commit/03e6bfb446f4e3f27c003d30d6a433e5dd8e2b3d","label":"github.com/zmartzone/mod_auth_openidc/commit/03e6bfb446f4e3f27c003d30d6a433e5dd8e2b3d","hostname":"github.com","tags":["REPORT","Patch","Third Party Advisory"]},{"url":"https://github.com/zmartzone/mod_auth_openidc/releases/tag/v2.4.9.4","label":"github.com/zmartzone/mod_auth_openidc/releases/tag/v2.4.9.4","hostname":"github.com","tags":["REPORT","Release Notes"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/32RGPW5LZDLDTB7MKZIGAHPSLFOUNWR5/","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/RHXO4O4G2UQS7X6OQJCVZKHZAQ7SAIFB/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/07/msg00020.html","label":"lists.debian.org/debian-lts-announce/2023/07/msg00020.html","hostname":"lists.debian.org","tags":["Mailing List"]},{"url":"https://ubuntu.com/security/CVE-2021-39191","label":"ubuntu.com/security/CVE-2021-39191","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-39191","label":"www.cve.org/CVERecord?id=CVE-2021-39191","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-39191","label":"security-tracker.debian.org/tracker/CVE-2021-39191","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-39191","label":"nvd.nist.gov/vuln/detail/CVE-2021-39191","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-3499-1","RHSA-2022:1823","SUSE-SU-2021:3352-1","SUSE-SU-2023:0215-1","SUSE-SU-2025:4532-1"],"duplicates":[],"related":["SUSE-SU-2021:3352-1","SUSE-SU-2023:0215-1","SUSE-SU-2025:4532-1"]},"timeline":[{"kind":"published","date":"2021-09-03T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T01:58:18.283Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 4.7, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,1,2,47],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.01735,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2024-08-04T01:58:18.283Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":4.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N","version":"3.1","headline":true},{"type":"cvss","source":"osv_ubuntu","date":"2024-08-04T01:58:18.283Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},{"type":"cvss","source":"osv_debian","date":"2024-08-04T01:58:18.283Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},{"type":"cvss","source":"nvd","date":"2024-08-04T01:58:18.283Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},{"type":"cvss","source":"nvd","date":"2024-08-04T01:58:18.283Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:N","version":"2.0"},{"type":"exploit","source":"github","date":null,"status":"valid","statusDate":null,"statusSource":null,"disputes":[],"maturity":"poc","verified":false}],"epss":{"value":0.01735,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T11:16:59.273Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T11:16:59.802Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T11:16:59.995Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T11:01:01.512Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T11:16:57.726Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T11:16:56.764Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T11:28:35.984Z","stale":false,"partial":false}}