CVE-2021-32785
Apache mod_auth_openidc Format String Bug
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.
INFO
Published Date :
July 22, 2021, 10:15 p.m.
Last Modified :
Nov. 21, 2024, 6:07 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
3.6
Exploitability Score :
3.9
Affected Products
The following products are affected by CVE-2021-32785
vulnerability.
Even if cvefeed.io
is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2021-32785
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2021-32785
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2021-32785
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://github.com/zmartzone/mod_auth_openidc/commit/dc672688dc1f2db7df8ad4abebc367116017a449 Added Reference https://github.com/zmartzone/mod_auth_openidc/releases/tag/v2.4.9 Added Reference https://github.com/zmartzone/mod_auth_openidc/security/advisories/GHSA-55r8-6w97-xxr4 Added Reference https://lists.debian.org/debian-lts-announce/2023/04/msg00034.html Added Reference https://security.netapp.com/advisory/ntap-20210902-0001/ Added Reference https://www.oracle.com/security-alerts/cpuapr2022.html -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
Modified Analysis by [email protected]
Jan. 30, 2024
Action Type Old Value New Value Changed Reference Type https://lists.debian.org/debian-lts-announce/2023/04/msg00034.html No Types Assigned https://lists.debian.org/debian-lts-announce/2023/04/msg00034.html Mailing List, Third Party Advisory Added CPE Configuration OR *cpe:2.3:a:netapp:cloud_backup:-:*:*:*:*:*:*:* Added CPE Configuration OR *cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* -
CPE Deprecation Remap by [email protected]
May. 25, 2023
Action Type Old Value New Value Changed CPE Configuration OR *cpe:2.3:a:zmartzone:mod_auth_openidc:*:*:*:*:*:*:*:* versions from (excluding) 2.4.9 OR *cpe:2.3:a:openidc:mod_auth_openidc:*:*:*:*:*:*:*:* versions from (excluding) 2.4.9 -
CVE Modified by [email protected]
Apr. 30, 2023
Action Type Old Value New Value Added Reference https://lists.debian.org/debian-lts-announce/2023/04/msg00034.html [No Types Assigned] -
Modified Analysis by [email protected]
May. 10, 2022
Action Type Old Value New Value Changed Reference Type https://www.oracle.com/security-alerts/cpuapr2022.html No Types Assigned https://www.oracle.com/security-alerts/cpuapr2022.html Patch, Third Party Advisory -
CVE Modified by [email protected]
Apr. 20, 2022
Action Type Old Value New Value Added Reference https://www.oracle.com/security-alerts/cpuapr2022.html [No Types Assigned] -
Modified Analysis by [email protected]
Oct. 18, 2021
Action Type Old Value New Value Changed Reference Type https://security.netapp.com/advisory/ntap-20210902-0001/ No Types Assigned https://security.netapp.com/advisory/ntap-20210902-0001/ Third Party Advisory -
CVE Modified by [email protected]
Sep. 02, 2021
Action Type Old Value New Value Added Reference https://security.netapp.com/advisory/ntap-20210902-0001/ [No Types Assigned] -
Initial Analysis by [email protected]
Aug. 04, 2021
Action Type Old Value New Value Added CVSS V2 NIST (AV:N/AC:M/Au:N/C:N/I:N/A:P) Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H Changed Reference Type https://github.com/zmartzone/mod_auth_openidc/commit/dc672688dc1f2db7df8ad4abebc367116017a449 No Types Assigned https://github.com/zmartzone/mod_auth_openidc/commit/dc672688dc1f2db7df8ad4abebc367116017a449 Patch, Third Party Advisory Changed Reference Type https://github.com/zmartzone/mod_auth_openidc/releases/tag/v2.4.9 No Types Assigned https://github.com/zmartzone/mod_auth_openidc/releases/tag/v2.4.9 Release Notes, Third Party Advisory Changed Reference Type https://github.com/zmartzone/mod_auth_openidc/security/advisories/GHSA-55r8-6w97-xxr4 No Types Assigned https://github.com/zmartzone/mod_auth_openidc/security/advisories/GHSA-55r8-6w97-xxr4 Mitigation, Third Party Advisory Added CWE NIST CWE-134 Added CPE Configuration AND OR *cpe:2.3:a:zmartzone:mod_auth_openidc:*:*:*:*:*:*:*:* versions up to (excluding) 2.4.9 OR cpe:2.3:a:apache:http_server:*:*:*:*:*:*:*:* versions from (including) 2.0.0 up to (including) 2.4.48
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2021-32785
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2021-32785
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.55 }} -0.20%
score
0.77417
percentile