{"api_version":"1","generated_at":"2026-04-22T23:09:32+00:00","cve":"CVE-2021-40530","urls":{"html":"https://cve.report/CVE-2021-40530","api":"https://cve.report/api/cve/CVE-2021-40530.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-40530","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-40530"},"summary":{"title":"CVE-2021-40530","description":"The ElGamal implementation in Crypto++ through 8.5 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://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HGVBZ2TTRKCTYAZTRHTF6OBD4W37F5MT/","name":"FEDORA-2021-8b14da0538","refsource":"","tags":[],"title":"[SECURITY] Fedora 35 Update: cryptopp-8.6.0-1.fc35 - 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/HGVBZ2TTRKCTYAZTRHTF6OBD4W37F5MT/","name":"FEDORA-2021-8b14da0538","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 35 Update: cryptopp-8.6.0-1.fc35 - package-announce - Fedora Mailing-Lists","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://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/57OJA2K5AHX5HAU2QBDRWLGIIUX7GASC/","name":"FEDORA-2021-a381a721a9","refsource":"","tags":[],"title":"[SECURITY] Fedora 33 Update: cryptopp-8.6.0-1.fc33 - 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/57OJA2K5AHX5HAU2QBDRWLGIIUX7GASC/","name":"FEDORA-2021-a381a721a9","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 33 Update: cryptopp-8.6.0-1.fc33 - 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/VJYOZGWI7TD27SEXILSM6VUTPPEICDL7/","name":"FEDORA-2021-6788250ea4","refsource":"","tags":[],"title":"[SECURITY] Fedora 34 Update: cryptopp-8.6.0-1.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/VJYOZGWI7TD27SEXILSM6VUTPPEICDL7/","name":"FEDORA-2021-6788250ea4","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 34 Update: cryptopp-8.6.0-1.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-40530","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-40530","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"40530","vulnerable":"1","versionEndIncluding":"8.5","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"cryptopp","cpe5":"crypto\\+\\+","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"40530","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"33","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"40530","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":"40530","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"35","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-40530","qid":"181971","title":"Debian Security Update for libcrypto++ (CVE-2021-40530)"},{"cve":"CVE-2021-40530","qid":"281960","title":"Fedora Security Update for cryptopp (FEDORA-2021-a381a721a9)"},{"cve":"CVE-2021-40530","qid":"281961","title":"Fedora Security Update for cryptopp (FEDORA-2021-6788250ea4)"},{"cve":"CVE-2021-40530","qid":"690802","title":"Free Berkeley Software Distribution (FreeBSD) Security Update for cryptopp (7695b0af-958f-11ec-9aa3-4ccc6adda413)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2021-40530","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 Crypto++ through 8.5 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"},{"refsource":"FEDORA","name":"FEDORA-2021-8b14da0538","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HGVBZ2TTRKCTYAZTRHTF6OBD4W37F5MT/"},{"refsource":"FEDORA","name":"FEDORA-2021-a381a721a9","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/57OJA2K5AHX5HAU2QBDRWLGIIUX7GASC/"},{"refsource":"FEDORA","name":"FEDORA-2021-6788250ea4","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VJYOZGWI7TD27SEXILSM6VUTPPEICDL7/"}]}},"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:cryptopp:crypto\\+\\+:*:*:*:*:*:*:*:*","versionEndIncluding":"8.5","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"40530","Ordinal":"216279","Title":"CVE-2021-40530","CVE":"CVE-2021-40530","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"40530","Ordinal":"1","NoteData":"The ElGamal implementation in Crypto++ through 8.5 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":"40530","Ordinal":"2","NoteData":"2021-09-06","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"40530","Ordinal":"3","NoteData":"2021-10-05","Type":"Other","Title":"Modified"}]}}}