CWE-913
Improper Control of Dynamically-Managed Code Resources
About
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.
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.
Common consequences
- Integrity → Execute Unauthorized Code or Commands
- Other, Integrity → Varies by Context, Alter Execution Logic
Mitigations
- Implementation: For any externally-influenced input, check the input against an allowlist of acceptable values.
- Implementation, Architecture and Design: Refactor the code so that it does not need to be dynamically managed.
CVEs with this weakness
Frequently asked questions
What is CWE-913?
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. 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.
Which platforms does CWE-913 affect?
CWE-913 has been observed on: Interpreted.
How many CVEs does Rainforest track for CWE-913?
Rainforest Labs currently tracks 1 published CVEs mapped to CWE-913. They are listed on this page.
Empower Your Security Strategy with Rainforest
Discover vulnerabilities early, prioritize critical threats, and protect what truly matters. Rainforest streamlines your security operations, saving you time and reducing costs, so you can focus on what drives your business forward.
