CWE-526: Cleartext Storage of Sensitive Information in an Environment Variable
24 CVEs have CWE-526 as their primary weakness. 0 of them are in the CISA KEV catalog. The highest EPSS score among them is 1.836%.
The product uses an environment variable to store unencrypted sensitive information.
Child of CWE-312: Cleartext Storage of Sensitive Information
Mitigations
- 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.
Observed examples
- CVE-2022-43691: CMS shows sensitive server-side information from environment variables when run in Debug mode.
- CVE-2022-27195: Plugin for an automation server inserts environment variable contents into build XML files.
- CVE-2022-25264: CI/CD tool logs environment variables related to passwords add Contribution to content history.
Top released CVEs
KEV first, then the highest EPSS score, the highest CVSS score and the newest.
| CVE | Published | Severity | CVSS | EPSS | Description |
|---|---|---|---|---|---|
| CVE-2026-100975 | 2026-11-17 | HIGH | 7.6 | not scored | NVIDIA OpenShell for Linux contains a vulnerability in the Kubernetes sandbox SSH authentication configuration where a local attacker with low privileges could… |
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cwe_lookup/CWE-526'curl 'https://api.contrastcyber.com/cve_search?cwe_id=CWE-526'
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).