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

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.50%, higher than 75% of CVEs (2026-11-30)
- Published: 2021-07-26T00:00:00.000Z
- Modified: 2026-06-17T03:53:38.253Z
- Weaknesses: CWE-323, CWE-330
- 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.

(As written by CVE List.)

## Affected

- zmartzone mod_auth_openidc: < 2.4.9
- openidc mod_auth_openidc: before 2.4.9
- fedoraproject fedora: 33; 34

## Every score

- GitHub_M: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:P/I:N/A:N`

## 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

- CVE List: [CVE-2021-32791](https://www.cve.org/CVERecord?id=CVE-2021-32791), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-32791](https://nvd.nist.gov/vuln/detail/CVE-2021-32791), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-32791 · Whole record: https://cve.day/CVE-2021-32791.json · Rebuilt by cve.day 2026-11-25T22:58:02.871Z
