Bug 1188638 (CVE-2021-32785) - VUL-1: CVE-2021-32785: apache2-mod_auth_openidc: format string bug via hiredis
Summary: VUL-1: CVE-2021-32785: apache2-mod_auth_openidc: format string bug via hiredis
Status: RESOLVED FIXED
Alias: CVE-2021-32785
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P4 - Low : Minor
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/305064/
Whiteboard: CVSSv3.1:SUSE:CVE-2021-32785:5.3:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-23 09:03 UTC by Marcus Meissner
Modified: 2024-07-08 13:51 UTC (History)
1 user (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcus Meissner 2021-07-23 09:03:08 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
Comment 7 Swamp Workflow Management 2021-09-13 10:18:17 UTC
# 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.
Comment 8 Swamp Workflow Management 2021-09-13 10:20:59 UTC
# 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
Comment 9 Swamp Workflow Management 2021-09-16 13:23:44 UTC
# 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
Comment 11 Swamp Workflow Management 2021-10-12 16:46:53 UTC
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.
Comment 12 Andrea Mattiazzo 2024-07-08 13:51:04 UTC
All done, closing.