# CVE-2021-40528

- Priority: **Routine**
- Reason: Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2021-09-06 · Modified: 2025-06-09
- Aliases: ALPINE-CVE-2021-40528, MGASA-2021-0446, RHSA-2022:5311, UBUNTU-CVE-2021-40528, DEBIAN-CVE-2021-40528, DLA-2691-1, openSUSE-SU-2024:12540-1
- Record: https://cvemate.com/vulnerability/CVE-2021-40528 · JSON: https://cvemate.com/vulnerability/CVE-2021-40528/json

## Description

```text
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.
```

## Signals

- CVSS: 5.9 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS: 1.423%, percentile 73.804%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- alpine libgcrypt (Alpine Linux): \< 1.8.8-r1
- debian libgcrypt20 (Debian): \< 1.8.7-6 \| \< 1.7.6-2+deb9u4
- ubuntu libgcrypt20 (Ubuntu): \< 1.6.5-2ubuntu0.6+esm1 \| \< 1.8.1-4ubuntu1.3 \| \< 1.8.1-4ubuntu1.fips.3 \| All versions (No fix recorded) \| \< 1.8.5-5ubuntu1.1 \| \< 1.8.5-5ubuntu1.fips.1.1 \| \< 1.8.7-5ubuntu2
- gnupg libgcrypt: \< 1.9.4
- mageia libgcrypt (Mageia): \< 1.8.7-1.2.mga8
- opensuse libgcrypt&distro=openSUSE Tumbleweed (openSUSE): \< 1.10.1-1.1
- redhat libgcrypt (Red Hat): \< 0:1.8.5-7.el8\_6
- redhat libgcrypt-debuginfo (Red Hat): \< 0:1.8.5-7.el8\_6
- redhat libgcrypt-debugsource (Red Hat): \< 0:1.8.5-7.el8\_6
- redhat libgcrypt-devel (Red Hat): \< 0:1.8.5-7.el8\_6
- redhat libgcrypt-devel-debuginfo (Red Hat): \< 0:1.8.5-7.el8\_6

## References (first 20 of 21)

- <https://eprint.iacr.org/2021/923>
- <https://ibm.github.io/system-security-research-updates/2021/07/20/insecurity-elgamal-pt1>
- <https://ibm.github.io/system-security-research-updates/2021/09/06/insecurity-elgamal-pt2>
- <https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git%3Ba=commit%3Bh=3462280f2e23e16adf3ed5176e0f2413d8861320>
- <https://security.gentoo.org/glsa/202210-13>
- <https://security.alpinelinux.org/vuln/CVE-2021-40528>
- <https://advisories.mageia.org/MGASA-2021-0446.html>
- <https://bugs.mageia.org/show_bug.cgi?id=29467>
- <https://ubuntu.com/security/notices/USN-5080-1>
- <https://access.redhat.com/errata/RHSA-2022:5311>
- <https://access.redhat.com/security/updates/classification/#moderate>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2002816>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2022/rhsa-2022_5311.json>
- <https://access.redhat.com/security/cve/CVE-2021-40528>
- <https://www.cve.org/CVERecord?id=CVE-2021-40528>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-40528>
- <https://dev.gnupg.org/rCb118681ebc4c9ea4b9da79b0f9541405a64f4c13>
- <https://ubuntu.com/security/CVE-2021-40528>
- <https://ubuntu.com/security/notices/USN-5080-2>
- <https://security-tracker.debian.org/tracker/CVE-2021-40528>

---

Data as of 2026-12-05T04:51:09.631Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
