Environment variable
A named setting a running program inherits from whatever started it.
An environment variable is a named setting that a running program inherits from whatever started it, such as the user’s home folder or the language to use. Programs often receive passwords and API keys this way, so the secrets are not written into the source code. Changing one usually means restarting the program, and anything that can read the program’s environment, or a crash report that dumps it, can see the secrets too.
See also
Sources
- Environment Variables (POSIX.1-2024, Base Definitions, Chapter 8)The Open Group / IEEEofficial healthy, checked 2026-11-15 archived copy
- Environment variableWikipedia healthy, checked 2026-11-15 archived copy
In security catalogues
- CWE-526 Cleartext Storage of Sensitive Information in an Environment VariableCWE healthy, checked 2026-11-15 archived copy