Bugzilla – Bug 1188638
VUL-1: CVE-2021-32785: apache2-mod_auth_openidc: format string bug via hiredis
Last modified: 2024-07-08 13:51:04 UTC
CVE-2021-32785 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. References: http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-32785 http://www.cvedetails.com/cve/CVE-2021-32785/ 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 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-32785
# maintenance_jira_update_notice SUSE-SU-2021:3020-1: An update that fixes four vulnerabilities is now available. Category: security (moderate) Bug References: 1188638,1188639,1188848,1188849 CVE References: CVE-2021-32785,CVE-2021-32786,CVE-2021-32791,CVE-2021-32792 JIRA References: Sources used: SUSE Linux Enterprise Module for Server Applications 15-SP3 (src): apache2-mod_auth_openidc-2.3.8-3.15.1 SUSE Linux Enterprise Module for Server Applications 15-SP2 (src): apache2-mod_auth_openidc-2.3.8-3.15.1 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
# maintenance_jira_update_notice openSUSE-SU-2021:3020-1: An update that fixes four vulnerabilities is now available. Category: security (moderate) Bug References: 1188638,1188639,1188848,1188849 CVE References: CVE-2021-32785,CVE-2021-32786,CVE-2021-32791,CVE-2021-32792 JIRA References: Sources used: openSUSE Leap 15.3 (src): apache2-mod_auth_openidc-2.3.8-3.15.1
# maintenance_jira_update_notice openSUSE-SU-2021:1277-1: An update that fixes four vulnerabilities is now available. Category: security (moderate) Bug References: 1188638,1188639,1188848,1188849 CVE References: CVE-2021-32785,CVE-2021-32786,CVE-2021-32791,CVE-2021-32792 JIRA References: Sources used: openSUSE Leap 15.2 (src): apache2-mod_auth_openidc-2.3.8-lp152.5.6.1
SUSE-SU-2021:3352-1: An update that fixes 5 vulnerabilities is now available. Category: security (moderate) Bug References: 1188638,1188639,1188848,1188849,1190223 CVE References: CVE-2021-32785,CVE-2021-32786,CVE-2021-32791,CVE-2021-32792,CVE-2021-39191 JIRA References: Sources used: SUSE Linux Enterprise Server 12-SP5 (src): apache2-mod_auth_openidc-2.4.0-3.23.1 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
All done, closing.