libapache2-mod-auth-openidc: CVE-2021-32785

Related Vulnerabilities: CVE-2021-32785  

Debian Bug report logs - #991583
libapache2-mod-auth-openidc: CVE-2021-32785

version graph

Reported by: Salvatore Bonaccorso <carnil@debian.org>

Date: Tue, 27 Jul 2021 20:09:06 UTC

Severity: important

Tags: security, upstream

Found in version libapache2-mod-auth-openidc/2.4.4.1-2

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, carnil@debian.org, team@security.debian.org, Moritz Schlarb <schlarbm@uni-mainz.de>:
Bug#991583; Package src:libapache2-mod-auth-openidc. (Tue, 27 Jul 2021 20:09:07 GMT) (full text, mbox, link).


Acknowledgement sent to Salvatore Bonaccorso <carnil@debian.org>:
New Bug report received and forwarded. Copy sent to carnil@debian.org, team@security.debian.org, Moritz Schlarb <schlarbm@uni-mainz.de>. (Tue, 27 Jul 2021 20:09:07 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Salvatore Bonaccorso <carnil@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: libapache2-mod-auth-openidc: CVE-2021-32785
Date: Tue, 27 Jul 2021 22:07:05 +0200
Source: libapache2-mod-auth-openidc
Version: 2.4.4.1-2
Severity: important
Tags: security upstream
X-Debbugs-Cc: carnil@debian.org, Debian Security Team <team@security.debian.org>

Hi,

The following vulnerability was published for libapache2-mod-auth-openidc.

CVE-2021-32785[0]:
| 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.


If you fix the vulnerability please also make sure to include the
CVE (Common Vulnerabilities & Exposures) id in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2021-32785
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-32785
[1] https://github.com/zmartzone/mod_auth_openidc/security/advisories/GHSA-55r8-6w97-xxr4

Please adjust the affected versions in the BTS as needed.

Regards,
Salvatore



Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Jul 28 16:17:32 2021; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.