Cyber Posture

CWE · MITRE source

CWE-642External Control of Critical State Data

Abstraction: Class · CVEs in our corpus: 16

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

If an attacker can modify the state information without detection, then it could be used to perform unauthorized actions or access unexpected resources, since the application programmer does not expect that the state can be changed. State information can be stored in various locations such as a cookie, in a hidden web form field, input parameter or argument, an environment variable, a database record, within a settings file, etc. All of these locations have the potential to be modified by an attacker. When this state information is used to control security or determine resource usage, then it may create a vulnerability. For example, an application may perform authentication, then save the state in an "authenticated=true" cookie. An attacker may simply create this cookie in order to bypass the authentication.

Last updated: 09 May 2026 03:25 UTC

NIST 800-53 r5 controls that address this weakness (4)AI

Control Title Family Why it addresses this CWE
SI-22Information DiversitySIDirectly counters external corruption or unavailability of critical state data by mandating and using alternative sources for essential functions.
SI-9Information Input RestrictionsSILimits external actors' ability to control critical state through input channels.
CM-3Configuration Change ControlCMMonitors, approves, and documents changes to critical configuration state data, mitigating external control risks.
IA-4Identifier ManagementIARequires authorization and prevents reuse, mitigating external control of critical identifier state data.

Top CVEs of this weakness type, ranked by Risk Priority

CVE Risk CVSS EPSS Published
CVE-2018-153821.88.60.00682018-10-05
CVE-2020-278721.88.80.01112021-02-04
CVE-2019-94961.67.50.02362019-04-17
CVE-2023-05751.57.20.00502023-02-09
CVE-2026-291461.57.50.00102026-04-09
CVE-2020-261861.46.80.00042021-01-08
CVE-2022-221541.46.80.00052022-01-19
CVE-2024-223871.46.80.00122024-07-11
CVE-2025-490901.47.10.00052025-10-02
CVE-2024-87541.36.40.00032024-09-12
CVE-2017-09281.26.10.00192018-06-04
CVE-2022-328591.15.30.00242022-11-01
CVE-2020-19760.94.70.00132020-02-12
CVE-2025-267870.94.70.00052025-12-22
CVE-2025-545660.84.20.00012025-07-25
CVE-2024-582650.63.10.00082025-07-27