Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
5.9

CVE-2021-40530: 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...

CVE-2021-40530 · published 5 years ago
Summary

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 epheme...

What to do
  • Update debian libcrypto++ to version 8.6.0-1.
Affected software
Ecosystem VendorProductAffected versions
– cryptopp crypto\+\+ <= 8.5
cpe:2.3:a:cryptopp:crypto\+\+:*:*:*:*:*:*:*:*
– fedoraproject fedora 33
34
35
cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*
Ubuntu:Pro:14.04:LTS canonical libcrypto++ All versions
Debian:12 debian libcrypto++ < 8.6.0-1
Fix: upgrade to 8.6.0-1
Original advisory text
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 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.
Fix within
Internet-facing 14 days
Internal 60 days
  • Not known to be exploited
  • Can be exploited automatically (estimated)
  • Gives an attacker partial control (estimated)
Severity
5.9 Medium
Exploitation
1% chance of attack within 30 days
Type
CWE-327Use of a Broken Cryptographic Algorithm
Timeline
Published6 Sep 2021
Updated4 Nov 2026
First seen29 Sep 2026
Track software like this
Free during beta