CVE-2021-32791 Hardcoded static IV and AAD with a reused key in AES GCM encryption in mod_auth_openidc
- 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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- Debian Security Tracker CVE-2021-32791 vendor-advisory
- github.com issue-tracking patch third-party-advisory
- github.com issue-tracking release-notes third-party-advisory
- github.com issue-tracking patch third-party-advisory
- [debian-lts-announce] 20230430 [SECURITY] [DLA 3409-1] libapache2-mod-auth-openidc security update mailing-list
- FEDORA-2021-e3017c538a vendor-advisory
- FEDORA-2021-17f5cedf66 vendor-advisory
- www.oracle.com patch third-party-advisory
- bugs.debian.org issue-tracking
- ubuntu.com issue-tracking
- www.cve.org issue-tracking