Use of insufficiently random values in mod_auth_openidc - CVE-2021-32791
Published: August 18, 2023
Vulnerability identifier: #VU79694
CSH Severity: Low
CVSS v4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-32791
CWE-ID: CWE-330
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a remote attacker to perform a brute-force attack.
The vulnerability exists due to the AES GCM encryption in mod_auth_openidc uses a static IV and AAD, which creates a static nonce. Since aes-gcm is a stream cipher, this can lead to known cryptographic issues as the same key is being reused.
Affected software
mod_auth_openidc
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for ARM 64
Anolis OS
SUSE Linux Enterprise Server
SUSE Linux Enterprise Module for Server Applications
Fedora
cjose
cjose-devel
mod_auth_openidc
apache2-mod_auth_openidc
apache2-mod_auth_openidc-debuginfo
apache2-mod_auth_openidc-debugsource
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for ARM 64
Anolis OS
SUSE Linux Enterprise Server
SUSE Linux Enterprise Module for Server Applications
Fedora
cjose
cjose-devel
mod_auth_openidc
apache2-mod_auth_openidc
apache2-mod_auth_openidc-debuginfo
apache2-mod_auth_openidc-debugsource
How to mitigate CVE-2021-32791
Install updates from vendor's website.
mod_auth_openidc - update to 2.4.9
cjose - update to 0.6.1-2
cjose-devel - update to 0.6.1-2
mod_auth_openidc - update to 2.3.7-11
apache2-mod_auth_openidc - addressed in versions 2.3.8-3.15.1, 2.4.0-3.23.1
apache2-mod_auth_openidc-debuginfo - addressed in versions 2.3.8-3.15.1, 2.4.0-3.23.1
apache2-mod_auth_openidc-debugsource - addressed in versions 2.3.8-3.15.1, 2.4.0-3.23.1
mod_auth_openidc - addressed in versions 2.4.9-1.fc33, 2.4.9-1.fc34, 2.4.9-1.fc35, 2.4.12.3-2.fc39
cjose - update to 0.6.1-2
cjose-devel - update to 0.6.1-2
mod_auth_openidc - update to 2.3.7-11
apache2-mod_auth_openidc - addressed in versions 2.3.8-3.15.1, 2.4.0-3.23.1
apache2-mod_auth_openidc-debuginfo - addressed in versions 2.3.8-3.15.1, 2.4.0-3.23.1
apache2-mod_auth_openidc-debugsource - addressed in versions 2.3.8-3.15.1, 2.4.0-3.23.1
mod_auth_openidc - addressed in versions 2.4.9-1.fc33, 2.4.9-1.fc34, 2.4.9-1.fc35, 2.4.12.3-2.fc39
External References
- https://github.com/zmartzone/mod_auth_openidc/security/advisories/GHSA-px3c-6x7j-3r9r
- https://github.com/zmartzone/mod_auth_openidc/commit/375407c16c61a70b56fdbe13b0d2c8f11398e92c
- https://github.com/zmartzone/mod_auth_openidc/releases/tag/v2.4.9
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QXAWKPT5LXZSUTFSJ6IWSZC7RMYYQXQD/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FZVF6BSJLRQZ7PFFR4X5JSU6KUJYNOCU/
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://lists.debian.org/debian-lts-announce/2023/04/msg00034.html
Related Security Bulletins
- Multiple vulnerabilities in mod_auth_openidc
- Fedora 39 update for mod_auth_openidc
- Red Hat Enterprise Linux 8 update for the mod_auth_openidc:2.3 module
- SUSE update for apache2-mod_auth_openidc
- SUSE update for apache2-mod_auth_openidc
- Fedora 35 update for mod_auth_openidc
- Fedora 34 update for mod_auth_openidc
- Fedora 33 update for mod_auth_openidc
- Anolis OS update for mod_auth_openidc:2.3 module