{"api_version":"1","generated_at":"2026-04-23T00:59:41+00:00","cve":"CVE-2021-40529","urls":{"html":"https://cve.report/CVE-2021-40529","api":"https://cve.report/api/cve/CVE-2021-40529.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-40529","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-40529"},"summary":{"title":"CVE-2021-40529","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.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2021-09-06 19:15:00","updated_at":"2023-11-07 03:38:00"},"problem_types":["CWE-327"],"metrics":[],"references":[{"url":"https://eprint.iacr.org/2021/923","name":"https://eprint.iacr.org/2021/923","refsource":"MISC","tags":[],"title":"Cryptology ePrint Archive: Report 2021/923 - On the (in)security of ElGamal in OpenPGP","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/randombit/botan/pull/2790","name":"https://github.com/randombit/botan/pull/2790","refsource":"MISC","tags":[],"title":"Avoid using short exponents with ElGamal by randombit · Pull Request #2790 · randombit/botan · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://ibm.github.io/system-security-research-updates/2021/09/06/insecurity-elgamal-pt2","name":"https://ibm.github.io/system-security-research-updates/2021/09/06/insecurity-elgamal-pt2","refsource":"MISC","tags":[],"title":"On the (in)security of ElGamal in OpenPGP - Part II\n        \n        -\n      \n      \n      Syssec@IBM Research","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://security.gentoo.org/glsa/202208-14","name":"GLSA-202208-14","refsource":"GENTOO","tags":[],"title":"Mozilla Thunderbird: Multiple Vulnerabilities (GLSA 202208-14) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/72NB4OLD3VHJC3YF3PEP2HKF6BYURPAO/","name":"FEDORA-2021-8d51cac49f","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 34 Update: botan2-2.17.3-4.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://ibm.github.io/system-security-research-updates/2021/07/20/insecurity-elgamal-pt1","name":"https://ibm.github.io/system-security-research-updates/2021/07/20/insecurity-elgamal-pt1","refsource":"MISC","tags":[],"title":"On the (in)security of ElGamal in OpenPGP - Part I\n        \n        -\n      \n      \n      Syssec@IBM Research","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UPHGYWNJQKWLTUWBNSFB4F66MQDIL3IB/","name":"FEDORA-2021-14b0d97496","refsource":"","tags":[],"title":"[SECURITY] Fedora 35 Update: botan2-2.18.2-1.fc35 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/72NB4OLD3VHJC3YF3PEP2HKF6BYURPAO/","name":"FEDORA-2021-8d51cac49f","refsource":"","tags":[],"title":"[SECURITY] Fedora 34 Update: botan2-2.17.3-4.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UPHGYWNJQKWLTUWBNSFB4F66MQDIL3IB/","name":"FEDORA-2021-14b0d97496","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 35 Update: botan2-2.18.2-1.fc35 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-40529","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-40529","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"40529","vulnerable":"1","versionEndIncluding":"2.18.1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"botan_project","cpe5":"botan","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"40529","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"34","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"40529","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"35","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"40529","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"mozilla","cpe5":"thunderbird","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-40529","qid":"181906","title":"Debian Security Update for botan (CVE-2021-40529)"},{"cve":"CVE-2021-40529","qid":"282059","title":"Fedora Security Update for botan2 (FEDORA-2021-8d51cac49f)"},{"cve":"CVE-2021-40529","qid":"501731","title":"Alpine Linux Security Update for botan"},{"cve":"CVE-2021-40529","qid":"501949","title":"Alpine Linux Security Update for botan"},{"cve":"CVE-2021-40529","qid":"503874","title":"Alpine Linux Security Update for botan"},{"cve":"CVE-2021-40529","qid":"710585","title":"Gentoo Linux Mozilla Thunderbird Multiple Vulnerabilities (GLSA 202208-14)"},{"cve":"CVE-2021-40529","qid":"751542","title":"OpenSUSE Security Update for MozillaThunderbird (openSUSE-SU-2021:4150-1)"},{"cve":"CVE-2021-40529","qid":"751566","title":"OpenSUSE Security Update for MozillaThunderbird (openSUSE-SU-2021:1635-1)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2021-40529","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"url":"https://eprint.iacr.org/2021/923","refsource":"MISC","name":"https://eprint.iacr.org/2021/923"},{"url":"https://ibm.github.io/system-security-research-updates/2021/07/20/insecurity-elgamal-pt1","refsource":"MISC","name":"https://ibm.github.io/system-security-research-updates/2021/07/20/insecurity-elgamal-pt1"},{"url":"https://ibm.github.io/system-security-research-updates/2021/09/06/insecurity-elgamal-pt2","refsource":"MISC","name":"https://ibm.github.io/system-security-research-updates/2021/09/06/insecurity-elgamal-pt2"},{"url":"https://github.com/randombit/botan/pull/2790","refsource":"MISC","name":"https://github.com/randombit/botan/pull/2790"},{"refsource":"FEDORA","name":"FEDORA-2021-14b0d97496","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UPHGYWNJQKWLTUWBNSFB4F66MQDIL3IB/"},{"refsource":"FEDORA","name":"FEDORA-2021-8d51cac49f","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/72NB4OLD3VHJC3YF3PEP2HKF6BYURPAO/"},{"refsource":"GENTOO","name":"GLSA-202208-14","url":"https://security.gentoo.org/glsa/202208-14"}]}},"nvd":{"publishedDate":"2021-09-06 19:15:00","lastModifiedDate":"2023-11-07 03:38:00","problem_types":["CWE-327"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":5.9,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.2,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:H/Au:N/C:P/I:N/A:N","accessVector":"NETWORK","accessComplexity":"HIGH","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":2.6},"severity":"LOW","exploitabilityScore":4.9,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:botan_project:botan:*:*:*:*:*:*:*:*","versionEndIncluding":"2.18.1","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:mozilla:thunderbird:*:*:*:*:*:*:*:*","versionEndExcluding":"91.12.0","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"40529","Ordinal":"216278","Title":"CVE-2021-40529","CVE":"CVE-2021-40529","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"40529","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"40529","Ordinal":"2","NoteData":"2021-09-06","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"40529","Ordinal":"3","NoteData":"2021-11-16","Type":"Other","Title":"Modified"}]}}}