CVE-2021-32791

Hardcoded static IV and AAD with a reused key in AES GCM encryption in mod_auth_openidc

Published Jul 26, 2021 CVSS 3.1 · 5.9 Medium EPSS 1.5% KEV · Not listed
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.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3409-1 libapache2-mod-auth-openidc security update
EUVD EUVD EUVD-2021-19554 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.
History

No history.

Weaknesses
  • CWE-323

    Reusing a Nonce, Key Pair in Encryption

  • CWE-330

    Use of Insufficiently Random Values

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 3, 2024, 11:33 PM
Reserved
May 12, 2021, 12:00 AM
Status
Modified
Published
Jul 26, 2021, 5:15 PM
Modified
Jun 17, 2026, 3:53 AM
Severity
Moderate
Public date
Jul 24, 2021, 12:00 AM