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 th...
MediumCVSS 5.9
EPSS 1.2%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
Description
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.
Upgrade path
14 packages: 4 fixed, 9 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/libcrypto++(Ubuntu 18.04) | = 5.6.4-8; All versions | No fix listed | No fix yet |
| ubuntu/libcrypto++(Ubuntu 20.04) | = 5.6.4-9; = 5.6.4-9build1; All versions | No fix listed | No fix yet |
| ubuntu/libcrypto++(Ubuntu 22.04) | = 8.4.0-1; = 8.6.0-2ubuntu1; All versions | No fix listed | No fix yet |
| ubuntu/libcrypto++(Ubuntu 24.04) | = 8.8.0-1; = 8.9.0-1; = 8.9.0-1.1; = 8.9.0-1.1build1 +1 more | No fix listed | No fix yet |
| ubuntu/libcrypto++(Ubuntu 25.10) | = 8.9.0-1.1build1; = 8.9.0-2; All versions | No fix listed | No fix yet |
| ubuntu/libcrypto++(Ubuntu 26.04) | = 8.9.0-2; = 8.9.0-2build1; All versions | No fix listed | No fix yet |
| ubuntu/libcrypto++(Ubuntu 26.10) | = 8.9.0-2build1; = 8.9.0-3; All versions | No fix listed | No fix yet |
| ubuntu/libcrypto++(Ubuntu Pro 14.04) | = 5.6.1-6; = 5.6.1-6+deb8u1build0.14.04.1; = 5.6.1-6+deb8u3build0.14.04.1; = 5.6.1-6+deb8u3ubuntu0.1~esm1 +1 more | No fix listed | No fix yet |
| ubuntu/libcrypto++(Ubuntu Pro 16.04) | = 5.6.1-8; = 5.6.1-9; = 5.6.1-9ubuntu0.1; = 5.6.1-9ubuntu0.1+esm1 +1 more | No fix listed | No fix yet |
| cryptopp crypto++ | <= 8.5 | after 8.5 | Fixed |
| debian/libcrypto++(Debian 12) | < 8.6.0-1 | 8.6.0-1 | Fixed |
| debian/libcrypto++(Debian 13) | < 8.6.0-1 | 8.6.0-1 | Fixed |
| debian/libcrypto++(Debian 14) | < 8.6.0-1 | 8.6.0-1 | Fixed |
| fedoraproject fedora | = 33; = 34; = 35 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/libcrypto++(Debian:12) | < 8.6.0-1 | 8.6.0-1 |
| debian/libcrypto++(Debian:13) | < 8.6.0-1 | 8.6.0-1 |
| debian/libcrypto++(Debian:14) | < 8.6.0-1 | 8.6.0-1 |
| ubuntu/libcrypto++(Ubuntu:22.04) | All versions | No fix listed |
| cryptopp crypto++ | <= 8.5 | No fix listed |
| fedoraproject fedora | = 33 | No fix listed |
| fedoraproject fedora | = 34 | No fix listed |
| fedoraproject fedora | = 35 | No fix listed |
| ubuntu/libcrypto++(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/libcrypto++(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/libcrypto++(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/libcrypto++(Ubuntu:Pro:14.04) | All versions | No fix listed |
| ubuntu/libcrypto++(Ubuntu:Pro:14.04) | = 5.6.1-6 | No fix listed |
| ubuntu/libcrypto++(Ubuntu:Pro:14.04) | = 5.6.1-6+deb8u1build0.14.04.1 | No fix listed |
| ubuntu/libcrypto++(Ubuntu:Pro:14.04) | = 5.6.1-6+deb8u3build0.14.04.1 | No fix listed |
| ubuntu/libcrypto++(Ubuntu:Pro:14.04) | = 5.6.1-6+deb8u3ubuntu0.1~esm1 | No fix listed |
| ubuntu/libcrypto++(Ubuntu:Pro:16.04) | All versions | No fix listed |
| ubuntu/libcrypto++(Ubuntu:Pro:16.04) | = 5.6.1-8 | No fix listed |
| ubuntu/libcrypto++(Ubuntu:Pro:16.04) | = 5.6.1-9 | No fix listed |
| ubuntu/libcrypto++(Ubuntu:Pro:16.04) | = 5.6.1-9ubuntu0.1 | No fix listed |
| ubuntu/libcrypto++(Ubuntu:Pro:16.04) | = 5.6.1-9ubuntu0.1+esm1 | No fix listed |
| ubuntu/libcrypto++(Ubuntu:18.04) | All versions | No fix listed |
| ubuntu/libcrypto++(Ubuntu:18.04) | = 5.6.4-8 | No fix listed |
| ubuntu/libcrypto++(Ubuntu:20.04) | All versions | No fix listed |
| ubuntu/libcrypto++(Ubuntu:20.04) | = 5.6.4-9 | No fix listed |
Show 14 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/libcrypto++(Ubuntu:20.04) | = 5.6.4-9build1 | No fix listed |
| ubuntu/libcrypto++(Ubuntu:22.04) | = 8.4.0-1 | No fix listed |
| ubuntu/libcrypto++(Ubuntu:22.04) | = 8.6.0-2ubuntu1 | No fix listed |
| ubuntu/libcrypto++(Ubuntu:24.04) | = 8.8.0-1 | No fix listed |
| ubuntu/libcrypto++(Ubuntu:24.04) | = 8.9.0-1 | No fix listed |
| ubuntu/libcrypto++(Ubuntu:24.04) | = 8.9.0-1.1 | No fix listed |
| ubuntu/libcrypto++(Ubuntu:24.04) | = 8.9.0-1.1build1 | No fix listed |
| ubuntu/libcrypto++(Ubuntu:25.10) | All versions | No fix listed |
| ubuntu/libcrypto++(Ubuntu:25.10) | = 8.9.0-1.1build1 | No fix listed |
| ubuntu/libcrypto++(Ubuntu:25.10) | = 8.9.0-2 | No fix listed |
| ubuntu/libcrypto++(Ubuntu:26.10) | = 8.9.0-2build1 | No fix listed |
| ubuntu/libcrypto++(Ubuntu:26.10) | = 8.9.0-3 | No fix listed |
| ubuntu/libcrypto++(Ubuntu:26.04) | = 8.9.0-2 | No fix listed |
| ubuntu/libcrypto++(Ubuntu:26.04) | = 8.9.0-2build1 | No fix listed |
References
- Debian Security Tracker CVE-2021-40530 vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- www.cve.org issue-tracking
- eprint.iacr.org issue-tracking technical-description third-party-advisory
- ibm.github.io issue-tracking third-party-advisory
- ibm.github.io exploit issue-tracking third-party-advisory
- FEDORA-2021-a381a721a9 vendor-advisory
- FEDORA-2021-8b14da0538 vendor-advisory
- FEDORA-2021-6788250ea4 vendor-advisory
- bugs.debian.org issue-tracking
- github.com issue-tracking