
CVE catalog
CVE-2021-32785
libapache2-mod-auth-openidc: CVE-2021-32785
- Severity
- Medium · CVSS 5.3
CVSS: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.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | libapache2-mod-auth-openidc | sid | 2.4.20.3-1 | fixed |
| Debian | libapache2-mod-auth-openidc | forky | 2.4.20.3-1 | fixed |
| Debian | libapache2-mod-auth-openidc | trixie | 2.4.17-1 | fixed |
| Debian | libapache2-mod-auth-openidc | trixie-security | 2.4.17-1+deb13u1 | fixed |
| Debian | libapache2-mod-auth-openidc | bookworm | 2.4.12.3-2+deb12u4 | fixed |
| Debian | libapache2-mod-auth-openidc | bookworm-security | 2.4.12.3-2+deb12u5 | fixed |
| Opensuse | apache2-mod_auth_openidc | leap 15.2 | 2.3.8-lp152.5.6.1 | fixed |
| Suse | apache2-mod_auth_openidc | linux enterprise module for server applications 15 sp2 | 2.3.8-3.15.1 | fixed |
| Suse | apache2-mod_auth_openidc | linux enterprise module for server applications 15 sp3 | 2.3.8-3.15.1 | fixed |
| Ubuntu | libapache2-mod-auth-openidc | 18.04 | 2.1.6-1 | vulnerable |
| Ubuntu | libapache2-mod-auth-openidc | 18.04 | 2.3.1-2 | vulnerable |
| Ubuntu | libapache2-mod-auth-openidc | 18.04 | 2.3.2-1 | vulnerable |
| Ubuntu | libapache2-mod-auth-openidc | 18.04 | 2.3.2-1build1 | vulnerable |
| Ubuntu | libapache2-mod-auth-openidc | 18.04 | 2.3.3-1build1 | vulnerable |
| Ubuntu | libapache2-mod-auth-openidc | 20.04 | 2.3.10.2-1 | vulnerable |
| Ubuntu | libapache2-mod-auth-openidc | 20.04 | 2.4.0.4-1 | vulnerable |
| Ubuntu | libapache2-mod-auth-openidc | 20.04 | 2.4.1-1 | vulnerable |
| Opensuse | apache2-mod_auth_openidc | leap 15.3 | 2.3.8-3.15.1 | fixed |
| Suse | apache2-mod_auth_openidc | linux enterprise server 12 sp5 | 2.4.0-3.23.1 | fixed |
| Suse | apache2-mod_auth_openidc | linux enterprise server for sap applications 12 sp5 | 2.4.0-3.23.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | libapache2-mod-auth-openidc | source | sid | 2.4.9-1 | not yet assigned | Not reported | [991583] |
| Debian | libapache2-mod-auth-openidc | source | forky | 2.4.9-1 | not yet assigned | Not reported | [991583] |
| Debian | libapache2-mod-auth-openidc | source | trixie | 2.4.9-1 | not yet assigned | Not reported | [991583] |
| Debian | libapache2-mod-auth-openidc | source | bookworm | 2.4.9-1 | not yet assigned | Not reported | [991583] |
| Opensuse | apache2-mod_auth_openidc | rpm | leap 15.2 | 2.3.8-lp152.5.6.1 | Not reported | OPENSUSE-SU-2021:1277-1 | Not reported |
| Suse | apache2-mod_auth_openidc | rpm | linux enterprise module for server applications 15 sp2 | 2.3.8-3.15.1 | Not reported | SUSE-SU-2021:3020-1 | Not reported |
| Suse | apache2-mod_auth_openidc | rpm | linux enterprise module for server applications 15 sp3 | 2.3.8-3.15.1 | Not reported | SUSE-SU-2021:3020-1 | Not reported |
| Opensuse | apache2-mod_auth_openidc | rpm | leap 15.3 | 2.3.8-3.15.1 | Not reported | OPENSUSE-SU-2021:3020-1 | Not reported |
| Suse | apache2-mod_auth_openidc | rpm | linux enterprise server 12 sp5 | 2.4.0-3.23.1 | Not reported | SUSE-SU-2021:3352-1 | Not reported |
| Suse | apache2-mod_auth_openidc | rpm | linux enterprise server for sap applications 12 sp5 | 2.4.0-3.23.1 | Not reported | SUSE-SU-2021:3352-1 | Not reported |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
[Debian 12 (Bookworm)]
- [libapache2-mod-auth-openidc]Unknown
Details (4)
2.4.12.3-2+deb12u4· amd64 · bookwormFixed · Fixed:
2.4.9-1dsa · libapache2-mod-auth-openidc · debian · bookworm; dsa · libapache2-mod-auth-openidc · debian · 12
2.4.12.3-2+deb12u4· arm64 · bookwormFixed · Fixed:
2.4.9-1dsa · libapache2-mod-auth-openidc · debian · bookworm; dsa · libapache2-mod-auth-openidc · debian · 12
2.4.12.3-2+deb12u4· amd64 · bookworm-securityFixed · Fixed:
2.4.9-1dsa · libapache2-mod-auth-openidc · debian · bookworm; dsa · libapache2-mod-auth-openidc · debian · 12
2.4.12.3-2+deb12u4· arm64 · bookworm-securityFixed · Fixed:
2.4.9-1dsa · libapache2-mod-auth-openidc · debian · bookworm; dsa · libapache2-mod-auth-openidc · debian · 12
[Debian 13 (Trixie)]
- [libapache2-mod-auth-openidc]Unknown
Details (3)
2.4.17-1· amd64 · trixieFixed · Fixed:
2.4.9-1dsa · libapache2-mod-auth-openidc · debian · 13
2.4.17-1· arm64 · trixieFixed · Fixed:
2.4.9-1dsa · libapache2-mod-auth-openidc · debian · 13
2.4.17-1+deb13u1· amd64 · trixie-securityFixed · Fixed:
2.4.9-1dsa · libapache2-mod-auth-openidc · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2021_3020-1.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2021-32785]
- [https://osv.dev/vulnerability/SUSE-SU-2021:3020-1]
- [https://osv.dev/vulnerability/SUSE-SU-2021:3352-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2021-32785]
- [https://osv.dev/vulnerability/openSUSE-SU-2021:1277-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2021:3020-1]
- [https://security-tracker.debian.org/tracker/CVE-2021-32785]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [SUSE security advisories and VEX]