Skip to content

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

Moderate
zandbelt published GHSA-px3c-6x7j-3r9r Jul 24, 2021

Package

mod_auth_openidc

Affected versions

<=2.4.8.4

Patched versions

>=2.4.9

Description

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, see:
375407c

Severity

Moderate

CVE ID

CVE-2021-32791

Weaknesses

No CWEs

Credits