cve.bz

CVE-2021-32785

7.5 highEPSS 2.7%Fix available

High (7.5). EPSS 2.7% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
2.7% (unchanged from 2.7% a week ago; 2.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 86th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-134 Use of Externally-Controlled Format String
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-32785 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-32785?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-32785?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-32785 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
openidc:mod_auth_openidcbefore 2.4.9
debian:debian_linux10.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10libapache2-mod-auth-openidc2.3.10.2-1+deb10u2DLA-3409-1
Debian12, 13, 14libapache2-mod-auth-openidc2.4.9-1DEBIAN-CVE-2021-32785
Ubuntu18.04:LTS, 20.04:LTSlibapache2-mod-auth-openidcno fix listedUBUNTU-CVE-2021-32785
SUSELinux Enterprise Module for Server Applications 15 SP2, Linux Enterprise Module for Server Applications 15 SP3apache2-mod_auth_openidc2.3.8-3.15.1SUSE-SU-2021:3020-1
SUSELinux Enterprise Module for Server Applications 15 SP6, Linux Enterprise Module for Server Applications 15 SP7apache2-mod_auth_openidc2.4.17.1-150600.16.14.1SUSE-SU-2025:4532-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5apache2-mod_auth_openidc2.4.0-3.23.1SUSE-SU-2021:3352-1
openSUSELeap 15.2apache2-mod_auth_openidc2.3.8-lp152.5.6.1openSUSE-SU-2021:1277-1
openSUSELeap 15.3apache2-mod_auth_openidc2.3.8-3.15.1openSUSE-SU-2021:3020-1
openSUSELeap 15.6apache2-mod_auth_openidc2.4.17.1-150600.16.14.1SUSE-SU-2025:4532-1
openSUSETumbleweedapache2-mod_auth_openidc2.4.9.4-1.2openSUSE-SU-2024:10624-1
Azure Linux2httpd2.4.52-1AZL-6479

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue did not affect the versions of mod_auth_openidc as shipped with Red Hat Enterprise Linux 7, and 8 as they did not include support for Redis cache.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7mod_auth_openidcNot affected
Red Hat Enterprise Linux 8mod_auth_openidc:2.3/mod_auth_openidcNot affected
Red Hat Enterprise Linux 9mod_auth_openidcNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-32785.

Attack patterns (CAPEC)

  • CAPEC-67 String Format Overflow in syslog() Likelihood: High · Severity: Very High
  • CAPEC-135 Format String Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON