{"schemaVersion":3,"id":"CVE-2021-40529","aliases":["ALPINE-CVE-2021-40529","MGASA-2021-0563","UBUNTU-CVE-2021-40529","DEBIAN-CVE-2021-40529","openSUSE-SU-2024:11661-1"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2021-09-06T18:45:08.000Z","modified":"2024-08-04T02:44:10.857Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.9,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":5.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":5.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":5.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":5.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":5.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":5.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":2.6,"severity":"low","vector":"AV:N/AC:H/Au:N/C:P/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01532,"percentile":0.74545,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.01532},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.01532,"percentile":0.74545}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01532,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.01532,"percentile":0.74545}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_EA81F0E90832F854","name":"Exploit Reference (ibm.github.io)","source":"reference","url":"https://ibm.github.io/system-security-research-updates/2021/09/06/insecurity-elgamal-pt2","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-327","name":"Use of a Broken or Risky Cryptographic Algorithm","description":"The product uses a broken or risky cryptographic algorithm or protocol.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/327.html"}],"affected":[{"vendor":"alpine","product":"botan","name":"botan","label":"botan","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/botan","purlType":"apk","versions":[{"text":"< 2.17.3-r3","noFixRecorded":false,"fixedIn":null},{"text":"< 2.18.1-r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.17.3-r3 | < 2.18.1-r3","eol":null,"hubHref":null},{"vendor":"botan_project","product":"botan","name":"botan","label":"botan","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 2.18.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 2.18.1","eol":null,"hubHref":"/vendor/botan_project/botan"},{"vendor":"debian","product":"botan","name":"botan","label":"botan","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/botan","purlType":"deb","versions":[{"text":"< 2.18.1+dfsg-3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.18.1+dfsg-3","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"botan","name":"botan","label":"botan","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/botan","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"botan1.10","name":"botan1.10","label":"botan1.10","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/botan1.10","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"34","noFixRecorded":false,"fixedIn":null},{"text":"35","noFixRecorded":false,"fixedIn":null}],"versionsText":"34 | 35","eol":{"isEol":true,"eolDate":"2022-06-07T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"34","label":"34","eolFrom":"2022-06-07T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"mageia","product":"botan2","name":"botan2","label":"botan2","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/botan2","purlType":"rpm","versions":[{"text":"< 2.17.3-2.1.mga8","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.17.3-2.1.mga8","eol":null,"hubHref":null},{"vendor":"mozilla","product":"thunderbird","name":"Thunderbird","label":"thunderbird","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 91.12.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 91.12.0","eol":null,"hubHref":"/vendor/mozilla/thunderbird"},{"vendor":"opensuse","product":"Botan&distro=openSUSE Tumbleweed","name":"Botan","label":"Botan&distro=openSUSE Tumbleweed","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/Botan&distro=openSUSE Tumbleweed","purlType":"rpm","versions":[{"text":"< 2.18.2-1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.18.2-1.1","eol":null,"hubHref":null}],"affectedCount":9,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://eprint.iacr.org/2021/923","label":"eprint.iacr.org/2021/923","hostname":"eprint.iacr.org","tags":["X Refsource MISC","REPORT","Technical Description","Third Party Advisory"]},{"url":"https://ibm.github.io/system-security-research-updates/2021/07/20/insecurity-elgamal-pt1","label":"ibm.github.io/system-security-research-updates/2021/07/20/insecurity-elgamal-pt1","hostname":"ibm.github.io","tags":["X Refsource MISC","REPORT","Third Party Advisory"]},{"url":"https://ibm.github.io/system-security-research-updates/2021/09/06/insecurity-elgamal-pt2","label":"ibm.github.io/system-security-research-updates/2021/09/06/insecurity-elgamal-pt2","hostname":"ibm.github.io","tags":["X Refsource MISC","REPORT","Exploit","Third Party Advisory"]},{"url":"https://github.com/randombit/botan/pull/2790","label":"github.com/randombit/botan/pull/2790","hostname":"github.com","tags":["X Refsource MISC","REPORT","Patch","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UPHGYWNJQKWLTUWBNSFB4F66MQDIL3IB/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/72NB4OLD3VHJC3YF3PEP2HKF6BYURPAO/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://security.gentoo.org/glsa/202208-14","label":"security.gentoo.org/glsa/202208-14","hostname":"security.gentoo.org","tags":["Vendor Advisory","X Refsource GENTOO","Third Party Advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2021-40529","label":"security.alpinelinux.org/vuln/CVE-2021-40529","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://advisories.mageia.org/MGASA-2021-0563.html","label":"advisories.mageia.org/MGASA-2021-0563.html","hostname":"advisories.mageia.org","tags":["Advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=29659","label":"bugs.mageia.org/show_bug.cgi?id=29659","hostname":"bugs.mageia.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/CVE-2021-40529","label":"ubuntu.com/security/CVE-2021-40529","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-40529","label":"www.cve.org/CVERecord?id=CVE-2021-40529","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-40529","label":"security-tracker.debian.org/tracker/CVE-2021-40529","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2021-40529","label":"www.suse.com/security/cve/CVE-2021-40529","hostname":"www.suse.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2021:1635-1","OPENSUSE-SU-2021:4150-1","OPENSUSE-SU-2024:11670-1","SUSE-SU-2021:4150-1"],"duplicates":[],"related":["OPENSUSE-SU-2021:1635-1","OPENSUSE-SU-2021:4150-1","OPENSUSE-SU-2024:11670-1","SUSE-SU-2021:4150-1"]},"timeline":[{"kind":"published","date":"2021-09-06T18:45:08.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T02:44:10.857Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":34,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T07:55:25.048Z","stale":false,"partial":false}}