ClassIncomplete

CWE-913Improper Control of Dynamically-Managed Code Resources

Category: logic

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. 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· 2

  • Integrity — Execute Unauthorized Code or Commands
  • Other / Integrity — Varies by Context, Alter Execution Logic

Potential mitigations· 2

  • [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.

References

  1. https://cwe.mitre.org/data/definitions/913.html

Compliance frameworks addressing this (incoming)3

TypeTargetConfidenceTier
ComplianceControlnis2-art21d100%live
ComplianceControlowasp_top10-a08100%live
ComplianceControlowasp_llm_top10-llm03100%live

(incoming)17

TypeTargetConfidenceTier
VulnerabilityCVE-2025-13659cve-2025-136590%live
VulnerabilityCVE-2025-14051cve-2025-140510%live
VulnerabilityCVE-2025-14085cve-2025-140850%live
VulnerabilityCVE-2025-25270cve-2025-252700%live
VulnerabilityCVE-2025-46673cve-2025-466730%live
VulnerabilityCVE-2025-6384cve-2025-63840%live
VulnerabilityCVE-2025-66398cve-2025-663980%live
Vulnerabilityn8n Improper Control of Dynamically-Managed Code Resources Vulnerabilitycve-2025-686130%live
VulnerabilityCVE-2025-69219cve-2025-692190%live
VulnerabilityCVE-2026-22709cve-2026-227090%live
VulnerabilityCVE-2026-23830cve-2026-238300%live
VulnerabilityCVE-2026-25049cve-2026-250490%live
VulnerabilityCVE-2026-33286cve-2026-332860%live
VulnerabilityCVE-2026-34156cve-2026-341560%live
VulnerabilityCVE-2026-44336cve-2026-443360%live
VulnerabilityCVE-2026-7381cve-2026-73810%live
KEVEntryn8n Improper Control of Dynamically-Managed Code Resources Vulnerabilitykev-cve-2025-686130%live

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CWE
Improper Control of Dynamically-Identified Variables
CWE
Improperly Controlled Modification of Dynamically-Determined Object Attributes
CWE
Insufficient Encapsulation
CWE
Improper Control of Generation of Code ('Code Injection')
CWE
Improper Resource Locking
CWE
Access to Critical Private Variable via Public Method
Sourced from MITRE CWE 4.20. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.