CVE catalog

CVE-2021-40528

libgcrypt20: CVE-2021-40528

[CVE catalog]

Severity
Medium · CVSS 5.9CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Published
Source
[NVD] · [CVE record]
EPSS
1.42% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianlibgcrypt20sid1.12.4-2fixed
Debianlibgcrypt20forky1.12.4-2fixed
Debianlibgcrypt20trixie1.11.0-7+deb13u1fixed
Debianlibgcrypt20trixie-security1.11.0-7+deb13u1fixed
Debianlibgcrypt20bookworm1.10.1-3+deb12u1fixed
Debianlibgcrypt20bookworm-security1.10.1-3+deb12u1fixed
Alpinelibgcrypt3.111.8.8-r1fixed
Alpinelibgcrypt3.121.8.8-r1fixed
Alpinelibgcrypt3.131.8.8-r1fixed
Ubuntulibgcrypt20pro1.8.5-5ubuntu1.fips.1.1fixed
Ubuntulibgcrypt2018.041.7.8-2ubuntu1vulnerable
Ubuntulibgcrypt2018.041.7.9-1vulnerable
Ubuntulibgcrypt2018.041.8.1-4vulnerable
Ubuntulibgcrypt2018.041.8.1-4ubuntu1vulnerable
Ubuntulibgcrypt2018.041.8.1-4ubuntu1.1vulnerable
Ubuntulibgcrypt2018.041.8.1-4ubuntu1.2vulnerable
Ubuntulibgcrypt2018.041.8.1-4ubuntu1.3fixed
Ubuntulibgcrypt2020.041.8.4-5ubuntu2vulnerable
Ubuntulibgcrypt2020.041.8.5-3ubuntu1vulnerable
Ubuntulibgcrypt2020.041.8.5-5ubuntu1vulnerable
Ubuntulibgcrypt2020.041.8.5-5ubuntu1.1fixed
Ubuntulibgcrypt2022.041.8.7-5ubuntu2fixed
Opensuselibgcrypttumbleweed1.10.1-1.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibgcrypt20sourcesid1.8.7-6not yet assignedNot reportedNot reported
Debianlibgcrypt20sourceforky1.8.7-6not yet assignedNot reportedNot reported
Debianlibgcrypt20sourcetrixie1.8.7-6not yet assignedNot reportedNot reported
Debianlibgcrypt20sourcebookworm1.8.7-6not yet assignedNot reportedNot reported
Alpinelibgcryptapk3.111.8.8-r1Not reportedALPINE-CVE-2021-40528Not reported
Alpinelibgcryptapk3.121.8.8-r1Not reportedALPINE-CVE-2021-40528Not reported
Alpinelibgcryptapk3.131.8.8-r1Not reportedALPINE-CVE-2021-40528Not reported
Ubuntulibgcrypt20debpro1.8.5-5ubuntu1.fips.1.1Not reportedUBUNTU-CVE-2021-40528Not reported
Ubuntulibgcrypt20deb18.041.8.1-4ubuntu1.3Not reportedUBUNTU-CVE-2021-40528Not reported
Ubuntulibgcrypt20deb20.041.8.5-5ubuntu1.1Not reportedUBUNTU-CVE-2021-40528Not reported
Ubuntulibgcrypt20deb22.041.8.7-5ubuntu2Not reportedUBUNTU-CVE-2021-40528Not reported
Opensuselibgcryptrpmtumbleweed1.10.1-1.1Not reportedOPENSUSE-SU-2024:12540-1Not reported

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • [libgcrypt20]Unknown
    Details (4)
    • 1.10.1-3+deb12u1 · amd64 · bookworm

      Fixed · Fixed: 1.8.7-6

      dsa · libgcrypt20 · debian · bookworm; dsa · libgcrypt20 · debian · 12

    • 1.10.1-3+deb12u1 · arm64 · bookworm

      Fixed · Fixed: 1.8.7-6

      dsa · libgcrypt20 · debian · bookworm; dsa · libgcrypt20 · debian · 12

    • 1.10.1-3+deb12u1 · amd64 · bookworm-security

      Fixed · Fixed: 1.8.7-6

      dsa · libgcrypt20 · debian · bookworm; dsa · libgcrypt20 · debian · 12

    • 1.10.1-3+deb12u1 · arm64 · bookworm-security

      Fixed · Fixed: 1.8.7-6

      dsa · libgcrypt20 · debian · bookworm; dsa · libgcrypt20 · debian · 12

  • Source package: [libgcrypt20]

    Details (4)
    • 1.10.1-3+deb12u1 · amd64 · bookworm

      Fixed · Fixed: 1.8.7-6

      dsa · libgcrypt20 · debian · bookworm; dsa · libgcrypt20 · debian · 12

    • 1.10.1-3+deb12u1 · arm64 · bookworm

      Fixed · Fixed: 1.8.7-6

      dsa · libgcrypt20 · debian · bookworm; dsa · libgcrypt20 · debian · 12

    • 1.10.1-3+deb12u1 · amd64 · bookworm-security

      Fixed · Fixed: 1.8.7-6

      dsa · libgcrypt20 · debian · bookworm; dsa · libgcrypt20 · debian · 12

    • 1.10.1-3+deb12u1 · arm64 · bookworm-security

      Fixed · Fixed: 1.8.7-6

      dsa · libgcrypt20 · debian · bookworm; dsa · libgcrypt20 · debian · 12

  • Source package: [libgcrypt20]

    Details (4)
    • 1.10.1-3+deb12u1 · all · bookworm

      Fixed · Fixed: 1.8.7-6

      dsa · libgcrypt20 · debian · bookworm; dsa · libgcrypt20 · debian · 12

    • 1.10.1-3+deb12u1 · all · bookworm

      Fixed · Fixed: 1.8.7-6

      dsa · libgcrypt20 · debian · bookworm; dsa · libgcrypt20 · debian · 12

    • 1.10.1-3+deb12u1 · all · bookworm-security

      Fixed · Fixed: 1.8.7-6

      dsa · libgcrypt20 · debian · bookworm; dsa · libgcrypt20 · debian · 12

    • 1.10.1-3+deb12u1 · all · bookworm-security

      Fixed · Fixed: 1.8.7-6

      dsa · libgcrypt20 · debian · bookworm; dsa · libgcrypt20 · debian · 12

  • Source package: [libgcrypt20]

    Details (4)
    • 1.10.1-3+deb12u1 · all · bookworm

      Fixed · Fixed: 1.8.7-6

      dsa · libgcrypt20 · debian · bookworm; dsa · libgcrypt20 · debian · 12

    • 1.10.1-3+deb12u1 · all · bookworm

      Fixed · Fixed: 1.8.7-6

      dsa · libgcrypt20 · debian · bookworm; dsa · libgcrypt20 · debian · 12

    • 1.10.1-3+deb12u1 · all · bookworm-security

      Fixed · Fixed: 1.8.7-6

      dsa · libgcrypt20 · debian · bookworm; dsa · libgcrypt20 · debian · 12

    • 1.10.1-3+deb12u1 · all · bookworm-security

      Fixed · Fixed: 1.8.7-6

      dsa · libgcrypt20 · debian · bookworm; dsa · libgcrypt20 · debian · 12

