1. CVE archive
  2. Vulnerability types
  3. CWE-627
CWE-627 · #599 most frequent type in the archive

Dynamic Variable Evaluation

In a language where the user can influence the name of a variable at runtime, if the variable names are not controlled, an attacker can read or write to arbitrary variables, or access arbitrary functions.

Part of: CWE-914 · Improper Control of Dynamically-Identified Variables

3CVEs of this type in the archive
0critical (CVSS ≥ 9)
0high severity (7–8.9)
Feb 16, 2026latest published

What it is

In a language where the user can influence the name of a variable at runtime, if the variable names are not controlled, an attacker can read or write to arbitrary variables, or access arbitrary functions.

Impact on systems

ScopeImpact
Confidentiality, Integrity, Availability Modify Application Data, Execute Unauthorized Code or Commands, Varies by Context
An attacker could gain unauthorized read or write access to internal program variables and possibly execute arbitrary code. The resultant vulnerabilities depend on the behavior of the application, both at the crossover point and in any control/data flow that is reachable by the related variables or functions.

How to prevent it

Implementation · Refactoring Refactor the code to avoid dynamic variable evaluation whenever possible.
Implementation · 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.

Source: MITRE CWE catalog · Official entry on the MITRE website

All CWE-627 CVEs

3 results

Dottor Marc

Is this type of vulnerability in your systems?

An archive tells you what exists; a Vulnerability Assessment tells you what is exposed on your side. Dottor Marc tests your web applications and network with automated and manual checks.