CWE-621: Variable Extraction Error
Also known as: Variable overwrite
The product uses external input to determine the names of variables into which information is extracted, without verifying that the names of the specified variables are valid.
Last updated
Overview
CWE-621 (Variable Extraction Error) is a variant-level software weakness catalogued by MITRE in the Common Weakness Enumeration (CWE). It describes a recurring type of mistake that can lead to exploitable security vulnerabilities.
Real-world CVEs
1 recorded CVE is caused by CWE-621 (Variable Extraction Error).
Common consequences
What can happen when CWE-621 is exploited.
Modify Application Data
Affects: Integrity
An attacker could cause the program to overwrite unintended variables.
Modify Application Data
Affects: Integrity
When using PHP, calling extract() or import_request_variables() without the proper arguments could allow arbitrary global variables to be overwritten, including superglobals.
How it happens
When it is introduced
Typically introduced during these phases of the software lifecycle.