Vulnerability · Published Sep 6, 2021 · Assigned by mitre

CVE-2021-40528

Medium 5.9

In plain English

A medium-severity broken cryptography in the libgcrypt package (AlmaLinux). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.4% (higher than 73% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.9Medium
Exploit odds (30 days)1.4%top 27.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

The ElGamal implementation in Libgcrypt before 1.9.4 allows plaintext recovery because, during interaction between two cryptographic libraries, a certain dangerous combination of the prime defined by the receiver's public key, the generator defined by the receiver's public key, and the sender's ephemeral exponents can lead to a cross-configuration attack against OpenPGP.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8libgcrypt1.8.5-7.el8_6ALSA-2022:5311
AlmaLinux:8libgcrypt-devel1.8.5-7.el8_6ALSA-2022:5311
Debian:12libgcrypt201.8.7-6DEBIAN-CVE-2021-40528
Debian:13libgcrypt201.8.7-6DEBIAN-CVE-2021-40528
Debian:14libgcrypt201.8.7-6DEBIAN-CVE-2021-40528
Rocky Linux:8libgcrypt0:1.8.5-7.el8_6RLSA-2022:5311
Ubuntu:22.04:LTSlibgcrypt201.8.7-5ubuntu2UBUNTU-CVE-2021-40528

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

Weakness: CWE-327 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

References