Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CWE-913 (动态管理代码资源的控制不恰当) — Vulnerability Class 57

57 vulnerabilities classified as CWE-913 (动态管理代码资源的控制不恰当). AI Chinese analysis included.

CWE-913 represents a critical weakness where software fails to properly restrict access to dynamically-managed code resources, including variables, objects, classes, and executable instructions. This vulnerability typically arises in languages supporting dynamic code generation or modification, such as JavaScript or Python, where attackers exploit insufficient validation to inject malicious scripts or alter runtime behavior. By manipulating these dynamic elements, adversaries can achieve remote code execution, data injection, or privilege escalation, bypassing standard security controls. To mitigate this risk, developers must enforce strict input validation and sanitization on all dynamic inputs. Implementing robust access controls, utilizing secure coding frameworks that limit dynamic execution capabilities, and adopting a principle of least privilege for runtime environments are essential strategies. Regular security audits and static analysis tools further help identify and remediate these dangerous dynamic resource interactions before deployment.

MITRE CWE 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
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.
Examples (2)
This example attempts to write user messages to a message file and allow users to view them.
$MessageFile = "messages.out"; if ($_GET["action"] == "NewMessage") { $name = $_GET["name"]; $message = $_GET["message"]; $handle = fopen($MessageFile, "a+"); fwrite($handle, "<b>$name</b> says '$message'<hr>\n"); fclose($handle); echo "Message Saved!<p>\n"; } else if ($_GET["action"] == "ViewMessages") { include($MessageFile); }
Bad · PHP
name=h4x0r message=%3C?php%20system(%22/bin/ls%20-l%22);?%3E
Attack
A common reason that programmers use the reflection API is to implement their own command dispatcher. The following example shows a command dispatcher that does not use reflection:
String ctl = request.getParameter("ctl"); Worker ao = null; if (ctl.equals("Add")) { ao = new AddCommand(); } else if (ctl.equals("Modify")) { ao = new ModifyCommand(); } else { throw new UnknownActionError(); } ao.doAction(request);
Good · Java
String ctl = request.getParameter("ctl"); Class cmdClass = Class.forName(ctl + "Command"); Worker ao = (Worker) cmdClass.newInstance(); ao.doAction(request);
Bad · Java
CVE ID Title CVSS Severity Published
CVE-2026-65181 Apache Impala: RCE via External Data Source Class Loading — Apache Impala - - 2026-09-09
CVE-2026-76023 Google Chrome 处理逻辑错误漏洞 — Chrome - - 2026-08-20
CVE-2026-71470 Acm-search-v2-rhel9: search-v2-operator: search cr imageoverride/arguments/envvar flow unsanitized into pods running impersonating sa — Red Hat Advanced Cluster Management for Kubernetes 2.11 9.1 Critical 2026-08-19
CVE-2026-47698 vm2: Sandbox Breakout Using Dangerous Host Proto Mutators — vm2 9.8 Critical 2026-08-17
CVE-2026-73226 Electerm WebSocket `upgrade-func` and `fs` handlers allow arbitrary method/function invocation due to missing method-name allowlist — electerm 8.8 High 2026-08-11
CVE-2026-47210 vm2 sandbox escape via JSPI-backed Promise `.finally()` species bypass — vm2 9.8 Critical 2026-06-12
CVE-2026-47208 vm2: Sandbox Breakout Using Promise Species — vm2 10.0 Critical 2026-06-12
CVE-2026-47137 vm2: GHSA-8hg8-63c5-gwmx patch bypass: nesting:true without explicit require still allows full RCE — vm2 10.0 Critical 2026-06-12
CVE-2026-47131 vm2: Sandbox Escape — vm2 10.0 Critical 2026-06-12
CVE-2026-48700 PCManFM-Qt 安全漏洞 — PCManFM-Qt - - 2026-05-22
CVE-2026-34156 NocoBase Affected by Sandbox Escape to RCE via console._stdout Prototype Chain Traversal in Workflow Script Node — nocobase 10.0 Critical 2026-03-31
CVE-2026-33286 Graphiti Affected by Arbitrary Method Execution via Unvalidated Relationship Names — graphiti 9.1 Critical 2026-03-23
CVE-2025-69219 Apache Airflow Providers Http: Unsafe Pickle Deserialization in apache-airflow-providers-http leading to RCE via HttpOperator — Apache Airflow Providers Http 8.8AI High AI 2026-03-09
CVE-2026-25049 n8n Has an Expression Escape Vulnerability Leading to RCE — n8n 9.9AI Critical AI 2026-02-04
CVE-2026-1770 Improper Control of Dynamically-Managed Code Resources in Crafter Studio — CrafterCMS 8.8AI High AI 2026-02-02
CVE-2025-68613 n8n Vulnerable to Remote Code Execution via Expression Injection — n8n 10.0 Critical 2025-12-19
CVE-2025-14695 SamuNatsu HaloBot Inter-plugin API index.js html_renderer dynamically-managed code resources — HaloBot 6.3 Medium 2025-12-15
CVE-2025-13659 Ivanti Endpoint Manager 安全漏洞 — Endpoint Manager 8.8 High 2025-12-09
CVE-2025-13426 Improper Sandboxing in Google Apigee's JavaCallout Policy Allows for Remote Code Execution — Apigee hybrid Javacallout policy 8.8 - 2025-12-05
CVE-2024-5401 Synology DiskStation Manager和Synology Unified Controller 安全漏洞 — DiskStation Manager (DSM) 4.3 Medium 2025-12-04
CVE-2025-54065 GZDoom engine allows arbitrary code execution via ZScript actor states — gzdoom 7.8 High 2025-12-03
CVE-2025-9905 Arbitary Code execution in Keras load_model() — Keras 7.8 - 2025-09-19
CVE-2025-25270 Remote Code Execution via Unauthenticated Configuration Manipulation — CHARX SEC-3150 9.8 Critical 2025-07-08
CVE-2025-6705 Eclipse Open VSX 安全漏洞 — Eclipse Open VSX Registry 9.8AI Critical AI 2025-06-27
CVE-2025-6384 Improper Control of Dynamically-Managed Code Resources in Crafter Studio — CrafterCMS 8.8AI High AI 2025-06-19
CVE-2025-46675 CryptoLib 安全漏洞 — CryptoLib 3.5 Low 2025-04-27
CVE-2025-46673 CryptoLib 安全漏洞 — CryptoLib 4.9 Medium 2025-04-27
CVE-2022-31764 Apache ShardingSphere ElasticJob-UI allows RCE via event trace data source JDBC — Apache ShardingSphere ElasticJob-UI 9.8 - 2025-02-06
CVE-2024-7297 Langflow Privilege Escalation 8.8 High 2024-07-30
CVE-2024-2537 Electron Code Injection in Logi Tune macOS Application — Logi Tune 4.4 Medium 2024-03-15

Vulnerabilities classified as CWE-913 (动态管理代码资源的控制不恰当) represent 57 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.