CVE-2021-40528 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....
MediumCVSS 5.9
EPSS 1.4%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/libgcrypt20(Debian:12) | < 1.8.7-6 | 1.8.7-6 |
| debian/libgcrypt20(Debian:13) | < 1.8.7-6 | 1.8.7-6 |
| debian/libgcrypt20(Debian:14) | < 1.8.7-6 | 1.8.7-6 |
| ubuntu/libgcrypt20(Ubuntu:22.04) | < 1.8.7-5ubuntu2 | 1.8.7-5ubuntu2 |
| gnupg Libgcrypt | < 1.9.4 | 1.9.4 |
| alpine/libgcrypt(Alpine:v3.11) | < 1.8.8-r1 | 1.8.8-r1 |
| alpine/libgcrypt(Alpine:v3.12) | < 1.8.8-r1 | 1.8.8-r1 |
| alpine/libgcrypt(Alpine:v3.13) | < 1.8.8-r1 | 1.8.8-r1 |
| ubuntu/libgcrypt20(Ubuntu:Pro:16.04) | < 1.6.5-2ubuntu0.6+esm1 | 1.6.5-2ubuntu0.6+esm1 |
| ubuntu/libgcrypt20(Ubuntu:Pro:16.04) | = 1.6.3-2ubuntu1 | No fix listed |
| ubuntu/libgcrypt20(Ubuntu:Pro:16.04) | = 1.6.4-3 | No fix listed |
| ubuntu/libgcrypt20(Ubuntu:Pro:16.04) | = 1.6.4-4 | No fix listed |
| ubuntu/libgcrypt20(Ubuntu:Pro:16.04) | = 1.6.4-5 | No fix listed |
| ubuntu/libgcrypt20(Ubuntu:Pro:16.04) | = 1.6.5-2 | No fix listed |
| ubuntu/libgcrypt20(Ubuntu:Pro:16.04) | = 1.6.5-2ubuntu0.2 | No fix listed |
| ubuntu/libgcrypt20(Ubuntu:Pro:16.04) | = 1.6.5-2ubuntu0.3 | No fix listed |
| ubuntu/libgcrypt20(Ubuntu:Pro:16.04) | = 1.6.5-2ubuntu0.4 | No fix listed |
| ubuntu/libgcrypt20(Ubuntu:Pro:16.04) | = 1.6.5-2ubuntu0.5 | No fix listed |
| ubuntu/libgcrypt20(Ubuntu:Pro:16.04) | = 1.6.5-2ubuntu0.6 | No fix listed |
| ubuntu/libgcrypt20(Ubuntu:18.04) | < 1.8.1-4ubuntu1.3 | 1.8.1-4ubuntu1.3 |
| ubuntu/libgcrypt20(Ubuntu:18.04) | = 1.7.8-2ubuntu1 | No fix listed |
| ubuntu/libgcrypt20(Ubuntu:18.04) | = 1.7.9-1 | No fix listed |
| ubuntu/libgcrypt20(Ubuntu:18.04) | = 1.8.1-4 | No fix listed |
| ubuntu/libgcrypt20(Ubuntu:18.04) | = 1.8.1-4ubuntu1 | No fix listed |
| ubuntu/libgcrypt20(Ubuntu:18.04) | = 1.8.1-4ubuntu1.1 | No fix listed |
Show 13 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/libgcrypt20(Ubuntu:18.04) | = 1.8.1-4ubuntu1.2 | No fix listed |
| ubuntu/libgcrypt20(Ubuntu:Pro:FIPS-updates:18.04) | < 1.8.1-4ubuntu1.fips.3 | 1.8.1-4ubuntu1.fips.3 |
| ubuntu/libgcrypt20(Ubuntu:Pro:FIPS-updates:18.04) | = 1.8.1-4ubuntu1.fips.2.4 | No fix listed |
| ubuntu/libgcrypt20(Ubuntu:Pro:FIPS-updates:18.04) | = 1.8.1-4ubuntu1.fips.2.5 | No fix listed |
| ubuntu/libgcrypt20(Ubuntu:Pro:FIPS:18.04) | All versions | No fix listed |
| ubuntu/libgcrypt20(Ubuntu:Pro:FIPS:18.04) | = 1.8.1-4ubuntu1.fips.2.4 | No fix listed |
| ubuntu/libgcrypt20(Ubuntu:Pro:FIPS:18.04) | = 1.8.1-4ubuntu1.fips.2.5 | No fix listed |
| ubuntu/libgcrypt20(Ubuntu:20.04) | < 1.8.5-5ubuntu1.1 | 1.8.5-5ubuntu1.1 |
| ubuntu/libgcrypt20(Ubuntu:20.04) | = 1.8.4-5ubuntu2 | No fix listed |
| ubuntu/libgcrypt20(Ubuntu:20.04) | = 1.8.5-3ubuntu1 | No fix listed |
| ubuntu/libgcrypt20(Ubuntu:20.04) | = 1.8.5-5ubuntu1 | No fix listed |
| ubuntu/libgcrypt20(Ubuntu:Pro:FIPS-updates:20.04) | < 1.8.5-5ubuntu1.fips.1.1 | 1.8.5-5ubuntu1.fips.1.1 |
| ubuntu/libgcrypt20(Ubuntu:Pro:FIPS:20.04) | < 1.8.5-5ubuntu1.fips.1.1 | 1.8.5-5ubuntu1.fips.1.1 |
References
- Debian Security Tracker CVE-2021-40528 vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-5080-1 vendor-advisory
- USN-5080-2 vendor-advisory
- www.cve.org issue-tracking
- eprint.iacr.org issue-tracking technical-description third-party-advisory
- git.gnupg.org
- ibm.github.io issue-tracking third-party-advisory
- ibm.github.io exploit issue-tracking third-party-advisory
- GLSA-202210-13 third-party-advisory vendor-advisory
- security.alpinelinux.org vendor-advisory