Skip to content

CVE-2021-32785 Format string bug in the Redis cache implementation

HighCVSS 7.5 EPSS 2.7%
Published
Updated
Exploit status
No public exploit known
Technology
UbuntuDebian

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.

Upgrade path

9 packages: 4 fixed, 3 with no fix yet.

PackageAffectedFixed inStatus
netapp cloud backup All versions No fix listed No fix yet
ubuntu/libapache2-mod-auth-openidc(Ubuntu 18.04) = 2.1.6-1; = 2.3.1-2; = 2.3.2-1; = 2.3.2-1build1 +2 more No fix listed No fix yet
ubuntu/libapache2-mod-auth-openidc(Ubuntu 20.04) = 2.3.10.2-1; = 2.4.0.4-1; = 2.4.1-1; All versions No fix listed No fix yet
debian/libapache2-mod-auth-openidc(Debian 12) < 2.4.9-1 2.4.9-1 Fixed
debian/libapache2-mod-auth-openidc(Debian 13) < 2.4.9-1 2.4.9-1 Fixed
debian/libapache2-mod-auth-openidc(Debian 14) < 2.4.9-1 2.4.9-1 Fixed
OpenIDC mod_auth_openidc < 2.4.9 2.4.9 Fixed
debian linux = 10.0 No fix listed Versions listed
zmartzone mod_auth_openidc = < 2.4.9 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
debian/libapache2-mod-auth-openidc(Debian:12) < 2.4.9-1 2.4.9-1
debian/libapache2-mod-auth-openidc(Debian:13) < 2.4.9-1 2.4.9-1
debian/libapache2-mod-auth-openidc(Debian:14) < 2.4.9-1 2.4.9-1
OpenIDC mod_auth_openidc < 2.4.9 2.4.9
netapp cloud backup All versions No fix listed
debian linux = 10.0 No fix listed
zmartzone mod_auth_openidc = < 2.4.9 No fix listed
ubuntu/libapache2-mod-auth-openidc(Ubuntu:18.04) All versions No fix listed
ubuntu/libapache2-mod-auth-openidc(Ubuntu:18.04) = 2.1.6-1 No fix listed
ubuntu/libapache2-mod-auth-openidc(Ubuntu:18.04) = 2.3.1-2 No fix listed
ubuntu/libapache2-mod-auth-openidc(Ubuntu:18.04) = 2.3.2-1 No fix listed
ubuntu/libapache2-mod-auth-openidc(Ubuntu:18.04) = 2.3.2-1build1 No fix listed
ubuntu/libapache2-mod-auth-openidc(Ubuntu:18.04) = 2.3.3-1build1 No fix listed
ubuntu/libapache2-mod-auth-openidc(Ubuntu:20.04) All versions No fix listed
ubuntu/libapache2-mod-auth-openidc(Ubuntu:20.04) = 2.3.10.2-1 No fix listed
ubuntu/libapache2-mod-auth-openidc(Ubuntu:20.04) = 2.4.0.4-1 No fix listed
ubuntu/libapache2-mod-auth-openidc(Ubuntu:20.04) = 2.4.1-1 No fix listed

References