CWEweakness
CWE-914 Improper Control of Dynamically-Identified Variables
- Abstraction
- Base
- 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-identified variables.
Common consequences
• Integrity: Modify Application Data — An attacker could modify sensitive data or critical program variables.
• 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 internal program variables that are allowed to be modified.
• [Implementation, Architecture and Design] Refactor the code so that internal program variables do not need to be dynamically identified.
Observed examples
• CVE-2006-7135: extract issue enables file inclusion
• CVE-2006-7079: Chain: extract used for register_globals compatibility layer, enables path traversal (CWE-22)
• CVE-2007-0649: extract() buried in include files makes post-disclosure analysis confusing; original report had seemed incorrect.
• CVE-2006-6661: extract() enables static code injection
• CVE-2006-2828: import_request_variables() buried in include files makes post-disclosure analysis confusing
• CVE-2009-0422: Chain: Dynamic variable evaluation allows resultant remote file inclusion and path traversal.
• CVE-2007-2431: Chain: dynamic variable evaluation in PHP program used to modify critical, unexpected $_SERVER variable for resultant XSS.
• CVE-2006-4904: Chain: dynamic variable evaluation in PHP program used to conduct remote file inclusion.
• CVE-2006-4019: Dynamic variable evaluation in mail program allows reading and modifying attachments and preferences of other users.
Related
Observed example · CVE (9)
- CVE-2009-0422 Dynamic variable evaluation vulnerability in lists/admin.php in phpList 2.10.8 and earlier, when register_globals is disabled, allows… vulnerability
- CVE-2007-2431 Dynamic variable evaluation vulnerability in shared/config/tce_config.php in TCExam 4.0.011 and earlier allows remote attackers to conduct… vulnerability
- CVE-2006-7135 PHP remote file inclusion vulnerability in lib/functions.inc.php in PHP Poll Creator (phpPC) 1.04 allows remote attackers to execute… 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
- CVE-2007-0649 Variable overwrite vulnerability in interface/globals.php in OpenEMR 2.8.2 and earlier allows remote attackers to overwrite arbitrary… vulnerability
- CVE-2006-6661 Variable overwrite vulnerability in blog.php in PHP-Update 2.7 and earlier allows remote attackers to overwrite arbitrary program variables… vulnerability
- CVE-2006-4904 Dynamic variable evaluation vulnerability in cmpi.php in Qualiteam X-Cart 4.1.3 and earlier allows remote attackers to overwrite arbitrary… vulnerability
- CVE-2006-4019 Dynamic variable evaluation vulnerability in compose.php in SquirrelMail 1.4.0 to 1.4.7 allows remote attackers to overwrite arbitrary… vulnerability
- CVE-2006-2828 Global variable overwrite vulnerability in PHP-Nuke allows remote attackers to conduct remote PHP file inclusion attacks via a modified… vulnerability
Child of · CWE (2)
Referenced by CVE · weakness (9)
- CVE-2019-25777 YAML versions before 1.27_001 for Perl allow a loaded perl/glob document to replace any package variable, which can lead to arbitrary code… vulnerability
- CVE-2026-44006 vm2 is an open source vm/sandbox for Node.js. vulnerability
- CVE-2026-34444 Lupa integrates the runtimes of Lua or LuaJIT2 into CPython. vulnerability
- CVE-2026-35173 Chyrp Lite is an ultra-lightweight blogging engine. vulnerability
- CVE-2025-14085 A vulnerability has been found in youlaitech youlai-mall 1.0.0/2.0.0. vulnerability
- CVE-2025-14051 A flaw has been found in youlaitech youlai-mall 1.0.0/2.0.0. vulnerability
- CVE-2024-54198 In certain conditions, SAP NetWeaver Application Server ABAP allows an authenticated attacker to craft a Remote Function Call (RFC) request… vulnerability
- CVE-2024-24914 Authenticated Gaia users can inject code or commands by global variables through special HTTP requests. vulnerability
- CVE-2023-33175 ToUI is a Python package for creating user interfaces (websites and desktop apps) from HTML. vulnerability