CVE catalog

CVE-2021-32785

libapache2-mod-auth-openidc: CVE-2021-32785

[CVE catalog]

Severity
Medium · CVSS 5.3CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Published
Source
[NVD] · [CVE record]
EPSS
2.73% · Oct 25, 2026

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. When mod_auth_openidc versions prior to 2.4.9 are configured to use an unencrypted Redis cache (`OIDCCacheEncrypt off`, `OIDCSessionType server-cache`, `OIDCCacheType redis`), `mod_auth_openidc` wrongly performed argument interpolation before passing Redis requests to `hiredis`, which would perform it again and lead to an uncontrolled format string bug. Initial assessment shows that this bug does not appear to allow gaining arbitrary code execution, but can reliably provoke a denial of service by repeatedly crashing the Apache workers. This bug has been corrected in version 2.4.9 by performing argument interpolation only once, using the `hiredis` API. As a workaround, this vulnerability can be mitigated by setting `OIDCCacheEncrypt` to `on`, as cache keys are cryptographically hashed before use when this option is enabled.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianlibapache2-mod-auth-openidcsid2.4.20.3-1fixed
Debianlibapache2-mod-auth-openidcforky2.4.20.3-1fixed
Debianlibapache2-mod-auth-openidctrixie2.4.17-1fixed
Debianlibapache2-mod-auth-openidctrixie-security2.4.17-1+deb13u1fixed
Debianlibapache2-mod-auth-openidcbookworm2.4.12.3-2+deb12u4fixed
Debianlibapache2-mod-auth-openidcbookworm-security2.4.12.3-2+deb12u5fixed
Opensuseapache2-mod_auth_openidcleap 15.22.3.8-lp152.5.6.1fixed
Suseapache2-mod_auth_openidclinux enterprise module for server applications 15 sp22.3.8-3.15.1fixed
Suseapache2-mod_auth_openidclinux enterprise module for server applications 15 sp32.3.8-3.15.1fixed
Ubuntulibapache2-mod-auth-openidc18.042.1.6-1vulnerable
Ubuntulibapache2-mod-auth-openidc18.042.3.1-2vulnerable
Ubuntulibapache2-mod-auth-openidc18.042.3.2-1vulnerable
Ubuntulibapache2-mod-auth-openidc18.042.3.2-1build1vulnerable
Ubuntulibapache2-mod-auth-openidc18.042.3.3-1build1vulnerable
Ubuntulibapache2-mod-auth-openidc20.042.3.10.2-1vulnerable
Ubuntulibapache2-mod-auth-openidc20.042.4.0.4-1vulnerable
Ubuntulibapache2-mod-auth-openidc20.042.4.1-1vulnerable
Opensuseapache2-mod_auth_openidcleap 15.32.3.8-3.15.1fixed
Suseapache2-mod_auth_openidclinux enterprise server 12 sp52.4.0-3.23.1fixed
Suseapache2-mod_auth_openidclinux enterprise server for sap applications 12 sp52.4.0-3.23.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibapache2-mod-auth-openidcsourcesid2.4.9-1not yet assignedNot reported[991583]
Debianlibapache2-mod-auth-openidcsourceforky2.4.9-1not yet assignedNot reported[991583]
Debianlibapache2-mod-auth-openidcsourcetrixie2.4.9-1not yet assignedNot reported[991583]
Debianlibapache2-mod-auth-openidcsourcebookworm2.4.9-1not yet assignedNot reported[991583]
Opensuseapache2-mod_auth_openidcrpmleap 15.22.3.8-lp152.5.6.1Not reportedOPENSUSE-SU-2021:1277-1Not reported
Suseapache2-mod_auth_openidcrpmlinux enterprise module for server applications 15 sp22.3.8-3.15.1Not reportedSUSE-SU-2021:3020-1Not reported
Suseapache2-mod_auth_openidcrpmlinux enterprise module for server applications 15 sp32.3.8-3.15.1Not reportedSUSE-SU-2021:3020-1Not reported
Opensuseapache2-mod_auth_openidcrpmleap 15.32.3.8-3.15.1Not reportedOPENSUSE-SU-2021:3020-1Not reported
Suseapache2-mod_auth_openidcrpmlinux enterprise server 12 sp52.4.0-3.23.1Not reportedSUSE-SU-2021:3352-1Not reported
Suseapache2-mod_auth_openidcrpmlinux enterprise server for sap applications 12 sp52.4.0-3.23.1Not reportedSUSE-SU-2021:3352-1Not reported

[Debian bug #991583]

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • Details (4)
    • 2.4.12.3-2+deb12u4 · amd64 · bookworm

      Fixed · Fixed: 2.4.9-1

      dsa · libapache2-mod-auth-openidc · debian · bookworm; dsa · libapache2-mod-auth-openidc · debian · 12

    • 2.4.12.3-2+deb12u4 · arm64 · bookworm

      Fixed · Fixed: 2.4.9-1

      dsa · libapache2-mod-auth-openidc · debian · bookworm; dsa · libapache2-mod-auth-openidc · debian · 12

    • 2.4.12.3-2+deb12u4 · amd64 · bookworm-security

      Fixed · Fixed: 2.4.9-1

      dsa · libapache2-mod-auth-openidc · debian · bookworm; dsa · libapache2-mod-auth-openidc · debian · 12

    • 2.4.12.3-2+deb12u4 · arm64 · bookworm-security

      Fixed · Fixed: 2.4.9-1

      dsa · libapache2-mod-auth-openidc · debian · bookworm; dsa · libapache2-mod-auth-openidc · debian · 12

[Debian 13 (Trixie)]

  • Details (3)
    • 2.4.17-1 · amd64 · trixie

      Fixed · Fixed: 2.4.9-1

      dsa · libapache2-mod-auth-openidc · debian · 13

    • 2.4.17-1 · arm64 · trixie

      Fixed · Fixed: 2.4.9-1

      dsa · libapache2-mod-auth-openidc · debian · 13

    • 2.4.17-1+deb13u1 · amd64 · trixie-security

      Fixed · Fixed: 2.4.9-1

      dsa · libapache2-mod-auth-openidc · debian · 13

Observed:

References