What is CWE-367?
The product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check.
Analyzing data...
The product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check.
Analyzing data...
The product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check.
| Impact | Scope | Explanation |
|---|---|---|
| Alter Execution Logic, Unexpected State | Integrity, Other | The attacker can gain access to otherwise unauthorized resources. |
| Modify Application Data, Modify Files or Directories, Modify Memory, Other | Integrity, Other | Race conditions such as this kind may be employed to gain read or write access to resources which are not normally readable or writable by the user in question. |
| Other | Integrity, Other | The resource in question, or other resources (through the corrupted one), may be changed in undesirable ways by a malicious user. |
| Hide Activities | Non-Repudiation | If a file or other resource is written in this method, as opposed to in a valid way, logging of the activity may not occur. |
| Other | Non-Repudiation, Other | In some cases it may be possible to delete files a malicious user might not otherwise have access to, such as log files. |
| Unexpected State | Other | The product may perform invalid actions when the resource is in an unexpected state. |
| Method | Approach | Effectiveness |
|---|---|---|
| Automated Static Analysis | Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.) | High |
Below are representative vulnerabilities related to this CWE, prioritized by severity.
CWE™ Program, operated by The MITRE Corporation. Copyright © 2006–2026, The MITRE Corporation. The MITRE Corporation hereby grants you a non-exclusive, royalty-free license to use CWE for research, development, and commercial purposes. CWE Terms of Use.
CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.
Explore CyStack VulnScanen