# CVE-2021-43398: Crypto++ (aka Cryptopp) 8.6.0 and earlier contains a timing leakage in MakePublicKey().

- Severity: Medium 5.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.07%, higher than 81% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2021-11-04T20:06:38.000Z
- Modified: 2026-06-17T04:10:55.000Z
- Weaknesses: CWE-203
- Assigned by: mitre

## Description

Crypto++ (aka Cryptopp) 8.6.0 and earlier contains a timing leakage in MakePublicKey(). There is a clear correlation between execution time and private key length, which may cause disclosure of the length information of the private key. This might allow attackers to conduct timing attacks. NOTE: this report is disputed by the vendor and multiple third parties. The execution-time differences are intentional. A user may make a choice of a longer key as a tradeoff between strength and performance. In making this choice, the amount of information leaked to an adversary is of infinitesimal value

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- cryptopp crypto++: up to 8.6.0

## Every score

- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://github.com/weidai11/cryptopp/issues/1080> (exploit, third-party-advisory)
- <https://github.com/weidai11/cryptopp/issues/1080#issuecomment-996492222> (exploit, issue-tracking, third-party-advisory)
- <https://cryptopp.com> (vendor-advisory)

## Sources

- CVE List: [CVE-2021-43398](https://www.cve.org/CVERecord?id=CVE-2021-43398), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-43398](https://nvd.nist.gov/vuln/detail/CVE-2021-43398), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-43398 · Whole record: https://cve.day/CVE-2021-43398.json · Rebuilt by cve.day 2026-11-25T22:24:35.927Z
