Skip to content
Heist/ feed
Back to feed
MediumFix available

libapache2-mod-auth-openidc — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2021-32786

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.

Products
libapache2-mod-auth-openidc
Affected versions
Not specified
Fixed versions
2.4.9-1
CVEs
CVE-2021-32786
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 00:22 UTC · Revision 1

Source evidence

DEBIAN-CVE-2021-32786

core-osv · Original source

Published 22 Jul 2021, 22:15 UTC

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.

osv:DEBIAN-CVE-2021-32786

libapache2-mod-auth-openidc

Fixed versions: 2.4.9-1

libapache2-mod-auth-openidc

Fixed versions: 2.4.9-1

libapache2-mod-auth-openidc

Fixed versions: 2.4.9-1

Complete source record
{
  "id": "72a2f8e1b47c1177a0ca9982923404f527cc6ae39795291b819af1e3765bc15a",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2021-32786",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2021-32786",
    "summary": "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.",
    "evidence": "osv:DEBIAN-CVE-2021-32786",
    "products": [
      {
        "name": {
          "value": "libapache2-mod-auth-openidc",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.4.9-1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "libapache2-mod-auth-openidc",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.4.9-1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "libapache2-mod-auth-openidc",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.4.9-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2021-32786",
      "aliases": [
        "DEBIAN-CVE-2021-32786"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.4.9-1"
                }
              ]
            }
          ],
          "package": {
            "name": "libapache2-mod-auth-openidc",
            "purl": "pkg:deb/debian/libapache2-mod-auth-openidc?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-32786.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.4.9-1"
                }
              ]
            }
          ],
          "package": {
            "name": "libapache2-mod-auth-openidc",
            "purl": "pkg:deb/debian/libapache2-mod-auth-openidc?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-32786.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.4.9-1"
                }
              ]
            }
          ],
          "package": {
            "name": "libapache2-mod-auth-openidc",
            "purl": "pkg:deb/debian/libapache2-mod-auth-openidc?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-32786.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-23T18:03:14.180160356Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-32786"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2021-32786"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-32786",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 420905,
  "published_at": "2021-07-22T22:15:08.233+00:00"
}