CVE-2021-32785
published medium CVSS 3.1 · 5.3Format string bug in the Redis cache implementation
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| zmartzone | — | mod_auth_openidc< 2.4.9 | Affected | Not stated | GitHub_M |
| Debian | buster | libapache2-mod-auth-openidc | Advisory build | 2.3.10.2-1+deb10u2 | DLA-3409-1 |
| SUSE / openSUSE | SLE-12-SP5 | apache2-mod_auth_openidcaarch64 | Advisory build | 2.4.0-3.23.1 | SUSE-SU-2021:3352-1 |
| SUSE / openSUSE | SLE-12-SP5 | apache2-mod_auth_openidcppc64le | Advisory build | 2.4.0-3.23.1 | SUSE-SU-2021:3352-1 |
| SUSE / openSUSE | SLE-12-SP5 | apache2-mod_auth_openidcs390x | Advisory build | 2.4.0-3.23.1 | SUSE-SU-2021:3352-1 |
| SUSE / openSUSE | SLE-12-SP5 | apache2-mod_auth_openidcx86_64 | Advisory build | 2.4.0-3.23.1 | SUSE-SU-2021:3352-1 |
| SUSE / openSUSE | SLE-15-SP2 | apache2-mod_auth_openidcaarch64 | Advisory build | 2.3.8-3.15.1 | SUSE-SU-2021:3020-1 |
| SUSE / openSUSE | SLE-15-SP2 | apache2-mod_auth_openidcppc64le | Advisory build | 2.3.8-3.15.1 | SUSE-SU-2021:3020-1 |
Show 27 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP2 | apache2-mod_auth_openidcs390x | Advisory build | 2.3.8-3.15.1 | SUSE-SU-2021:3020-1 |
| SUSE / openSUSE | SLE-15-SP2 | apache2-mod_auth_openidcx86_64 | Advisory build | 2.3.8-3.15.1 | SUSE-SU-2021:3020-1 |
| SUSE / openSUSE | SLE-15-SP3 | apache2-mod_auth_openidcaarch64 | Advisory build | 2.3.8-3.15.1 | SUSE-SU-2021:3020-1 |
| SUSE / openSUSE | SLE-15-SP3 | apache2-mod_auth_openidcppc64le | Advisory build | 2.3.8-3.15.1 | SUSE-SU-2021:3020-1 |
| SUSE / openSUSE | SLE-15-SP3 | apache2-mod_auth_openidcs390x | Advisory build | 2.3.8-3.15.1 | SUSE-SU-2021:3020-1 |
| SUSE / openSUSE | SLE-15-SP3 | apache2-mod_auth_openidcx86_64 | Advisory build | 2.3.8-3.15.1 | SUSE-SU-2021:3020-1 |
| SUSE / openSUSE | SLE-15-SP6 | apache2-mod_auth_openidcaarch64 | Advisory build | 2.4.17.1-150600.16.14.1 | SUSE-SU-2025:4532-1 |
| SUSE / openSUSE | SLE-15-SP6 | apache2-mod_auth_openidcppc64le | Advisory build | 2.4.17.1-150600.16.14.1 | SUSE-SU-2025:4532-1 |
| SUSE / openSUSE | SLE-15-SP6 | apache2-mod_auth_openidcs390x | Advisory build | 2.4.17.1-150600.16.14.1 | SUSE-SU-2025:4532-1 |
| SUSE / openSUSE | SLE-15-SP6 | apache2-mod_auth_openidcx86_64 | Advisory build | 2.4.17.1-150600.16.14.1 | SUSE-SU-2025:4532-1 |
| SUSE / openSUSE | SLE-15-SP7 | apache2-mod_auth_openidcaarch64 | Advisory build | 2.4.17.1-150600.16.14.1 | SUSE-SU-2025:4532-1 |
| SUSE / openSUSE | SLE-15-SP7 | apache2-mod_auth_openidcppc64le | Advisory build | 2.4.17.1-150600.16.14.1 | SUSE-SU-2025:4532-1 |
| SUSE / openSUSE | SLE-15-SP7 | apache2-mod_auth_openidcs390x | Advisory build | 2.4.17.1-150600.16.14.1 | SUSE-SU-2025:4532-1 |
| SUSE / openSUSE | SLE-15-SP7 | apache2-mod_auth_openidcx86_64 | Advisory build | 2.4.17.1-150600.16.14.1 | SUSE-SU-2025:4532-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | apache2-mod_auth_openidcx86_64 | Advisory build | 2.3.8-lp152.5.6.1 | OPENSUSE-SU-2021:1277-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | apache2-mod_auth_openidcaarch64 | Advisory build | 2.3.8-3.15.1 | OPENSUSE-SU-2021:3020-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | apache2-mod_auth_openidcppc64le | Advisory build | 2.3.8-3.15.1 | OPENSUSE-SU-2021:3020-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | apache2-mod_auth_openidcs390x | Advisory build | 2.3.8-3.15.1 | OPENSUSE-SU-2021:3020-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | apache2-mod_auth_openidcx86_64 | Advisory build | 2.3.8-3.15.1 | OPENSUSE-SU-2021:3020-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | apache2-mod_auth_openidcaarch64 | Advisory build | 2.4.17.1-150600.16.14.1 | SUSE-SU-2025:4532-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | apache2-mod_auth_openidcppc64le | Advisory build | 2.4.17.1-150600.16.14.1 | SUSE-SU-2025:4532-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | apache2-mod_auth_openidcs390x | Advisory build | 2.4.17.1-150600.16.14.1 | SUSE-SU-2025:4532-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | apache2-mod_auth_openidcx86_64 | Advisory build | 2.4.17.1-150600.16.14.1 | SUSE-SU-2025:4532-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | apache2-mod_auth_openidcaarch64 | Advisory build | 2.4.9.4-1.2 | OPENSUSE-SU-2024:10624-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | apache2-mod_auth_openidcppc64le | Advisory build | 2.4.9.4-1.2 | OPENSUSE-SU-2024:10624-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | apache2-mod_auth_openidcs390x | Advisory build | 2.4.9.4-1.2 | OPENSUSE-SU-2024:10624-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | apache2-mod_auth_openidcx86_64 | Advisory build | 2.4.9.4-1.2 | OPENSUSE-SU-2024:10624-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| zmartzone | mod_auth_openidc | < 2.4.9 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-134 CWE-134: Use of Externally-Controlled Format String
References
6- https://github.com/zmartzone/mod_auth_openidc/commit/dc672688dc1f2db7df8ad4abebc367116017a449
- https://github.com/zmartzone/mod_auth_openidc/releases/tag/v2.4.9
- https://github.com/zmartzone/mod_auth_openidc/security/advisories/GHSA-55r8-6w97-xxr4
- [debian-lts-announce] 20230430 [SECURITY] [DLA 3409-1] libapache2-mod-auth-openidc security update https://lists.debian.org/debian-lts-announce/2023/04/msg00034.html
- https://security.netapp.com/advisory/ntap-20210902-0001/
- https://www.oracle.com/security-alerts/cpuapr2022.html
Provider assertions
2GitHub_M · cna
Format string bug in the Redis cache implementation
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 59d4b9466485dbe7a26031151ae88abd873efa761cc0a376015b6c94c46cf53c
- Ingested
- 23 Sep 2026, 07:54:30 UTC
- Source record
- Official CVE record