CVE-2021-40530

Source
https://cve.org/CVERecord?id=CVE-2021-40530
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-40530.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-40530
Downstream
Related
Published
2021-09-06T19:15:07.673Z
Modified
2026-07-08T06:03:34.525256509Z
Severity
  • 5.9 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
[none]
Details

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.

Database specific
{
    "unresolved_ranges": [
        {
            "extracted_events": [
                {
                    "introduced": "33"
                },
                {
                    "last_affected": "33"
                },
                {
                    "introduced": "34"
                },
                {
                    "last_affected": "34"
                },
                {
                    "introduced": "35"
                },
                {
                    "last_affected": "35"
                }
            ],
            "source": "CPE_STRING",
            "vendor_product": "fedoraproject:fedora",
            "cpes": [
                "cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*",
                "cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*",
                "cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*"
            ]
        }
    ]
}
References

Affected packages

Git / github.com/weidai11/cryptopp

Affected ranges

Type
GIT
Repo
https://github.com/weidai11/cryptopp
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Database specific
{
    "source": "CPE_RANGE",
    "cpe": "cpe:2.3:a:cryptopp:crypto\\+\\+:*:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "8.5"
        }
    ]
}

Affected versions

Other
CRYPTOPP_5_0
CRYPTOPP_5_1
CRYPTOPP_5_2
CRYPTOPP_5_2_1
CRYPTOPP_5_2_3
CRYPTOPP_5_3_0
CRYPTOPP_5_4
CRYPTOPP_5_5
CRYPTOPP_5_5_1
CRYPTOPP_5_5_2
CRYPTOPP_5_6_0
CRYPTOPP_5_6_1
CRYPTOPP_5_6_2
CRYPTOPP_5_6_3
CRYPTOPP_5_6_4
CRYPTOPP_5_6_5
CRYPTOPP_6_0_0
CRYPTOPP_7_0_0
CRYPTOPP_8_0_0
CRYPTOPP_8_1_0
CRYPTOPP_8_2_0
CRYPTOPP_8_3_0
CRYPTOPP_8_4_0
CRYPTOPP_8_5_0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-40530.json"