Skip to main content

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

BaseIncompleteExploit Likelihood: High

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

View on MITRE
Back to CWE Lookup

Technical Details

Structure
Simple

Applicable To

Languages
Not Language-Specific
Platforms

Frequently Asked Questions

What is CWE-323: Reusing a Nonce, Key Pair in Encryption?+

CWE-323: Reusing a Nonce, Key Pair in Encryption is a Common Weakness Enumeration (CWE) entry maintained by MITRE. Nonces should be used for the present occasion and only once.

What are the security consequences of Reusing a Nonce, Key Pair in Encryption?+

If exploited, CWE-323 (Reusing a Nonce, Key Pair in Encryption) it can compromise Access Control, leading to outcomes such as Bypass Protection Mechanism and Gain Privileges or Assume Identity.

How do you prevent or mitigate Reusing a Nonce, Key Pair in Encryption?+

Recommended mitigations for CWE-323 include: Refuse to reuse nonce values. Use techniques such as requiring incrementing, time based and/or challenge response to assure uniqueness of nonces.

Which programming languages are affected by Reusing a Nonce, Key Pair in Encryption?+

CWE-323 commonly affects Not Language-Specific. Note that weaknesses are often language-agnostic patterns, so secure coding practices apply broadly.

What is the difference between a CWE and a CVE?+

A CWE (Common Weakness Enumeration) like CWE-323 describes a category of software weakness — the underlying flaw type. A CVE (Common Vulnerabilities and Exposures) identifies a specific, real-world vulnerability in a particular product. In short, a CWE is the kind of mistake, and a CVE is an instance of that mistake being found in software.

Learn More