[Debian 13 (Trixie)]

  • [libgcrypt20]Unknown
    Details (4)
    • 1.11.0-7+deb13u1 · amd64 · trixie

      Fixed · Fixed: 1.8.7-6

      dsa · libgcrypt20 · debian · 13

    • 1.11.0-7+deb13u1 · arm64 · trixie

      Fixed · Fixed: 1.8.7-6

      dsa · libgcrypt20 · debian · 13

    • 1.11.0-7+deb13u1 · amd64 · trixie-security

      Fixed · Fixed: 1.8.7-6

      dsa · libgcrypt20 · debian · 13

    • 1.11.0-7+deb13u1 · arm64 · trixie-security

      Fixed · Fixed: 1.8.7-6

      dsa · libgcrypt20 · debian · 13

  • Source package: [libgcrypt20]

    Details (4)
    • 1.11.0-7+deb13u1 · amd64 · trixie

      Fixed · Fixed: 1.8.7-6

      dsa · libgcrypt20 · debian · 13

    • 1.11.0-7+deb13u1 · arm64 · trixie

      Fixed · Fixed: 1.8.7-6

      dsa · libgcrypt20 · debian · 13

    • 1.11.0-7+deb13u1 · amd64 · trixie-security

      Fixed · Fixed: 1.8.7-6

      dsa · libgcrypt20 · debian · 13

    • 1.11.0-7+deb13u1 · arm64 · trixie-security

      Fixed · Fixed: 1.8.7-6

      dsa · libgcrypt20 · debian · 13

  • Source package: [libgcrypt20]

    Details (4)
    • 1.11.0-7+deb13u1 · all · trixie

      Fixed · Fixed: 1.8.7-6

      dsa · libgcrypt20 · debian · 13

    • 1.11.0-7+deb13u1 · all · trixie

      Fixed · Fixed: 1.8.7-6

      dsa · libgcrypt20 · debian · 13

    • 1.11.0-7+deb13u1 · all · trixie-security

      Fixed · Fixed: 1.8.7-6

      dsa · libgcrypt20 · debian · 13

    • 1.11.0-7+deb13u1 · all · trixie-security

      Fixed · Fixed: 1.8.7-6

      dsa · libgcrypt20 · debian · 13

  • [libgcrypt-bin]Unknown

    Source package: [libgcrypt20]

    Details (4)
    • 1.11.0-7+deb13u1 · amd64 · trixie

      Fixed · Fixed: 1.8.7-6

      dsa · libgcrypt20 · debian · 13

    • 1.11.0-7+deb13u1 · arm64 · trixie

      Fixed · Fixed: 1.8.7-6

      dsa · libgcrypt20 · debian · 13

    • 1.11.0-7+deb13u1 · amd64 · trixie-security

      Fixed · Fixed: 1.8.7-6

      dsa · libgcrypt20 · debian · 13

    • 1.11.0-7+deb13u1 · arm64 · trixie-security

      Fixed · Fixed: 1.8.7-6

      dsa · libgcrypt20 · debian · 13

  • Source package: [libgcrypt20]

    Details (4)
    • 1.11.0-7+deb13u1 · all · trixie

      Fixed · Fixed: 1.8.7-6

      dsa · libgcrypt20 · debian · 13

    • 1.11.0-7+deb13u1 · all · trixie

      Fixed · Fixed: 1.8.7-6

      dsa · libgcrypt20 · debian · 13

    • 1.11.0-7+deb13u1 · all · trixie-security

      Fixed · Fixed: 1.8.7-6

      dsa · libgcrypt20 · debian · 13

    • 1.11.0-7+deb13u1 · all · trixie-security

      Fixed · Fixed: 1.8.7-6

      dsa · libgcrypt20 · debian · 13

