SecurityContext

CVE-2021-43398: Crypto++ - Timing Attack

  • Cve: CVE-2021-43398
  • Name: Crypto++ - Timing Attack
  • 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
  • Impact: Attackers may infer private key length through timing analysis, but the information leaked is of minimal value and intended as a tradeoff.
  • Remediation: Update to the latest version of Crypto++ that addresses this issue or consider implementing timing attack mitigations.
  • Vulnerability type: side_channel
  • Vulnerability impact: information_disclosure
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.3
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
  • Epss score: 0.0207
  • Epss percentile: 0.81923
  • Assignee: [email protected]
  • Published at: 2021-11-04T21:15:09Z
  • Age in days: 1846
  • Modified at: 2026-06-17T04:10:55Z
  • Public exploits total: 2
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-43398
  • Nvd status: modified
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-203Observable Discrepancy

Public exploits

UrlSourceAdded date
https://github.com/weidai11/cryptopp/issues/1080nvd2021-11-04
https://github.com/weidai11/cryptopp/issues/1080#issuecomment-996492222nvd2021-11-04

References

Same in every row:

  • Source: nvd
UrlTags
https://cryptopp.comVendor Advisory
https://github.com/weidai11/cryptopp/issues/1080Exploit, Third Party Advisory
https://github.com/weidai11/cryptopp/issues/1080#issuecomment-996492222Exploit, Issue Tracking, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
cryptopp:crypto++<= 8.6.0nonvd/v1/products/cryptopp/crypto++

Projects

RepositoryLink kindsIndexedUrl
weidai11/cryptoppissuesyes/v1/repositories/weidai11/cryptopp

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 2
  • Public exploit first date: 2021-11-04
  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts