CVE-2021-32791 Hardcoded static IV and AAD with a reused key in AES GCM encryption in mod_auth_openidc
Attackers can exploit static IVs and reused keys in AES GCM encryption to compromise confidentiality and integrity of authentication data in mod_auth_openidc.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-32791?
CVE-2021-32791 is a medium-severity vulnerability in Fedoraproject Fedora, published on 26 Jul 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Which versions are affected by CVE-2021-32791?
It affects 2 products.
Products include Fedoraproject Fedora, Openidc Mod Auth Openidc.
How do I fix CVE-2021-32791?
Upgrade to a fixed version.
Is CVE-2021-32791 being exploited?
There is no known exploitation of CVE-2021-32791 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as AZL-6481, DEBIAN-CVE-2021-32791, GHSA-px3c-6x7j-3r9r, UBUNTU-CVE-2021-32791.