CWE-454: External Initialization of Trusted Variables or Data Stores
The product initializes critical internal variables or data stores using inputs that can be modified by untrusted actors.
Last updated
The product initializes critical internal variables or data stores using inputs that can be modified by untrusted actors.
Last updated
4 recorded CVEs are caused by CWE-454 (External Initialization of Trusted Variables or Data Stores). The highest-severity and most recent are shown first. 3 new CWE-454 CVEs have been recorded so far in 2026 (1 in 2025).
Kirby: External Initialization of the Panel on reverse proxy setups with the `Forwarded` header
Microsoft Azure AD SSH Login extension for Linux Elevation of Privilege Vulnerability
IBM AIX privilege escalation
pam_usb: getenv() used in PAM context allows environment variable injection into local-check logic
What can happen when CWE-454 is exploited.
Modify Application Data
Affects: Integrity
An attacker could gain access to and modify sensitive data or system information.
Typically introduced during these phases of the software lifecycle.
Languages
Practical mitigations for CWE-454, grouped by where in the lifecycle they apply.
A product system should be reluctant to trust variables that have been initialized outside of its trust boundary. Ensure adequate checking (e.g. input validation) is performed when relying on input from outside a trust boundary.
Avoid any external control of variables. If necessary, restrict the variables that can be modified using an allowlist, and use a different namespace or naming convention if possible.
Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)
MITRE examples of the weakness in code.
In the Java example below, a system property controls the debug level of the application.
Vulnerable example
int debugLevel = Integer.getInteger("com.domain.application.debugLevel").intValue();If an attacker is able to modify the system property, then it may be possible to coax the application into divulging sensitive information by virtue of the fact that additional debug information is printed/exposed as the debug level increases.
This code checks the HTTP POST request for a debug switch, and enables a debug mode if the switch is set.
Vulnerable example
$debugEnabled = false;
/.../
$debugEnabled = true;
if($debugEnabled){
echo 'Debug Activated';Real CVEs that MITRE cites as examples of this weakness.
Common questions about CWE-454.
Weakness data is sourced from the MITRE CWE catalog (v4.20). CVE associations are aggregated and kept current by RadicalNotion.AI.
Get an alert when a new CWE-454 CVE affects your products, with AI-written analysis and remediation steps.