Skip to content
Insights · weakness

CWE-642: External Control of Critical State Data

Sources read 2026-11-25. MITRE's own page · All weakness notes · Added to CISA's list in the last seven days

What it is

From MITRE's CWE catalogue

The product stores security-critical state information about its users, or the product itself, in a location that is accessible to unauthorized actors.

MITRE classes it as a class-level weakness and rates the likelihood of exploit as high.

What it lets an attacker do

From MITRE's CWE catalogue

  • Bypass Protection Mechanism, Gain Privileges or Assume Identity (affects: access control)
  • Read Application Data (affects: confidentiality)
  • DoS: Crash, Exit, or Restart (affects: availability)

On CISA's exploited list

From CISA's exploited list

1 of the 111 entries CISA added from 2026-08-28 to 2026-11-25 name CWE-642, against 0 of 78 in the 90 days before. Over the whole catalogue 1 entries name it. The counts are small, so read them as a rough order, not a rate.

CISA's list is not every flaw that is exploited: it holds the ones CISA has evidence of, listed on the day it added them.

How MITRE says to find it

From MITRE's CWE catalogue

  • Automated Static Analysis
  • Fuzzing
  • Manual Dynamic Analysis

What MITRE suggests

From MITRE's CWE catalogue

These are MITRE's suggestions, quoted as it gives them. They are not a complete fix and not a substitute for reading the vendor's advisory for the product you run.

  • Architecture and Design: Understand all the potential locations that are accessible to attackers. For example, some programmers assume that cookies and hidden form fields cannot be modified by an attacker, or they may not consider that environment variables can be modified before a privileged program is invoked.
  • Architecture and Design: Store state information and sensitive data on the server side only. Ensure that the system definitively and unambiguously keeps track of its own state and user state and has rules defined for legitimate state transitions.
  • Architecture and Design: Store state information on the server side only. Ensure that the system definitively and unambiguously keeps track of its own state and user state and has rules defined for legitimate state transitions.
  • Architecture and Design: Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid [REF-1482]. With a stateless protocol such as HTTP, use some frameworks can maintain the state for you.

Attack patterns MITRE links to it

From MITRE's CWE catalogue

Start with one piece of work.

Give us one piece of work and read access to one system. We map it and come back with what we found, what we would build and what it would take — before any commitment. You decide using our output, not our pitch.

Talk to us