CWE-454: External Initialization of Trusted Variables or Data Stores
4 CVEs have CWE-454 as their primary weakness. 0 of them are in the CISA KEV catalog. The highest EPSS score among them is 0.743%.
The product initializes critical internal variables or data stores using inputs that can be modified by untrusted actors.
Child of CWE-1419: Incorrect Initialization of Resource
Mitigations
- Implementation: A product system should be reluctant to trust variables that have been initialized outside of its trust boundary, especially if they are initialized by users. Ensure adequate checking (e.g. input validation) is performed when relying on input from outside a trust boundary.
- Architecture and Design: 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.
Observed examples
- CVE-2022-43468: WordPress module sets internal variables based on external inputs, allowing false reporting of the number of views
- CVE-2000-0959: Does not clear dangerous environment variables, enabling symlink attack.
- CVE-2001-0033: Specify alternate configuration directory in environment variable, enabling untrusted path.
- CVE-2001-0872: Dangerous environment variable not cleansed.
- CVE-2001-0084: Specify arbitrary modules using environment variable.
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cwe_lookup/CWE-454'curl 'https://api.contrastcyber.com/cve_search?cwe_id=CWE-454'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).