CVE catalog

CVE-2021-40530

libcrypto++: CVE-2021-40530

[CVE catalog]

Severity
High · CVSS 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Published
Source
[NVD] · [CVE record]
EPSS
1.16% · Oct 27, 2026

The ElGamal implementation in Crypto++ through 8.5 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
Debianlibcrypto++sid8.9.0-3fixed
Debianlibcrypto++forky8.9.0-3fixed
Debianlibcrypto++trixie8.9.0-2fixed
Debianlibcrypto++bookworm8.7.0+git220824-1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibcrypto++sourcesid8.6.0-1not yet assignedNot reported[993841]
Debianlibcrypto++sourceforky8.6.0-1not yet assignedNot reported[993841]
Debianlibcrypto++sourcetrixie8.6.0-1not yet assignedNot reported[993841]
Debianlibcrypto++sourcebookworm8.6.0-1not yet assignedNot reported[993841]

[Debian bug #993841]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [libcrypto++]

    Details (2)
    • 8.7.0+git220824-1 · amd64 · bookworm

      Fixed · Fixed: 8.6.0-1

      dsa · libcrypto++ · debian · bookworm; dsa · libcrypto++ · debian · 12

    • 8.7.0+git220824-1 · arm64 · bookworm

      Fixed · Fixed: 8.6.0-1

      dsa · libcrypto++ · debian · bookworm; dsa · libcrypto++ · debian · 12

  • Source package: [libcrypto++]

    Details (2)
    • 8.7.0+git220824-1 · amd64 · bookworm

      Fixed · Fixed: 8.6.0-1

      dsa · libcrypto++ · debian · bookworm; dsa · libcrypto++ · debian · 12

    • 8.7.0+git220824-1 · arm64 · bookworm

      Fixed · Fixed: 8.6.0-1

      dsa · libcrypto++ · debian · bookworm; dsa · libcrypto++ · debian · 12

  • Source package: [libcrypto++]

    Details (2)
    • 8.7.0+git220824-1 · all · bookworm

      Fixed · Fixed: 8.6.0-1

      dsa · libcrypto++ · debian · bookworm; dsa · libcrypto++ · debian · 12

    • 8.7.0+git220824-1 · all · bookworm

      Fixed · Fixed: 8.6.0-1

      dsa · libcrypto++ · debian · bookworm; dsa · libcrypto++ · debian · 12

  • Source package: [libcrypto++]

    Details (2)
    • 8.7.0+git220824-1 · amd64 · bookworm

      Fixed · Fixed: 8.6.0-1

      dsa · libcrypto++ · debian · bookworm; dsa · libcrypto++ · debian · 12

    • 8.7.0+git220824-1 · arm64 · bookworm

      Fixed · Fixed: 8.6.0-1

      dsa · libcrypto++ · debian · bookworm; dsa · libcrypto++ · debian · 12

[Debian 13 (Trixie)]

  • Source package: [libcrypto++]

    Details (2)
    • 8.9.0-2 · amd64 · trixie

      Fixed · Fixed: 8.6.0-1

      dsa · libcrypto++ · debian · 13

    • 8.9.0-2 · arm64 · trixie

      Fixed · Fixed: 8.6.0-1

      dsa · libcrypto++ · debian · 13

  • Source package: [libcrypto++]

    Details (2)
    • 8.9.0-2 · amd64 · trixie

      Fixed · Fixed: 8.6.0-1

      dsa · libcrypto++ · debian · 13

    • 8.9.0-2 · arm64 · trixie

      Fixed · Fixed: 8.6.0-1

      dsa · libcrypto++ · debian · 13

  • Source package: [libcrypto++]

    Details (2)
    • 8.9.0-2 · all · trixie

      Fixed · Fixed: 8.6.0-1

      dsa · libcrypto++ · debian · 13

    • 8.9.0-2 · all · trixie

      Fixed · Fixed: 8.6.0-1

      dsa · libcrypto++ · debian · 13

  • Source package: [libcrypto++]

    Details (2)
    • 8.9.0-2 · amd64 · trixie

      Fixed · Fixed: 8.6.0-1

      dsa · libcrypto++ · debian · 13

    • 8.9.0-2 · arm64 · trixie

      Fixed · Fixed: 8.6.0-1

      dsa · libcrypto++ · debian · 13

Observed:

References