CVE-2021-39191: URL Redirection to Untrusted Site ('Open Redirect') in mod_auth_openidc

Published Sep 3, 2021
·
Updated

modauthopenidc 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 modauthopenidc was reported to be vulnerable to an open redirect attack by supplying a crafted URL in the targetlinkuri parameter. A patch in version 2.4.9.4 made it so that the OIDCRedirectURLsAllowed setting must be applied to the targetlinkuri parameter. There are no known workarounds aside from upgrading to a patched version.

Affected Software

4 affected components
openidc Mod Auth Openidc<2.4.9.4
Fedoraproject Fedora=35
Fedoraproject Fedora=36
Debian Debian Linux=10.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade mod_auth_openidc to a version that resolves this vulnerability.

    Fixed in 2.4.9.4
  2. Configuration

    Ensure OIDCRedirectURLsAllowed is enforced for the target_link_uri parameter (introduced/required behavior in v2.4.9.4 to prevent open redirect attacks).

    mod_auth_openidc OIDCRedirectURLsAllowed = applied to target_link_uri parameter

Event History

Sep 3, 2021
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-39191?

CVE-2021-39191 is a vulnerability in mod_auth_openidc, allowing an attacker to bypass authentication and gain unauthorized access.

2

What is mod_auth_openidc?

mod_auth_openidc is an authentication/authorization module for the Apache 2.x HTTP server that functions as an OpenID Connect Relying Party.

3

What is the severity of CVE-2021-39191?

CVE-2021-39191 has a severity rating of 6.1 (medium).

4

How can an attacker exploit CVE-2021-39191?

An attacker can exploit CVE-2021-39191 to bypass authentication and gain unauthorized access to the system.

5

How can I fix CVE-2021-39191?

To fix CVE-2021-39191, users should update to mod_auth_openidc version 2.4.9.4 or later.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203