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

Cleartext Storage of Sensitive Information in an Environment Variable

The product uses an environment variable to store unencrypted sensitive information.

Part of: CWE-312 · Cleartext Storage of Sensitive Information

24CVEs of this type in the archive
0critical (CVSS ≥ 9)
6high severity (7–8.9)
Nov 18, 2026latest published

What it is

The product uses an environment variable to store unencrypted sensitive information.

Impact on systems

ScopeImpact
Confidentiality Read Application Data
Information 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 variable's contents can also be inserted into messages, headers, log files, or other outputs. Often these other dependencies have no need to use the environment variable in question. A weakness that discloses environment variables could expose this information.

How to prevent it

Architecture and Design Encrypt 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 guaranteed to be protected, but it is still a better choice, because it reduces attack surface related to weaknesses such as CWE-214. In some settings, vaults might be a feasible option for safer data transfer. Users should be notified of the business choice made to not protect the sensitive information through encryption.
Implementation If the environment variable is not necessary for the desired behavior, then remove it entirely, or clear it to an empty value.

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

CWE-526 CVEs published per year

2026: year in progress, updated every hour

Show the data as a table
YearCVE
20141
20233
20242
20256
202612

All CWE-526 CVEs

24 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.