# CVE-2021-40529: The ElGamal implementation in Botan through 2.18.1, as used in Thunderbird and other products, allows plaintext recovery because, during in…

- Severity: Medium 5.9 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.53%, higher than 75% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-09-06T18:45:08.000Z
- Modified: 2026-06-17T04:07:05.827Z
- Weaknesses: CWE-327
- Assigned by: mitre

## Description

The ElGamal implementation in Botan through 2.18.1, as used in Thunderbird and other products, 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- botan_project botan: up to 2.18.1
- fedoraproject fedora: 34; 35
- mozilla thunderbird: before 91.12.0

## Every score

- NVD: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 2.6 Low `AV:N/AC:H/Au:N/C:P/I:N/A:N`

## References

- <https://ibm.github.io/system-security-research-updates/2021/09/06/insecurity-elgamal-pt2> (exploit, third-party-advisory)
- <https://eprint.iacr.org/2021/923> (technical-description, third-party-advisory)
- <https://ibm.github.io/system-security-research-updates/2021/07/20/insecurity-elgamal-pt1> (third-party-advisory)
- <https://github.com/randombit/botan/pull/2790> (patch, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UPHGYWNJQKWLTUWBNSFB4F66MQDIL3IB/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/72NB4OLD3VHJC3YF3PEP2HKF6BYURPAO/> (vendor-advisory)
- <https://security.gentoo.org/glsa/202208-14> (third-party-advisory, vendor-advisory)

## Sources

- CVE List: [CVE-2021-40529](https://www.cve.org/CVERecord?id=CVE-2021-40529), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-40529](https://nvd.nist.gov/vuln/detail/CVE-2021-40529), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-40529 · Whole record: https://cve.day/CVE-2021-40529.json · Rebuilt by cve.day 2026-11-25T22:58:03.660Z
