5.9medium
Hardcoded static IV and AAD with a reused key in AES GCM encryption in mod_auth_openidc
- Severity
- 5.9medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.50% (higher than 75% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| zmartzone mod_auth_openidc | < 2.4.9 | CVE List |
| openidc mod_auth_openidc | before 2.4.9 | NVD |
| fedoraproject fedora | 33, 34 | NVD |
All scores
| GitHub_M | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 4.3medium CVSS:2.0 | AV:N/AC:M/Au:N/C:P/I:N/A:N |
Classification
What each source says
CVE List
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.
NVD (es)
mod_auth_openidc es un módulo de autenticación/autorización para el servidor HTTP Apache versión 2.x que funciona como OpenID Connect Relying Party, autenticando a usuarios contra un OpenID Connect Provider. En mod_auth_openidc versiones anteriores a 2.4.9, el cifrado AES GCM en mod_auth_openidc usa un IV estático y un AAD. Es importante corregirlo porque esto crea un nonce estático y como aes-gcm es un cifrado de flujo, esto puede conllevar a problemas criptográficos conocidos, ya que se está reutilizando la misma clave. A partir de la versión 2.4.9 esto ha sido parcheado para usar valores dinámicos mediante el uso de rutinas de cifrado AES cjose
References
| https://github.com/zmartzone/mod_auth_openidc/releases/tag/v2.4.9 | release-notes, third-party-advisory | |
| https://github.com/zmartzone/mod_auth_openidc/security/advisories/GHSA-px3c-6x7j-3r9r | patch, third-party-advisory | |
| https://github.com/zmartzone/mod_auth_openidc/commit/375407c16c61a70b56fdbe13b0d2c8f11398e92c | patch, third-party-advisory | |
| https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FZVF6BSJLRQZ7PFFR4X5JSU6KUJYNOCU/ | vendor-advisory | |
| https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QXAWKPT5LXZSUTFSJ6IWSZC7RMYYQXQD/ | vendor-advisory | |
| https://www.oracle.com/security-alerts/cpuapr2022.html | patch, third-party-advisory | |
| https://lists.debian.org/debian-lts-announce/2023/04/msg00034.html | mailing-list | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-32791 changed 2024-08-03 | CVE Terms of Use |
| NVD | CVE-2021-32791 changed 2026-06-17 | Public domain |