cve.bz

CVE-2021-39191 Open Redirect

6.1 mediumExploit referenceEPSS 1.7%Fix available

Medium (6.1). EPSS 1.7% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

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
EPSS
1.7% (unchanged from 1.7% a week ago; 1.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 78th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-601 URL Redirection to Untrusted Site (Open Redirect)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-39191 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-39191?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-39191?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-39191 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
openidc:mod_auth_openidcbefore 2.4.9.4
fedoraproject:fedora35
fedoraproject:fedora36
debian:debian_linux10.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10libapache2-mod-auth-openidc2.3.10.2-1+deb10u3DLA-3499-1
Debian12, 13, 14libapache2-mod-auth-openidc2.4.9.4-1DEBIAN-CVE-2021-39191
Ubuntu18.04:LTS, 20.04:LTSlibapache2-mod-auth-openidcno fix listedUBUNTU-CVE-2021-39191
Red Hatenterprise_linux:8::appstreamcjose, cjose-devel, cjose-debuginfo and 1 more0:0.6.1-2.module+el8+2454+f890a43aRHSA-2022:1823
Red Hatenterprise_linux:8::appstreammod_auth_openidc, mod_auth_openidc-debuginfo, mod_auth_openidc-debugsource0:2.3.7-11.module+el8.6.0+14082+b6f23e95RHSA-2022:1823
SUSELinux Enterprise Module for Server Applications 15 SP4, Linux Enterprise Real Time 15 SP3apache2-mod_auth_openidc2.3.8-150100.3.22.1SUSE-SU-2023:0215-1
SUSELinux Enterprise Module for Server Applications 15 SP6, Linux Enterprise Module for Server Applications 15 SP7apache2-mod_auth_openidc2.4.17.1-150600.16.14.1SUSE-SU-2025:4532-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5apache2-mod_auth_openidc2.4.0-3.23.1SUSE-SU-2021:3352-1
openSUSELeap 15.4apache2-mod_auth_openidc2.3.8-150100.3.22.1SUSE-SU-2023:0215-1
openSUSELeap 15.6apache2-mod_auth_openidc2.4.17.1-150600.16.14.1SUSE-SU-2025:4532-1
AlmaLinux8cjose, cjose-devel0.6.1-2.module_el8.6.0+2868+44838709ALSA-2022:1823
AlmaLinux8mod_auth_openidc2.3.7-11.module_el8.6.0+2868+44838709ALSA-2022:1823
Rocky Linux8cjose0:0.6.1-2.module+el8.3.0+129+2feafa46RLSA-2022:1823
Rocky Linux8mod_auth_openidc0:2.3.7-11.module+el8.6.0+840+73eca44eRLSA-2022:1823
Azure Linux2mod_auth_openidc2.4.14.2-1AZL-7289

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8mod_auth_openidc:2.3-8060020220131105504.d63f516dFixed 2022-05-10RHSA-2022:1823
Red Hat Enterprise Linux 7mod_auth_openidcOut of support scope
Red Hat Enterprise Linux 9mod_auth_openidcNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-39191.

Attack patterns (CAPEC)

  • CAPEC-178 Cross-Site Flashing Likelihood: Medium · Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON