Skip to content
OpenAdvisories

Weakness (CWE)

CWE-526: Cleartext Storage of Sensitive Information in an Environment Variable

Variant Incomplete

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

How to prevent it (2 mitigations)
  1. 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.

  2. 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-526

18 results · Clear filters · Feed

  • Medium 6.5

    pgAdmin 4: Server passwords are left in pgAdmin's process environment

    To pass a server's password to psql and to the utilities pgAdmin 4 runs as background processes, the server manager wrote it into pgAdmin's own process environment: as PGPASSWORD for the PSQL tool, and under a per-process variable for a utility. Nothing remov…

  • Medium 6.5

    Letta through 0.16.8 Credential Exposure via Tool Sandbox Environment Inheritance

    Letta through 0.16.8 contains an information disclosure vulnerability that allows users running tools to read server secrets because LocalSandbox subprocesses inherit the full server environment. Attackers can run code via POST /v1/tools/run or custom tools t…

  • Medium 5.3
    CVE-2026-108592 Public exploit

    mini-swe-agent 1.10.0 through 2.4.6 Environment Exposure via BubblewrapEnvironment

    mini-swe-agent 1.10.0 through 2.4.6 contains an information exposure vulnerability in BubblewrapEnvironment because bwrap omits --clearenv, so sandboxed commands inherit the host environment. Attackers using prompt injection in processed task content can make…

  • Medium 5.5

    Renovate 42.68.1 before 42.96.3 and 43.0.0 before 43.4.4 Environment Variable Exposure

    Renovate versions from 42.68.1 before 42.96.3 and from 43.0.0 before 43.4.4, including the renovate/renovate Docker images, and Mend Renovate CE/EE images (renovate-ce, renovate-ee-server, renovate-ee-worker) from 13.3.0 before 13.6.0, fail to restrict enviro…

  • Medium 6.5

    Cleartext Storage of Sensitive Information in an Environment Variable in Elastic Cloud on Kubernetes Leading to Information Disclosure

    Cleartext Storage of Sensitive Information in an Environment Variable (CWE-526) in Elastic Cloud on Kubernetes (ECK) can lead to information disclosure via Retrieve Embedded Sensitive Data (CAPEC-37). When ECK reconciles a Fleet Server resource that authentic…

  • Medium 4.3

    In JetBrains TeamCity before 2025.11.2 exposure of sensitive data via default agent parameters

  • Medium 4.4

    IBM Planning Analytics Advanced Certified Containers is vulnerable to a sensitive information disclosure vulnerability

    IBM Planning Analytics Advanced Certified Containers 3.1.0 through 3.1.4 could allow a local privileged user to obtain sensitive information from environment variables.

  • Medium 5.3

    Multiple vulnerabilities in IBM Java SDK affecting Db2 Recovery Expert for Linux, Unix and Windows

    IBM DB2 Recovery Expert for LUW 5.5 Interim Fix 002 discloses sensitive information in an environment variable that could aid in further attacks against the system.

  • Medium 6.5

    IBM Controller Information Disclosure

    IBM Controller 11.1.0 through 11.1.1 and IBM Cognos Controller 11.0.0 through 11.0.1 FP6 stores unencrypted sensitive information in environmental variables files which can be obtained by an authenticated user.

  • Medium 4.9

    Org.keycloak/keycloak-model-storage-service: variable injection into environment variables

    A flaw was found in org.keycloak/keycloak-model-storage-service. The KeycloakRealmImport custom resource substitutes placeholders within imported realm documents, potentially referencing environment variables. This substitution process allows for injection at…

  • Medium 5.1

    Mautic does not shield .env files from web traffic

    SummaryThis advisory addresses a security vulnerability in Mautic where sensitive .env configuration files may be directly accessible via a web browser. This exposure could lead to the disclosure of sensitive information, including database credentials, API k…

  • Medium 6.8

    IBM Storage Virtualize vSphere Remote Plug-in information disclosure

    IBM Storage Virtualize vSphere Remote Plug-in 1.0 and 1.1 could allow a remote user to obtain sensitive credential information after deployment.

  • Medium 6.5

    Improper Authentication in Tapandsign Technologies Tap and Sign App

    Cleartext Storage of Sensitive Information in an Environment Variable, Weak Password Recovery Mechanism for Forgotten Password vulnerability in Tapandsign Technologies Tap&Sign App allows Password Recovery Exploitation, Functionality Misuse. This issue affect…

  • Medium 5.5

    IBM MQ information disclosure

    IBM MQ 9.3 LTS, 9.3 CD, 9.4 LTS, and 9.4 CD stores potentially sensitive information in environment variables that could be obtained by a local user.

  • Medium 4.9

    Org.keycloak:keycloak-quarkus-server: unrestricted admin use of system and environment variables

    A vulnerability was found in Keycloak. Admin users may have to access sensitive server environment variables and system properties through user-configurable URLs. When configuring backchannel logout URLs or admin URLs, admin users can include placeholders lik…

  • Medium 6.8

    Cluster-image-registry-operator: exposes a secret via env variable in pod definition on azure

    An information disclosure flaw was found in OpenShift's internal image registry operator. The AZURE_CLIENT_SECRET can be exposed through an environment variable defined in the pod definition, but is limited to Azure environments. An attacker controlling an ac…

  • Medium 5.3

    Hashicorp Nomad Information Exposure Through Environmental Variables

    HashiCorp Nomad 0.5.0 through 0.9.4 (fixed in 0.9.5) reveals unintended environment variables to the rendering task during template rendering, aka GHSA-6hv3-7c34-4hx8. This applies to nomad/client/allocrunner/taskrunner/template.

  • Medium 5.0

    Ecava IntegraXor SCADA Server Information Exposure Through Environmental Variables

    Ecava IntegraXor SCADA Server Stable 4.1.4360 and earlier and Beta 4.1.4392 and earlier allows remote attackers to discover full pathnames via an application tag.