CWEweakness

CWE-913 Improper Control of Dynamically-Managed Code Resources

Official page ↗
Abstraction
Class
Structure
Simple
Status
Incomplete
Languages
Interpreted, Not Language-Specific
CWE version
5.0

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.

Common consequences

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

Potential 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.

Detection methods

• Fuzzing: Fuzz testing (fuzzing) is a powerful technique for generating large numbers of diverse inputs - either randomly or algorithmically - and dynamically invoking the code with those inputs. Even with random inputs, it is often capable of generating unexpected results such as crashes, memory corruption, or resource consumption. Fuzzing effectively produces repeatable test cases that clearly indicate bugs, which helps developers to diagnose the issues.

Observed examples

• CVE-2022-2054: Python compiler uses eval() to execute malicious strings as Python code. • CVE-2018-1000613: Cryptography API uses unsafe reflection when deserializing a private key • CVE-2015-8103: Deserialization issue in commonly-used Java library allows remote execution. • CVE-2006-7079: Chain: extract used for register_globals compatibility layer, enables path traversal (CWE-22) • CVE-2012-2055: Source version control product allows modification of trusted key using mass assignment.

Related

Observed example · CVE (5)

  • CVE-2022-2054 Code Injection in GitHub repository nuitka/nuitka prior to 0.9. vulnerability
  • CVE-2018-1000613 Legion of the Bouncy Castle Legion of the Bouncy Castle Java Cryptography APIs 1.58 up to but not including 1.60 contains a CWE-470: Use of… vulnerability
  • CVE-2015-8103 The Jenkins CLI subsystem in Jenkins before 1.638 and LTS before 1.625.2 allows remote attackers to execute arbitrary code via a crafted… vulnerability
  • CVE-2012-2055 GitHub Enterprise before 20120304 does not properly restrict the use of a hash to provide values for a model's attributes, which allows… vulnerability
  • CVE-2006-7079 Variable extraction vulnerability in include/common.php in exV2 2.0.4.3 and earlier allows remote attackers to overwrite arbitrary program… vulnerability

Child of · CWE (1)

  • CWE-664 Improper Control of a Resource Through its Lifetime weakness

Referenced by CVE · weakness (116)

  • CVE-2026-118538 A vulnerability was determined in a2ui-project a2ui up to 0.12.0. vulnerability
  • CVE-2026-116612 A flaw was found in GStreamer Editing Services (gst-editing-services). vulnerability
  • CVE-2026-102734 asteval is a Python expression evaluator designed for restricted execution. vulnerability
  • CVE-2026-108948 A vulnerability has been found in code-projects Online Reviewer System 1.0. vulnerability
  • CVE-2026-108819 A security flaw has been discovered in agno-agi agno up to 3.0.6/3.1.1. vulnerability
  • CVE-2026-103663 Ollama is vulnerable to path traversal in the `/api/pull` endpoint due to insufficient validation of layer digests by the `digestToPath`… vulnerability
  • CVE-2026-105180 A vulnerability was determined in Jeebase 0.0.1. vulnerability
  • CVE-2026-92935 vm2 is a sandbox for running untrusted Node.js code. vulnerability
  • CVE-2026-92946 vm2 before 3.11.7 contains a remote code execution vulnerability when require.external is enabled without an explicit require.root that… vulnerability
  • CVE-2026-92953 vm2 versions from 3.11.0 before 3.11.8 fail to protect host TypedArray and ArrayBuffer prototypes from sandbox mutation. vulnerability
  • CVE-2026-92955 vm2 before 3.11.8 contains a sandbox escape vulnerability in NodeVM that allows attackers to access the host __proto__ getter/setter… vulnerability
  • CVE-2026-90999 Sentry Seer is vulnerable to a multi-stage trust-boundary violation that allows unauthenticated attacker-controlled telemetry to become… vulnerability
  • CVE-2026-92217 A vulnerability was determined in a2ui-project a2ui up to 0.10.6. vulnerability
  • CVE-2026-12354 IBM MQ 9.1.0.0 through 9.1.0.37 LTS, 9.2.0.0 through 9.2.0.43 LTS, 9.3.0.0 through 9.3.0.41 LTS, 9.3.0.0 through 9.3.5.1 CD, 9.4.0.0… vulnerability
  • CVE-2026-41870 Missing Authorization, Improper Control of Generation of Code ('Code Injection'), Improper Control of Dynamically-Managed Code Resources,… vulnerability
  • CVE-2026-65181 Insufficient authorization of Data Source tables in Impala 2.7-4.5 allows a client with privileges to upload a file to remote storage and… vulnerability
  • CVE-2026-85408 A vulnerability was determined in Eleveo Quality Management 9.7.0. vulnerability
  • CVE-2026-84430 A security vulnerability has been detected in gouguoa up to 5.10.0/6.0.1. vulnerability
  • CVE-2026-59283 Applications that evaluate Spring Expression Language (SpEL) expressions using SimpleEvaluationContext may be vulnerable to a safety guard… vulnerability
  • CVE-2026-48105 Arc is an open, SQL-native time-series database for telemetry. vulnerability
  • CVE-2026-76023 Improper resource control in Linux Toolkit Theming in Google Chrome prior to 151.0.7922.173 allowed a remote attacker who had compromised… vulnerability
  • CVE-2026-71470 A flaw was found in the search-v2-operator. vulnerability
  • CVE-2026-47698 vm2 is an open source vm/sandbox for Node.js. vulnerability
  • CVE-2026-73226 electerm is an open-sourced terminal/ssh/sftp/telnet/serialport/RDP/VNC/Spice/ftp client. vulnerability
  • CVE-2026-53753 Crawl4AI is an open-source LLM friendly web crawler & scraper. vulnerability
  • CVE-2026-48775 LangGraph SQLite Checkpoint is an implementation of LangGraph CheckpointSaver that uses SQLite DB (both sync and async, via aiosqlite). vulnerability
  • CVE-2026-47131 vm2 is an open source vm/sandbox for Node.js. vulnerability
  • CVE-2026-47137 vm2 is an open source vm/sandbox for Node.js. vulnerability
  • CVE-2026-47208 vm2 is an open source vm/sandbox for Node.js. vulnerability
  • CVE-2026-47210 vm2 is an open source vm/sandbox for Node.js. vulnerability
Show all 116 ›

Referenced by CWE · child of (6)

  • CWE-1321 Improperly Controlled Modification of Object Prototype Attributes weakness
  • CWE-470 Use of Externally-Controlled Input to Select Classes or Code weakness
  • CWE-502 Deserialization of Untrusted Data weakness
  • CWE-914 Improper Control of Dynamically-Identified Variables weakness
  • CWE-915 Improperly Controlled Modification of Dynamically-Determined Object Attributes weakness
  • CWE-94 Improper Control of Generation of Code weakness

Referenced by CWE · has member (1)

  • CWE-1003 Weaknesses for Simplified Mapping of Published Vulnerabilities view

Referenced by OWASP · mapped cwe (1)

  • A01:2021 Broken Access Control Top 10 2021