CWE-913: Improper Control of Dynamically-Managed Code Resources
Description
The product does not properly restrict reading from or writing to dynamically-managed code resources such as variables, objects, classes, attributes, functions, or executable instructions or statements.
Submission Date :
Jan. 26, 2013, midnight
Modification Date :
2023-10-26 00:00:00+00:00
Organization :
MITRE
Extended Description
Many languages offer powerful features that allow the programmer to dynamically create or modify existing code, or resources used by code such as variables and objects. While these features can offer significant flexibility and reduce development time, they can be extremely dangerous if attackers can directly influence these code resources in unexpected ways.
Related Weaknesses
This table shows the weaknesses and high level categories that are related to this weakness. These relationships are defined to give an overview of the different insight to similar items that may exist at higher and lower levels of abstraction.
CWE-94: Improper Control of Generation of Code ('Code Injection')
CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')
CWE-502: Deserialization of Untrusted Data
CWE-664: Improper Control of a Resource Through its Lifetime
CWE-914: Improper Control of Dynamically-Identified Variables
CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes
CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Visit http://cwe.mitre.org/ for more details.