CWE-335: CWE-335: Incorrect Usage of Seeds in Pseudo-Random Number Generator (PRNG)

BaseStable

Description

View on MITRE
Back to CWE Lookup

Extended Description

Extended Description

Technical Details

Structure
Simple
Vulnerability Mapping
ALLOWED

Applicable To

Languages
Languages
Platforms
Languages

Frequently Asked Questions

What is CWE-335: CWE-335: Incorrect Usage of Seeds in Pseudo-Random Number Generator (PRNG)?+

CWE-335: CWE-335: Incorrect Usage of Seeds in Pseudo-Random Number Generator (PRNG) is a Common Weakness Enumeration (CWE) entry maintained by MITRE. Description Extended Description

What are the security consequences of CWE-335: Incorrect Usage of Seeds in Pseudo-Random Number Generator (PRNG)?+

If exploited, CWE-335 (CWE-335: Incorrect Usage of Seeds in Pseudo-Random Number Generator (PRNG)) it can compromise Bypass Protection Mechanism and Other, leading to outcomes such as Scope: Access Control, Other If a PRNG is used incorrectly, such as using the same seed for each initialization or using a predictable seed and then an attacker may be able to easily guess the seed and thus the random numbers. This could lead to unauthorized access to a system if the seed is used for authentication and authorization..

Which programming languages are affected by CWE-335: Incorrect Usage of Seeds in Pseudo-Random Number Generator (PRNG)?+

CWE-335 commonly affects Languages. 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-335 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