{"api_version":"1","generated_at":"2026-04-22T19:36:32+00:00","cve":"CVE-2021-40528","urls":{"html":"https://cve.report/CVE-2021-40528","api":"https://cve.report/api/cve/CVE-2021-40528.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-40528","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-40528"},"summary":{"title":"CVE-2021-40528","description":"The ElGamal implementation in Libgcrypt before 1.9.4 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://security.gentoo.org/glsa/202210-13","name":"GLSA-202210-13","refsource":"GENTOO","tags":[],"title":"libgcrypt: Multiple Vulnerabilities (GLSA 202210-13) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git%3Ba=commit%3Bh=3462280f2e23e16adf3ed5176e0f2413d8861320","name":"https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git%3Ba=commit%3Bh=3462280f2e23e16adf3ed5176e0f2413d8861320","refsource":"","tags":[],"title":"git.gnupg.org Git - libgcrypt.git/commit","mime":"text/xml","httpstatus":"404","archivestatus":"200"},{"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://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://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git;a=commit;h=3462280f2e23e16adf3ed5176e0f2413d8861320","name":"https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git;a=commit;h=3462280f2e23e16adf3ed5176e0f2413d8861320","refsource":"MISC","tags":[],"title":"git.gnupg.org Git - libgcrypt.git/commit","mime":"text/xml","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-40528","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-40528","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"40528","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"gnupg","cpe5":"libgcrypt","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-40528","qid":"159956","title":"Oracle Enterprise Linux Security Update for libgcrypt (ELSA-2022-5311)"},{"cve":"CVE-2021-40528","qid":"159970","title":"Oracle Enterprise Linux Security Update for libgcrypt (ELSA-2022-9564)"},{"cve":"CVE-2021-40528","qid":"180558","title":"Debian Security Update for libgcrypt20 (CVE-2021-40528)"},{"cve":"CVE-2021-40528","qid":"198503","title":"Ubuntu Security Notification for Libgcrypt Vulnerabilities (USN-5080-1)"},{"cve":"CVE-2021-40528","qid":"240533","title":"Red Hat Update for libgcrypt (RHSA-2022:5311)"},{"cve":"CVE-2021-40528","qid":"296065","title":"Oracle Solaris 11.4 Support Repository Update (SRU) 39.107.1 Missing (CPUOCT2021)"},{"cve":"CVE-2021-40528","qid":"377331","title":"Alibaba Cloud Linux Security Update for libgcrypt (ALINUX3-SA-2022:0129)"},{"cve":"CVE-2021-40528","qid":"500296","title":"Alpine Linux Security Update for libgcrypt"},{"cve":"CVE-2021-40528","qid":"671173","title":"EulerOS Security Update for libgcrypt (EulerOS-SA-2021-2914)"},{"cve":"CVE-2021-40528","qid":"671179","title":"EulerOS Security Update for libgcrypt (EulerOS-SA-2021-2922)"},{"cve":"CVE-2021-40528","qid":"671236","title":"EulerOS Security Update for libgcrypt (EulerOS-SA-2022-1173)"},{"cve":"CVE-2021-40528","qid":"671279","title":"EulerOS Security Update for libgcrypt (EulerOS-SA-2022-1228)"},{"cve":"CVE-2021-40528","qid":"671326","title":"EulerOS Security Update for libgcrypt (EulerOS-SA-2022-1209)"},{"cve":"CVE-2021-40528","qid":"710653","title":"Gentoo Linux libgcrypt Multiple Vulnerabilities (GLSA 202210-13)"},{"cve":"CVE-2021-40528","qid":"900444","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for libgcrypt (5450)"},{"cve":"CVE-2021-40528","qid":"940597","title":"AlmaLinux Security Update for libgcrypt (ALSA-2022:5311)"},{"cve":"CVE-2021-40528","qid":"960401","title":"Rocky Linux Security Update for libgcrypt (RLSA-2022:5311)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2021-40528","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 Libgcrypt before 1.9.4 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":"MISC","name":"https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git;a=commit;h=3462280f2e23e16adf3ed5176e0f2413d8861320","url":"https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git;a=commit;h=3462280f2e23e16adf3ed5176e0f2413d8861320"},{"refsource":"GENTOO","name":"GLSA-202210-13","url":"https://security.gentoo.org/glsa/202210-13"}]}},"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:gnupg:libgcrypt:*:*:*:*:*:*:*:*","versionEndExcluding":"1.9.4","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"40528","Ordinal":"216277","Title":"CVE-2021-40528","CVE":"CVE-2021-40528","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"40528","Ordinal":"1","NoteData":"The ElGamal implementation in Libgcrypt before 1.9.4 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":"40528","Ordinal":"2","NoteData":"2021-09-06","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"40528","Ordinal":"3","NoteData":"2021-11-17","Type":"Other","Title":"Modified"}]}}}