Skip to content

CWE-323: Reusing a Nonce, Key Pair in Encryption

BaseLikelihood of exploit: High

Nonces should be used for the present occasion and only once.

Consequences

  • Access Control: Bypass Protection Mechanism, Gain Privileges or Assume Identity

How to prevent it

  • Implementation: Refuse to reuse nonce values.
  • Implementation: Use techniques such as requiring incrementing, time based and/or challenge response to assure uniqueness of nonces.

Recent advisories

All advisories for CWE-323

Is this in your code?

MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.

Check your repos with MergeHarbor