| Impact | Details |
|---|---|
|
Modify Application Data; Execute Unauthorized Code or Commands |
Scope: Confidentiality, Integrity, Availability
An attacker could gain unauthorized access to internal program variables and execute arbitrary code.
|
| Phase(s) | Mitigation |
|---|---|
|
Implementation |
Strategy: Refactoring Refactor the code to avoid dynamic variable evaluation whenever possible.
|
|
Implementation |
Strategy: Input Validation Use only allowlists of acceptable variable or function names.
|
|
Implementation |
For function names, ensure that you are only calling functions that accept the proper number of arguments, to avoid unexpected null arguments.
|
| Nature | Type | ID | Name |
|---|---|---|---|
| ChildOf | Base Base - a weakness that is still mostly independent of a resource or technology, but with sufficient details to provide specific methods for detection and prevention. Base level weaknesses typically describe issues in terms of 2 or 3 of the following dimensions: behavior, property, technology, language, and resource. | 914 | Improper Control of Dynamically-Identified Variables |
| PeerOf | Base Base - a weakness that is still mostly independent of a resource or technology, but with sufficient details to provide specific methods for detection and prevention. Base level weaknesses typically describe issues in terms of 2 or 3 of the following dimensions: behavior, property, technology, language, and resource. | 183 | Permissive List of Allowed Inputs |
| Phase | Note |
|---|---|
| Implementation |
PHP (Undetermined Prevalence)
Perl (Undetermined Prevalence)
Note: this is a curated list of examples for users to understand the variety of ways in which this weakness can be introduced. It is not a complete list of all CVEs that are related to this CWE entry.
| Reference | Description |
|---|---|
|
Chain: Dynamic variable evaluation allows resultant remote file inclusion and path traversal.
|
|
|
Chain: dynamic variable evaluation in PHP program used to modify critical, unexpected $_SERVER variable for resultant XSS.
|
|
|
Chain: dynamic variable evaluation in PHP program used to conduct remote file inclusion.
|
|
|
Dynamic variable evaluation in mail program allows reading and modifying attachments and preferences of other users.
|
| Ordinality | Description |
|---|---|
|
Primary
|
(where the weakness exists independent of other weaknesses)
|
| Nature | Type | ID | Name |
|---|---|---|---|
| MemberOf | ViewView - a subset of CWE entries that provides a way of examining CWE content. The two main view structures are Slices (flat lists) and Graphs (containing relationships between entries). | 884 | CWE Cross-section |
| MemberOf | CategoryCategory - a CWE entry that contains a set of other entries that share a common characteristic. | 990 | SFP Secondary Cluster: Tainted Input to Command |
| MemberOf | CategoryCategory - a CWE entry that contains a set of other entries that share a common characteristic. | 1409 | Comprehensive Categorization: Injection |
Rationale
This CWE entry is at the Variant level of abstraction, which is a preferred level of abstraction for mapping to the root causes of vulnerabilities.Comments
Carefully read both the name and description to ensure that this mapping is an appropriate fit. Do not try to 'force' a mapping to a lower-level Base/Variant simply to comply with this preferred level of abstraction.Research Gap
| Submissions | ||
|---|---|---|
| Submission Date | Submitter | Organization |
|
2007年05月07日
(CWE Draft 6, 2007年05月07日) |
CWE Content Team | MITRE |
| Modifications | ||
| Modification Date | Modifier | Organization |
| 2023年06月29日 | CWE Content Team | MITRE |
| updated Mapping_Notes | ||
| 2023年04月27日 | CWE Content Team | MITRE |
| updated References, Relationships, Type | ||
| 2020年06月25日 | CWE Content Team | MITRE |
| updated Potential_Mitigations | ||
| 2020年02月24日 | CWE Content Team | MITRE |
| updated Relationships | ||
| 2017年11月08日 | CWE Content Team | MITRE |
| updated References | ||
| 2014年07月30日 | CWE Content Team | MITRE |
| updated Relationships | ||
| 2013年02月21日 | CWE Content Team | MITRE |
| updated Common_Consequences, Observed_Examples, Potential_Mitigations, Relationships, Weakness_Ordinalities | ||
| 2012年10月30日 | CWE Content Team | MITRE |
| updated Potential_Mitigations | ||
| 2012年05月11日 | CWE Content Team | MITRE |
| updated Common_Consequences, Relationships | ||
| 2011年06月01日 | CWE Content Team | MITRE |
| updated Common_Consequences | ||
| 2011年03月29日 | CWE Content Team | MITRE |
| updated Description | ||
| 2008年10月14日 | CWE Content Team | MITRE |
| updated Background_Details, Description | ||
| 2008年09月08日 | CWE Content Team | MITRE |
| updated Applicable_Platforms, Relationships | ||
| 2008年07月01日 | Eric Dalci | Cigital |
| updated Time_of_Introduction | ||
Use of the Common Weakness Enumeration (CWE™) and the associated references from this website are subject to the Terms of Use. CWE is sponsored by the U.S. Department of Homeland Security (DHS) Cybersecurity and Infrastructure Security Agency (CISA) and managed by the Homeland Security Systems Engineering and Development Institute (HSSEDI) which is operated by The MITRE Corporation (MITRE). Copyright © 2006–2025, The MITRE Corporation. CWE, CWSS, CWRAF, and the CWE logo are trademarks of The MITRE Corporation.