Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2021-40528

published medium CVSS 3.1 · 5.9

libgcrypt: ElGamal implementation allows plaintext recovery

Title from Red Hat VEX

Published
06 Sep 2021, 00:00:00 UTC
Updated
09 Jun 2025, 15:13:03 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
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 / vendorReleasePackage / productPublisher statusFixed buildSource
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.

en · mitre · cna

Vendor advisories explicitly linked to this CVE.

13

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.

Affected vendor and product assertions
VendorProductVersion statusSource
n/a n/a n/a (affected) mitre · cna

Weaknesses

2
  • n/a (mitre · cna)
  • CWE-327 CWE-327 Use of a Broken or Risky Cryptographic Algorithm (CISA-ADP · adp)

References

5

Provider assertions

3

mitre · 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

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected