Skip to content

CVE-2021-32791 Hardcoded static IV and AAD with a reused key in AES GCM encryption in mod_auth_openidc

MediumCVSS 5.9 EPSS 1.5%
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. In mod_auth_openidc before version 2.4.9, the AES GCM encryption in mod_auth_openidc uses a static IV and AAD. It is important to fix because this creates a static nonce and since aes-gcm is a stream cipher, this can lead to known cryptographic issues, since the same key is being reused. From 2.4.9 onwards this has been patched to use dynamic values through usage of cjose AES encryption routines.

Upgrade path

8 packages: 4 fixed, 2 with no fix yet.

PackageAffectedFixed inStatus
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
fedoraproject fedora = 33; = 34 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
fedoraproject fedora = 33 No fix listed
fedoraproject fedora = 34 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