
CVE catalog
CVE-2021-40529
botan: CVE-2021-40529
- Severity
- High · CVSS 7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 1.53% · Oct 27, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | botan | trixie | 2.19.5+dfsg-4 | fixed |
| Debian | botan | bookworm | 2.19.3+dfsg-1+deb12u1 | fixed |
| Alpine | botan | 3.14 | 2.17.3-r3 | fixed |
| Alpine | botan | 3.15 | 2.18.1-r3 | fixed |
| Alpine | botan | 3.16 | 2.18.1-r3 | fixed |
| Alpine | botan | 3.17 | 2.18.1-r3 | fixed |
| Alpine | botan | 3.18 | 2.18.1-r3 | fixed |
| Alpine | botan | 3.19 | 2.18.1-r3 | fixed |
| Alpine | botan | 3.20 | 2.18.1-r3 | fixed |
| Alpine | botan | 3.21 | 2.18.1-r3 | fixed |
| Ubuntu | botan1.10 | pro | 1.10.5-1 | vulnerable |
| Ubuntu | botan1.10 | pro | 1.10.5-1ubuntu1 | vulnerable |
| Ubuntu | botan1.10 | pro | 1.10.5-1+deb7u1ubuntu0.14.04.1 | vulnerable |
| Ubuntu | botan1.10 | pro | 1.10.5-1+deb7u1ubuntu0.14.04.1+esm1 | vulnerable |
| Ubuntu | botan1.10 | 16.04 | 1.10.10-6 | vulnerable |
| Ubuntu | botan1.10 | 16.04 | 1.10.12-1 | vulnerable |
| Ubuntu | botan | 18.04 | 2.4.0-3 | vulnerable |
| Ubuntu | botan | 18.04 | 2.4.0-4 | vulnerable |
| Ubuntu | botan | 18.04 | 2.4.0-5ubuntu1 | vulnerable |
| Ubuntu | botan1.10 | 18.04 | 1.10.16-1 | vulnerable |
| Ubuntu | botan1.10 | 18.04 | 1.10.17-0.1 | vulnerable |
| Ubuntu | botan | 20.04 | 2.9.0-2 | vulnerable |
| Ubuntu | botan | 20.04 | 2.9.0-2build1 | vulnerable |
| Ubuntu | botan | 20.04 | 2.12.1-2 | vulnerable |
| Ubuntu | botan | 20.04 | 2.12.1-2build1 | vulnerable |
| Ubuntu | botan | pro | 2.17.3+dfsg-3 | vulnerable |
| Ubuntu | botan | pro | 2.19.1+dfsg-2ubuntu1 | vulnerable |
| Ubuntu | botan | pro | 2.19.1+dfsg-2ubuntu1+esm1 | vulnerable |
| Opensuse | Botan | tumbleweed | 2.18.2-1.1 | fixed |
| Opensuse | MozillaThunderbird | tumbleweed | 91.4.0-1.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | botan | source | trixie | 2.18.1+dfsg-3 | not yet assigned | Not reported | [993840] |
| Debian | botan | source | bookworm | 2.18.1+dfsg-3 | not yet assigned | Not reported | [993840] |
| Alpine | botan | apk | 3.14 | 2.17.3-r3 | Not reported | ALPINE-CVE-2021-40529 | Not reported |
| Alpine | botan | apk | 3.15 | 2.18.1-r3 | Not reported | ALPINE-CVE-2021-40529 | Not reported |
| Alpine | botan | apk | 3.16 | 2.18.1-r3 | Not reported | ALPINE-CVE-2021-40529 | Not reported |
| Alpine | botan | apk | 3.17 | 2.18.1-r3 | Not reported | ALPINE-CVE-2021-40529 | Not reported |
| Alpine | botan | apk | 3.18 | 2.18.1-r3 | Not reported | ALPINE-CVE-2021-40529 | Not reported |
| Alpine | botan | apk | 3.19 | 2.18.1-r3 | Not reported | ALPINE-CVE-2021-40529 | Not reported |
| Alpine | botan | apk | 3.20 | 2.18.1-r3 | Not reported | ALPINE-CVE-2021-40529 | Not reported |
| Alpine | botan | apk | 3.21 | 2.18.1-r3 | Not reported | ALPINE-CVE-2021-40529 | Not reported |
| Opensuse | Botan | rpm | tumbleweed | 2.18.2-1.1 | Not reported | OPENSUSE-SU-2024:11661-1 | Not reported |
| Opensuse | MozillaThunderbird | rpm | tumbleweed | 91.4.0-1.1 | Not reported | OPENSUSE-SU-2024:11670-1 | Not reported |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
[Debian 12 (Bookworm)]
- [botan]Unknown
Details (2)
2.19.3+dfsg-1+deb12u1· amd64 · bookwormFixed · Fixed:
2.18.1+dfsg-3dsa · botan · debian · bookworm; dsa · botan · debian · 12
2.19.3+dfsg-1+deb12u1· arm64 · bookwormFixed · Fixed:
2.18.1+dfsg-3dsa · botan · debian · bookworm; dsa · botan · debian · 12
- [libbotan-2-19]Unknown
Source package: [botan]
Details (2)
2.19.3+dfsg-1+deb12u1· amd64 · bookwormFixed · Fixed:
2.18.1+dfsg-3dsa · botan · debian · bookworm; dsa · botan · debian · 12
2.19.3+dfsg-1+deb12u1· arm64 · bookwormFixed · Fixed:
2.18.1+dfsg-3dsa · botan · debian · bookworm; dsa · botan · debian · 12
- [libbotan-2-dev]Unknown
Source package: [botan]
Details (2)
2.19.3+dfsg-1+deb12u1· amd64 · bookwormFixed · Fixed:
2.18.1+dfsg-3dsa · botan · debian · bookworm; dsa · botan · debian · 12
2.19.3+dfsg-1+deb12u1· arm64 · bookwormFixed · Fixed:
2.18.1+dfsg-3dsa · botan · debian · bookworm; dsa · botan · debian · 12
- [libbotan-2-doc]Unknown
Source package: [botan]
Details (2)
2.19.3+dfsg-1+deb12u1· all · bookwormFixed · Fixed:
2.18.1+dfsg-3dsa · botan · debian · bookworm; dsa · botan · debian · 12
2.19.3+dfsg-1+deb12u1· all · bookwormFixed · Fixed:
2.18.1+dfsg-3dsa · botan · debian · bookworm; dsa · botan · debian · 12
- [python3-botan]Unknown
Source package: [botan]
Details (2)
2.19.3+dfsg-1+deb12u1· amd64 · bookwormFixed · Fixed:
2.18.1+dfsg-3dsa · botan · debian · bookworm; dsa · botan · debian · 12
2.19.3+dfsg-1+deb12u1· arm64 · bookwormFixed · Fixed:
2.18.1+dfsg-3dsa · botan · debian · bookworm; dsa · botan · debian · 12
[Debian 13 (Trixie)]
- [botan]Unknown
Source package: [botan3]
Details (4)
3.7.1+dfsg-2· amd64 · trixieFixed · Fixed:
2.18.1+dfsg-3dsa · botan · debian · 13
3.7.1+dfsg-2· arm64 · trixieFixed · Fixed:
2.18.1+dfsg-3dsa · botan · debian · 13
3.12.0+dfsg-2~deb13u1· amd64 · trixie-securityFixed · Fixed:
2.18.1+dfsg-3dsa · botan · debian · 13
3.12.0+dfsg-2~deb13u1· arm64 · trixie-securityFixed · Fixed:
2.18.1+dfsg-3dsa · botan · debian · 13
- [libbotan-2-19]Unknown
Source package: [botan]
Details (2)
2.19.5+dfsg-4· amd64 · trixieFixed · Fixed:
2.18.1+dfsg-3dsa · botan · debian · 13
2.19.5+dfsg-4· arm64 · trixieFixed · Fixed:
2.18.1+dfsg-3dsa · botan · debian · 13
- [libbotan-2-dev]Unknown
Source package: [botan]
Details (2)
2.19.5+dfsg-4· amd64 · trixieFixed · Fixed:
2.18.1+dfsg-3dsa · botan · debian · 13
2.19.5+dfsg-4· arm64 · trixieFixed · Fixed:
2.18.1+dfsg-3dsa · botan · debian · 13
- [libbotan-2-doc]Unknown
Source package: [botan]
Details (2)
2.19.5+dfsg-4· all · trixieFixed · Fixed:
2.18.1+dfsg-3dsa · botan · debian · 13
2.19.5+dfsg-4· all · trixieFixed · Fixed:
2.18.1+dfsg-3dsa · botan · debian · 13
[openSUSE Tumbleweed]
- [Botan]Unknown
Source package: [Botan]
Details (1)
3.11.1-1.4· x86_64 · tumbleweedFixed · Fixed:
2.18.2-1.1dsa · Botan · opensuse · tumbleweed
- [Botan-doc]Unknown
Source package: [Botan]
Details (1)
3.11.1-1.4· noarch · tumbleweedUnknown · Fixed:
2.18.2-1.1Version impact unknown
dsa · Botan · opensuse · tumbleweed
- [libbotan-3-11]Unknown
Source package: [Botan]
Details (1)
3.11.1-1.4· x86_64 · tumbleweedUnknown · Fixed:
2.18.2-1.1Version impact unknown
dsa · Botan · opensuse · tumbleweed
- [libbotan-devel]Unknown
Source package: [Botan]
Details (1)
3.11.1-1.4· x86_64 · tumbleweedUnknown · Fixed:
2.18.2-1.1Version impact unknown
dsa · Botan · opensuse · tumbleweed
- [MozillaThunderbird]Unknown
Source package: [MozillaThunderbird]
Details (1)
140.14.0-1.1· x86_64 · tumbleweedFixed · Fixed:
91.4.0-1.1dsa · MozillaThunderbird · opensuse · tumbleweed
- [MozillaThunderbird-openpgp-librnp]Unknown
Source package: [MozillaThunderbird]
Details (1)
140.14.0-1.1· x86_64 · tumbleweedUnknown · Fixed:
91.4.0-1.1Version impact unknown
dsa · MozillaThunderbird · opensuse · tumbleweed
Source package: [MozillaThunderbird]
Details (1)
140.14.0-1.1· x86_64 · tumbleweedUnknown · Fixed:
91.4.0-1.1Version impact unknown
dsa · MozillaThunderbird · opensuse · tumbleweed
Source package: [MozillaThunderbird]
Details (1)
140.14.0-1.1· x86_64 · tumbleweedUnknown · Fixed:
91.4.0-1.1Version impact unknown
dsa · MozillaThunderbird · opensuse · tumbleweed
- [python3-botan]Unknown
Source package: [Botan]
Details (1)
3.11.1-1.4· x86_64 · tumbleweedUnknown · Fixed:
2.18.2-1.1Version impact unknown
dsa · Botan · opensuse · tumbleweed
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2021_4150-1.json]
- [https://osv.dev/vulnerability/ALPINE-CVE-2021-40529]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2021-40529]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2021-40529]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:11661-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:11670-1]
- [https://security-tracker.debian.org/tracker/CVE-2021-40529]
- [https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-40529.json]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]