CVE-2021-40528
published medium CVSS 3.1 · 5.9libgcrypt: ElGamal implementation allows plaintext recovery
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| AlmaLinux | 8 | libgcrypt | Advisory build | 1.8.5-7.el8_6 | ALSA-2022:5311 |
| Alpine Linux | v3.11 | libgcrypt | Fixed | 1.8.8-r1 | Package fix record |
| Debian | stretch | libgcrypt20 | Advisory build | 1.7.6-2+deb9u4 | DLA-2691-1 |
| Oracle Linux | 8 | libgcryptaarch64 | Advisory build | 0:1.8.5-7.el8_6 | ELSA-2022-5311 |
| Red Hat Enterprise Linux | RHEL-8 | libgcryptaarch64 | Advisory build | 1.8.5-7.el8_6 | RHSA-2022:5311 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgcrypt-develaarch64 | Advisory build | 1.10.1-1.1 | OPENSUSE-SU-2024:12540-1 |
| Ubuntu | bionic | libgcrypt20 | Advisory build | 1.8.1-4ubuntu1.3 | USN-5080-1 |
Show 76 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Rocky Linux | 8 | libgcryptaarch64 | Listed in advisory | Not stated | RLSA-2022:5311 |
| AlmaLinux | 8 | libgcrypt-devel | Advisory build | 1.8.5-7.el8_6 | ALSA-2022:5311 |
| Alpine Linux | v3.12 | libgcrypt | Fixed | 1.8.8-r1 | Package fix record |
| Alpine Linux | v3.13 | libgcrypt | Fixed | 1.8.8-r1 | Package fix record |
| Oracle Linux | 8 | libgcryptaarch64 | Advisory build | 10:1.8.5-7.el8_6_fips | ELSA-2022-9564 |
| Oracle Linux | 8 | libgcryptx86_64 | Advisory build | 0:1.8.5-7.el8_6 | ELSA-2022-5311 |
| Oracle Linux | 8 | libgcryptx86_64 | Advisory build | 10:1.8.5-7.el8_6_fips | ELSA-2022-9564 |
| Oracle Linux | 8 | libgcrypt-develaarch64 | Advisory build | 0:1.8.5-7.el8_6 | ELSA-2022-5311 |
| Oracle Linux | 8 | libgcrypt-develaarch64 | Advisory build | 10:1.8.5-7.el8_6_fips | ELSA-2022-9564 |
| Oracle Linux | 8 | libgcrypt-develx86_64 | Advisory build | 0:1.8.5-7.el8_6 | ELSA-2022-5311 |
| Oracle Linux | 8 | libgcrypt-develx86_64 | Advisory build | 10:1.8.5-7.el8_6_fips | ELSA-2022-9564 |
| Red Hat Enterprise Linux | RHEL-8 | libgcrypti686 | Advisory build | 1.8.5-7.el8_6 | RHSA-2022:5311 |
| Red Hat Enterprise Linux | RHEL-8 | libgcryptppc64le | Advisory build | 1.8.5-7.el8_6 | RHSA-2022:5311 |
| Red Hat Enterprise Linux | RHEL-8 | libgcrypts390x | Advisory build | 1.8.5-7.el8_6 | RHSA-2022:5311 |
| Red Hat Enterprise Linux | RHEL-8 | libgcryptsrc | Advisory build | 1.8.5-7.el8_6 | RHSA-2022:5311 |
| Red Hat Enterprise Linux | RHEL-8 | libgcryptx86_64 | Advisory build | 1.8.5-7.el8_6 | RHSA-2022:5311 |
| Red Hat Enterprise Linux | RHEL-8 | libgcrypt-debuginfoaarch64 | Advisory build | 1.8.5-7.el8_6 | RHSA-2022:5311 |
| Red Hat Enterprise Linux | RHEL-8 | libgcrypt-debuginfoi686 | Advisory build | 1.8.5-7.el8_6 | RHSA-2022:5311 |
| Red Hat Enterprise Linux | RHEL-8 | libgcrypt-debuginfoppc64le | Advisory build | 1.8.5-7.el8_6 | RHSA-2022:5311 |
| Red Hat Enterprise Linux | RHEL-8 | libgcrypt-debuginfos390x | Advisory build | 1.8.5-7.el8_6 | RHSA-2022:5311 |
| Red Hat Enterprise Linux | RHEL-8 | libgcrypt-debuginfox86_64 | Advisory build | 1.8.5-7.el8_6 | RHSA-2022:5311 |
| Red Hat Enterprise Linux | RHEL-8 | libgcrypt-debugsourceaarch64 | Advisory build | 1.8.5-7.el8_6 | RHSA-2022:5311 |
| Red Hat Enterprise Linux | RHEL-8 | libgcrypt-debugsourcei686 | Advisory build | 1.8.5-7.el8_6 | RHSA-2022:5311 |
| Red Hat Enterprise Linux | RHEL-8 | libgcrypt-debugsourceppc64le | Advisory build | 1.8.5-7.el8_6 | RHSA-2022:5311 |
| Red Hat Enterprise Linux | RHEL-8 | libgcrypt-debugsources390x | Advisory build | 1.8.5-7.el8_6 | RHSA-2022:5311 |
| Red Hat Enterprise Linux | RHEL-8 | libgcrypt-debugsourcex86_64 | Advisory build | 1.8.5-7.el8_6 | RHSA-2022:5311 |
| Red Hat Enterprise Linux | RHEL-8 | libgcrypt-develaarch64 | Advisory build | 1.8.5-7.el8_6 | RHSA-2022:5311 |
| Red Hat Enterprise Linux | RHEL-8 | libgcrypt-develi686 | Advisory build | 1.8.5-7.el8_6 | RHSA-2022:5311 |
| Red Hat Enterprise Linux | RHEL-8 | libgcrypt-develppc64le | Advisory build | 1.8.5-7.el8_6 | RHSA-2022:5311 |
| Red Hat Enterprise Linux | RHEL-8 | libgcrypt-devels390x | Advisory build | 1.8.5-7.el8_6 | RHSA-2022:5311 |
| Red Hat Enterprise Linux | RHEL-8 | libgcrypt-develx86_64 | Advisory build | 1.8.5-7.el8_6 | RHSA-2022:5311 |
| Red Hat Enterprise Linux | RHEL-8 | libgcrypt-devel-debuginfoaarch64 | Advisory build | 1.8.5-7.el8_6 | RHSA-2022:5311 |
| Red Hat Enterprise Linux | RHEL-8 | libgcrypt-devel-debuginfoi686 | Advisory build | 1.8.5-7.el8_6 | RHSA-2022:5311 |
| Red Hat Enterprise Linux | RHEL-8 | libgcrypt-devel-debuginfoppc64le | Advisory build | 1.8.5-7.el8_6 | RHSA-2022:5311 |
| Red Hat Enterprise Linux | RHEL-8 | libgcrypt-devel-debuginfos390x | Advisory build | 1.8.5-7.el8_6 | RHSA-2022:5311 |
| Red Hat Enterprise Linux | RHEL-8 | libgcrypt-devel-debuginfox86_64 | Advisory build | 1.8.5-7.el8_6 | RHSA-2022:5311 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgcrypt-develppc64le | Advisory build | 1.10.1-1.1 | OPENSUSE-SU-2024:12540-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgcrypt-devels390x | Advisory build | 1.10.1-1.1 | OPENSUSE-SU-2024:12540-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgcrypt-develx86_64 | Advisory build | 1.10.1-1.1 | OPENSUSE-SU-2024:12540-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgcrypt-devel-32bitaarch64 | Advisory build | 1.10.1-1.1 | OPENSUSE-SU-2024:12540-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgcrypt-devel-32bitppc64le | Advisory build | 1.10.1-1.1 | OPENSUSE-SU-2024:12540-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgcrypt-devel-32bits390x | Advisory build | 1.10.1-1.1 | OPENSUSE-SU-2024:12540-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgcrypt-devel-32bitx86_64 | Advisory build | 1.10.1-1.1 | OPENSUSE-SU-2024:12540-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgcrypt20aarch64 | Advisory build | 1.10.1-1.1 | OPENSUSE-SU-2024:12540-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgcrypt20ppc64le | Advisory build | 1.10.1-1.1 | OPENSUSE-SU-2024:12540-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgcrypt20s390x | Advisory build | 1.10.1-1.1 | OPENSUSE-SU-2024:12540-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgcrypt20x86_64 | Advisory build | 1.10.1-1.1 | OPENSUSE-SU-2024:12540-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgcrypt20-32bitaarch64 | Advisory build | 1.10.1-1.1 | OPENSUSE-SU-2024:12540-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgcrypt20-32bitppc64le | Advisory build | 1.10.1-1.1 | OPENSUSE-SU-2024:12540-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgcrypt20-32bits390x | Advisory build | 1.10.1-1.1 | OPENSUSE-SU-2024:12540-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgcrypt20-32bitx86_64 | Advisory build | 1.10.1-1.1 | OPENSUSE-SU-2024:12540-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgcrypt20-hmacaarch64 | Advisory build | 1.10.1-1.1 | OPENSUSE-SU-2024:12540-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgcrypt20-hmacppc64le | Advisory build | 1.10.1-1.1 | OPENSUSE-SU-2024:12540-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgcrypt20-hmacs390x | Advisory build | 1.10.1-1.1 | OPENSUSE-SU-2024:12540-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgcrypt20-hmacx86_64 | Advisory build | 1.10.1-1.1 | OPENSUSE-SU-2024:12540-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgcrypt20-hmac-32bitaarch64 | Advisory build | 1.10.1-1.1 | OPENSUSE-SU-2024:12540-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgcrypt20-hmac-32bitppc64le | Advisory build | 1.10.1-1.1 | OPENSUSE-SU-2024:12540-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgcrypt20-hmac-32bits390x | Advisory build | 1.10.1-1.1 | OPENSUSE-SU-2024:12540-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libgcrypt20-hmac-32bitx86_64 | Advisory build | 1.10.1-1.1 | OPENSUSE-SU-2024:12540-1 |
| Ubuntu | focal | libgcrypt20 | Advisory build | 1.8.5-5ubuntu1.1 | USN-5080-1 |
| Ubuntu | xenial | libgcrypt20 | Advisory build | 1.6.5-2ubuntu0.6+esm1 | USN-5080-2 |
| Rocky Linux | 8 | libgcrypti686 | Listed in advisory | Not stated | RLSA-2022:5311 |
| Rocky Linux | 8 | libgcryptsrc | Listed in advisory | Not stated | RLSA-2022:5311 |
| Rocky Linux | 8 | libgcryptx86_64 | Listed in advisory | Not stated | RLSA-2022:5311 |
| Rocky Linux | 8 | libgcrypt-debuginfoaarch64 | Listed in advisory | Not stated | RLSA-2022:5311 |
| Rocky Linux | 8 | libgcrypt-debuginfoi686 | Listed in advisory | Not stated | RLSA-2022:5311 |
| Rocky Linux | 8 | libgcrypt-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2022:5311 |
| Rocky Linux | 8 | libgcrypt-debugsourceaarch64 | Listed in advisory | Not stated | RLSA-2022:5311 |
| Rocky Linux | 8 | libgcrypt-debugsourcei686 | Listed in advisory | Not stated | RLSA-2022:5311 |
| Rocky Linux | 8 | libgcrypt-debugsourcex86_64 | Listed in advisory | Not stated | RLSA-2022:5311 |
| Rocky Linux | 8 | libgcrypt-develaarch64 | Listed in advisory | Not stated | RLSA-2022:5311 |
| Rocky Linux | 8 | libgcrypt-develi686 | Listed in advisory | Not stated | RLSA-2022:5311 |
| Rocky Linux | 8 | libgcrypt-develx86_64 | Listed in advisory | Not stated | RLSA-2022:5311 |
| Rocky Linux | 8 | libgcrypt-devel-debuginfoaarch64 | Listed in advisory | Not stated | RLSA-2022:5311 |
| Rocky Linux | 8 | libgcrypt-devel-debuginfoi686 | Listed in advisory | Not stated | RLSA-2022:5311 |
| Rocky Linux | 8 | libgcrypt-devel-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2022:5311 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
2- n/a
- CWE-327 CWE-327 Use of a Broken or Risky Cryptographic Algorithm
References
5- https://eprint.iacr.org/2021/923
- https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git%3Ba=commit%3Bh=3462280f2e23e16adf3ed5176e0f2413d8861320
- 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
- GLSA-202210-13 https://security.gentoo.org/glsa/202210-13
Provider assertions
3mitre · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- f66f3fc4300d0931e95b7f73dd43292e71f712b5d3b190fea45f187c7d0e33f1
- Ingested
- 23 Sep 2026, 07:56:07 UTC
- Source record
- Official CVE record