[openSUSE Tumbleweed]

  • [libgcrypt20]Unknown

    Source package: [libgcrypt]

    Details (1)
    • 1.12.2-1.4 · x86_64 · tumbleweed

      Unknown · Fixed: 1.10.1-1.1

      Version impact unknown

      dsa · libgcrypt · opensuse · tumbleweed

  • Source package: [libgcrypt]

    Details (1)
    • 1.12.2-1.4 · x86_64 · tumbleweed

      Unknown · Fixed: 1.10.1-1.1

      Version impact unknown

      dsa · libgcrypt · opensuse · tumbleweed

  • Source package: [libgcrypt]

    Details (1)
    • 1.12.2-1.4 · x86_64 · tumbleweed

      Unknown · Fixed: 1.10.1-1.1

      Version impact unknown

      dsa · libgcrypt · opensuse · tumbleweed

  • Source package: [libgcrypt]

    Details (1)
    • 1.12.2-1.4 · x86_64 · tumbleweed

      Unknown · Fixed: 1.10.1-1.1

      Version impact unknown

      dsa · libgcrypt · opensuse · tumbleweed

  • Source package: [libgcrypt]

    Details (1)
    • 1.12.2-1.4 · x86_64 · tumbleweed

      Unknown · Fixed: 1.10.1-1.1

      Version impact unknown

      dsa · libgcrypt · opensuse · tumbleweed

  • Source package: [libgcrypt]

    Details (1)
    • 1.12.2-1.4 · x86_64 · tumbleweed

      Unknown · Fixed: 1.10.1-1.1

      Version impact unknown

      dsa · libgcrypt · opensuse · tumbleweed

Observed:

References