CWE•Variant•Incomplete•16 recent CVEs
CWE-526Cleartext Storage of Sensitive Information in an Environment Variable
Description
The product uses an environment variable to store unencrypted sensitive information.
Common consequences
- Confidentiality→Read Application DataInformation stored in an environment variable might be accessible by other processes with the execution context, including child processes that dependencies are executed in, or serverless functions in cloud environments. An environment vari
Potential mitigations
- Architecture and DesignEncrypt information stored in the environment variable to protect it from being exposed to an unauthorized user. If encryption is not feasible or is considered too expensive for the business use of the application, then consider using a properly protected configuration file instead of an environment variable. It should be understood that unencrypted information in a config file is also not guarant
- ImplementationIf the environment variable is not necessary for the desired behavior, then remove it entirely, or clear it to an empty value.
Related CWEs
Recent CVEs classified under this CWE
CVE-2025-364416.22026-11-18CVE-2026-1009757.62026-11-17CVE-2026-541468.82026-11-05CVE-2026-1162466.52026-10-30CVE-2026-779386.52026-10-20CVE-2026-1085925.32026-10-10CVE-2026-762275.52026-08-19CVE-2026-726486.52026-08-13CVE-2026-493774.32026-05-29CVE-2026-453707.72026-05-14CVE-2026-401537.42026-04-09CVE-2025-361054.42026-03-10CVE-2025-360176.52025-12-08CVE-2024-126046.52025-03-10CVE-2024-117364.92025-01-14CVE-2024-27007.02024-04-04