CVE-2021-40529 json
The ElGamal implementation in Botan through 2.18.1, as used in Thunderbird and other products, allows plaintext recovery because, during in…
published 2021-09-06 5 y ago modified 2026-06-17 4 mo ago also EUVD-2021-27704
- cvss
- 5.9
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.5%
- EPSS 1.5% chance of exploitation in 30 days, percentile 74%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- mozilla thunderbird 91.12.0
- botan Debian 13, Debian 12 2.18.1+dfsg-3
debian advisories DEBIAN-CVE-2021-40529
- MozillaThunderbird SLE Workstation Extension 15 SP3, SLE Workstation Extension 15 SP2 91.4.0-8.45.2
suse advisories SUSE-SU-2021:4150-1
- Botan openSUSE Tumbleweed 2.18.2-1.1
- MozillaThunderbird openSUSE Tumbleweed 91.4.0-1.1
- MozillaThunderbird openSUSE Leap 15.2 91.4.0-lp152.2.52.1
- MozillaThunderbird openSUSE Leap 15.3 91.4.0-8.45.2
opensuse advisories openSUSE-SU-2024:11661-1openSUSE-SU-2024:11670-1openSUSE-SU-2021:1635-1openSUSE-SU-2021:4150-1
- botan Alpine 3.14 2.17.3-r3
- botan Alpine 3.21, Alpine 3.20, Alpine 3.19 +4 more 2.18.1-r3
alpine advisories ALPINE-CVE-2021-40529
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- botan Arch Linux 2.18.2-1
arch linux advisories AVG-2362
- github.com/randombit/botan#2790 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-40529 updated cvss 7.5
botan: ElGamal implementation allows plaintext recovery
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.53% chance of exploitation in the next 30 days, higher than 74% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- ibm.github.io https://ibm.github.io/system-security-research-updates/2021/09/06/insecurity-elgamal-pt2 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 2.0 | 2.6 | AV:N/AC:H/Au:N/C:P/I:N/A:N |
Classification
- Weakness
-
- CWE-327 Use of a Broken or Risky Cryptographic Algorithm
References
-
github.com
/randombit/botan/pull/2790
patch, third-party-advisory
-
ibm.github.io
/system-security-research-updates/2021/09/06/insecurity-elgamal-pt2
exploit, third-party-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/UPHGYWNJQKWLTUWBNSFB4F66MQDIL3IB/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/72NB4OLD3VHJC3YF3PEP2HKF6BYURPAO/
vendor-advisory
-
security.gentoo.org
/glsa/202208-14
vendor-advisory, third-party-advisory
-
eprint.iacr.org
/2021/923
technical-description, third-party-advisory
-
ibm.github.io
/system-security-research-updates/2021/07/20/insecurity-elgamal-pt1
third-party-advisory
Sources
- CVE List CVE-2021-40529
- NVD CVE-2021-40529
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.