Predictable Exact Value from Previous Values is a weakness where a system reveals enough output history for an attacker to calculate the next exact value. This often affects random numbers, counters or cryptographic material. Defenders should prevent output exposure, use secure generators, and rotate secrets if predictability is suspected.
How this weakness works
Predictable Exact Value from Previous Values is a state-loss problem in which an output sequence exposes enough structure for the next value to be derived exactly. The weakness is especially serious when the sequence is intended to protect randomness, uniqueness, session state, or cryptographic material.
The core issue is not that a value is merely guessable in a rough sense, but that prior observations make the next value mathematically recoverable. That can happen when generators repeat state, leak counters, reuse seeds, or expose intermediate values that should have stayed internal.
Why exact predictability is dangerous
When an attacker can compute the next value, they can often anticipate identifiers, tokens, nonces, IVs, or other values that are supposed to be one-time or hard to infer. That can undermine confidentiality, integrity, and in some designs the safety of downstream cryptographic operations.
The danger is amplified when the predictable value is used as part of an access decision or trust boundary. A sequence that looks innocuous in logs or responses may still be enough to reconstruct the next value if the underlying generator is weak or the output is exposed too openly.
OWASP’s CWE Top 25 Guide is a useful reference point because this weakness sits within a broader family of dangerous software weaknesses, including predictable number generation and sensitive-output disclosure.
Where it appears in systems
This weakness commonly shows up in random number generators, counters, session identifiers, temporary filenames, password reset material, and cryptographic workflows that assume unpredictability. It can also appear when a system tries to “randomize” values with weak seeds, repeated state, or deterministic transformations.
The practical warning sign is that an output sequence is both observable and stable enough that future values can be inferred from earlier ones. Even when the values are not obviously secret, predictability can still create a control failure if the values are used for authorization, request correlation, or secret material generation.
For cryptographic material specifically, predictability is often a sign that the entropy source, state handling, or derivation logic needs review. If the weakness affects keys or other secret-bearing material, the impact is broader than one bad value, because the same flaw may expose an entire sequence.
How defenders reduce exposure
Defenders should prevent unnecessary exposure of generated values, use approved cryptographic generators, and avoid designs that make the next value derivable from past outputs. Where a system must emit sequence-like values, the implementation should ensure that external observers cannot reconstruct the internal state.
If predictability is suspected, treat the sequence as compromised until proven otherwise. That usually means rotating affected secrets, replacing the generator or derivation path, and checking whether any dependent sessions, tokens, or keys were created under the weak sequence.
For key and secret lifecycle concerns, NIST SP 800-57 Key Management provides the right lifecycle lens, while NIST SP 800-53 Rev 5 Security and Privacy Controls supports control selection around entropy, access control, auditability, and cryptographic hygiene.
Risk and Threat Considerations
When exact future values can be calculated from past ones, attackers gain a low-noise way to predict secrets, impersonate requests, or bypass controls that depend on freshness or uniqueness. The risk is highest when the value is reused in a security-sensitive workflow, because one weak sequence can compromise multiple sessions, tokens, or cryptographic operations.
Failure mechanism: The generator or derivation process leaks enough state through observable output that the next value can be reconstructed exactly, often because seeds, counters, or intermediate values are reused or exposed.
Impact: Predictable values can enable token forgery, session prediction, secret compromise, or cryptographic weakening, and may force rotation of affected credentials or keys after discovery.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP ASVS, NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP ASVS | V11 — Cryptography | Predictability breaks cryptographic assumptions for nonces, IVs and secret generation. |
| Recommendation — Use V11 to require unpredictable cryptographic material and reject deterministic value generation. | ||
| NIST SP 800-53 Rev 5 | IA-5 — Authenticator Management | This weakness can compromise tokens, passwords and other authenticator material. |
| SC-12 — Cryptographic Key Establishment and Management | Exact-value predictability can undermine cryptographic material generation and handling. | |
| SI-7 — Software, Firmware, and Information Integrity | Predictable outputs can indicate integrity failure in generators and security-critical logic. | |
| Recommendation — Apply IA-5 to manage authenticator lifecycle and rotate any exposed secret material. Use SC-12 to protect key establishment from weak or predictable value sources. Use SI-7 to detect and remediate integrity failures in security-sensitive output generation. | ||
| CIS Controls v8 | CIS-3 — Data Protection | Predictable security values can expose sensitive material used to protect data and sessions. |
| Recommendation — Use CIS-3 to protect generated secrets, tokens and related sensitive outputs. | ||
Practitioner Guidance
What to watch for: Review any component that emits sequential identifiers, nonces, IVs, passwords, or reset tokens, especially when the output is visible to users, logs, or downstream systems. If the output pattern is deterministic enough that an observer can infer the next value, treat the implementation as unsafe even if it appears to “work.”
Governance implication: Ownership should sit with the team that designs or operates the generator, not only with the team that consumes the value. The control decision is whether the value is truly unpredictable from outside the system, and whether compromised output requires formal secret rotation and incident review.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on October 17, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org