cve.bz

CVE-2021-32791 Use of Insufficiently Random Values

5.9 mediumEPSS 1.5%Fix available

Medium (5.9). EPSS 1.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

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
EPSS
1.5% (unchanged from 1.5% a week ago; 1.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 75th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-330 Use of Insufficiently Random Values
CWE-323 Reusing a Nonce, Key Pair in Encryption
OWASP Top 10
A04:2025 Cryptographic Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-32791 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-32791?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-32791?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-32791 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
openidc:mod_auth_openidcbefore 2.4.9
fedoraproject:fedora33
fedoraproject:fedora34

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10libapache2-mod-auth-openidc2.3.10.2-1+deb10u2DLA-3409-1
Debian12, 13, 14libapache2-mod-auth-openidc2.4.9-1DEBIAN-CVE-2021-32791
Ubuntu18.04:LTS, 20.04:LTSlibapache2-mod-auth-openidcno fix listedUBUNTU-CVE-2021-32791
Red Hatenterprise_linux:8::appstreamcjose, cjose-devel, cjose-debuginfo and 1 more0:0.6.1-2.module+el8+2454+f890a43aRHSA-2022:1823
Red Hatenterprise_linux:8::appstreammod_auth_openidc, mod_auth_openidc-debuginfo, mod_auth_openidc-debugsource0:2.3.7-11.module+el8.6.0+14082+b6f23e95RHSA-2022:1823
SUSELinux Enterprise Module for Server Applications 15 SP2, Linux Enterprise Module for Server Applications 15 SP3apache2-mod_auth_openidc2.3.8-3.15.1SUSE-SU-2021:3020-1
SUSELinux Enterprise Module for Server Applications 15 SP6, Linux Enterprise Module for Server Applications 15 SP7apache2-mod_auth_openidc2.4.17.1-150600.16.14.1SUSE-SU-2025:4532-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5apache2-mod_auth_openidc2.4.0-3.23.1SUSE-SU-2021:3352-1
openSUSELeap 15.2apache2-mod_auth_openidc2.3.8-lp152.5.6.1openSUSE-SU-2021:1277-1
openSUSELeap 15.3apache2-mod_auth_openidc2.3.8-3.15.1openSUSE-SU-2021:3020-1
openSUSELeap 15.6apache2-mod_auth_openidc2.4.17.1-150600.16.14.1SUSE-SU-2025:4532-1
AlmaLinux8cjose, cjose-devel0.6.1-2.module_el8.6.0+2868+44838709ALSA-2022:1823
AlmaLinux8mod_auth_openidc2.3.7-11.module_el8.6.0+2868+44838709ALSA-2022:1823
Rocky Linux8cjose0:0.6.1-2.module+el8.3.0+129+2feafa46RLSA-2022:1823
Rocky Linux8mod_auth_openidc0:2.3.7-11.module+el8.6.0+840+73eca44eRLSA-2022:1823
Azure Linux2httpd2.4.52-1AZL-6481

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8mod_auth_openidc:2.3-8060020220131105504.d63f516dFixed 2022-05-10RHSA-2022:1823
Red Hat Enterprise Linux 7mod_auth_openidcOut of support scope
Red Hat Enterprise Linux 9mod_auth_openidcNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-32791.

Attack patterns (CAPEC)

  • CAPEC-59 Session Credential Falsification through Prediction Likelihood: High · Severity: High
  • CAPEC-112 Brute Force Severity: High
  • CAPEC-485 Signature Spoofing by Key Recreation Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON