---
title: "CVE-2021-40528"
canonical_url: "https://pkgseek.com/security/CVE-2021-40528"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "medium"
---

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

CVE-2021-40528 is rated MEDIUM (5.9), with 5 indexed affected package builds across 2 distributions.

- **Severity / Score**: MEDIUM (5.9)
- **Affected builds**: 5
- **Affected distros**: 2
- **Distros with fixed_in**: Oracle Linux, Ubuntu

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Oracle Linux | 8 | libgcrypt | 1.8.5-6.el8 | 1.8.5-7.el8_6 |
| Oracle Linux | 8 | libgcrypt-devel | 1.8.5-6.el8 | 1.8.5-7.el8_6 |
| Ubuntu | focal | libgcrypt20 | 1.8.5-5ubuntu1 | 1.8.5-5ubuntu1.1 |
| Ubuntu | focal | libgcrypt20-dev | 1.8.5-5ubuntu1 | 1.8.5-5ubuntu1.1 |
| Ubuntu | focal | libgcrypt20-doc | 1.8.5-5ubuntu1 | 1.8.5-5ubuntu1.1 |
