CVE-2021-32785
CVE-2021-32785 · Format string bug in the Redis cache implementation
CVSS 5.3 · Medium · EPSS 2.7% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- mod_auth_openidcNo fix published
- libapache2-mod-auth-openidc Debian 12Update to 2.4.9-1
- libapache2-mod-auth-openidc Debian 13Update to 2.4.9-1
- libapache2-mod-auth-openidc Debian 14Update to 2.4.9-1
- and 2 more
Check the installed version:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="libapache2-mod-auth-openidc"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
- Published
- Updated
Fixes in distributions
- SUSE-SU-2025:4532-1 · openSUSE Leap 15.6, SUSE Linux Enterprise Module for Server Applications 15 SP6, SUSE Linux Enterprise Module for Server Applications 15 SP7 ·
- openSUSE-SU-2024:10624-1 · openSUSE Tumbleweed ·
- DLA-3409-1 · Debian 10 ·
- SUSE-SU-2021:3352-1 · SUSE Linux Enterprise Server 12 SP5, SUSE Linux Enterprise Server for SAP Applications 12 SP5 ·
- openSUSE-SU-2021:1277-1 · openSUSE Leap 15.2 ·
- openSUSE-SU-2021:3020-1 · openSUSE Leap 15.3 ·
- SUSE-SU-2021:3020-1 · SUSE Linux Enterprise Module for Server Applications 15 SP2, SUSE Linux Enterprise Module for Server Applications 15 SP3 ·
Stack: system
Affected products and versions
mod_auth_openidc
- Versions
- < 2.4.9: Affected
No fix published
libapache2-mod-auth-openidc Debian 12
- Affected ranges
- ECOSYSTEM: < 2.4.9-1
Update to 2.4.9-1
libapache2-mod-auth-openidc Debian 13
- Affected ranges
- ECOSYSTEM: < 2.4.9-1
Update to 2.4.9-1
libapache2-mod-auth-openidc Debian 14
- Affected ranges
- ECOSYSTEM: < 2.4.9-1
Update to 2.4.9-1
libapache2-mod-auth-openidc Ubuntu 18.04 LTS
- Versions
- 2.1.6-1
- 2.3.1-2
- 2.3.2-1
- 2.3.2-1build1
- 2.3.3-1build1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
libapache2-mod-auth-openidc Ubuntu 20.04 LTS
- Versions
- 2.3.10.2-1
- 2.4.0.4-1
- 2.4.1-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- https://github.com/zmartzone/mod_auth_openidc/security/advisories/GHSA-55r8-6w97-xxr4
- https://github.com/zmartzone/mod_auth_openidc/commit/dc672688dc1f2db7df8ad4abebc367116017a449
- https://github.com/zmartzone/mod_auth_openidc/releases/tag/v2.4.9
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://security.netapp.com/advisory/ntap-20210902-0001/
- https://lists.debian.org/debian-lts-announce/2023/04/msg00034.html
- https://nvd.nist.gov/vuln/detail/CVE-2021-32785