cve.bz

CVE-2021-40529

5.9 mediumExploit referenceEPSS 1.5%Fix available

Medium (5.9). EPSS 1.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

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
EPSS
1.5% (unchanged from 1.5% a week ago; 1.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 75th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-327 Use of a Broken or Risky Cryptographic Algorithm
OWASP Top 10
A04:2025 Cryptographic Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-40529 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-40529?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-40529?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-40529 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
botan_project:botanthrough 2.18.1
fedoraproject:fedora34
fedoraproject:fedora35
mozilla:thunderbirdbefore 91.12.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13botan2.18.1+dfsg-3DEBIAN-CVE-2021-40529
Ubuntu16.04:LTS, Pro:14.04:LTSbotan1.10no fix listedUBUNTU-CVE-2021-40529
Ubuntu18.04:LTSbotan, botan1.10no fix listedUBUNTU-CVE-2021-40529
Ubuntu20.04:LTS, Pro:22.04:LTSbotanno fix listedUBUNTU-CVE-2021-40529
SUSELinux Enterprise Workstation Extension 15 SP2, Linux Enterprise Workstation Extension 15 SP3MozillaThunderbird91.4.0-8.45.2SUSE-SU-2021:4150-1
openSUSELeap 15.2MozillaThunderbird91.4.0-lp152.2.52.1openSUSE-SU-2021:1635-1
openSUSELeap 15.3MozillaThunderbird91.4.0-8.45.2openSUSE-SU-2021:4150-1
openSUSETumbleweedBotan2.18.2-1.1openSUSE-SU-2024:11661-1
openSUSETumbleweedMozillaThunderbird91.4.0-1.1openSUSE-SU-2024:11670-1
Alpinev3.14botan2.17.3-r3ALPINE-CVE-2021-40529
Alpinev3.15, v3.16, v3.17 and 4 morebotan2.18.1-r3ALPINE-CVE-2021-40529

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Attack patterns (CAPEC)

  • CAPEC-20 Encryption Brute Forcing Likelihood: Low · Severity: Low
  • CAPEC-97 Cryptanalysis Likelihood: Low · Severity: Very High
  • CAPEC-459 Creating a Rogue Certification Authority Certificate Likelihood: Medium · Severity: Very High
  • CAPEC-473 Signature Spoof
  • CAPEC-475 Signature Spoofing by Improper Validation Likelihood: Low · Severity: High
  • CAPEC-608 Cryptanalysis of Cellular Encryption Severity: High
  • CAPEC-614 Rooting SIM Cards Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON