Skip to content
OpenAdvisories

Weakness (CWE)

CWE-212: Improper Removal of Sensitive Information Before Storage or Transfer

Base Incomplete

The product stores, transfers, or shares a resource that contains sensitive information, but it does not properly remove that information before the product makes the resource available to unauthorized actors.

More detail

Resources that may contain sensitive data include documents, packets, messages, databases, etc. While this data may be useful to an individual user or small set of users who share the resource, it may need to be removed before the resource can be shared outside of the trusted group. The process of removal is sometimes called cleansing or scrubbing.

For example, a product for editing documents might not remove sensitive data such as reviewer comments or the local pathname where the document is stored. Or, a proxy might not remove an internal IP address from headers before making an outgoing request to an Internet site.

How to prevent it (5 mitigations)
  1. Requirements

    Clearly specify which information should be regarded as private or sensitive, and require that the product offers functionality that allows the user to cleanse the sensitive information from the resource before it is published or exported to other parties.

  2. Architecture and Design

    Compartmentalize the system to have "safe" areas where trust boundaries can be unambiguously drawn. Do not allow sensitive data to go outside of the trust boundary and always be careful when interfacing with a compartment outside of the safe area.

    Ensure that appropriate compartmentalization is built into the system design, and the compartmentalization allows for and reinforces privilege separation functionality. Architects and designers should rely on the principle of least privilege to decide the appropriate time to use privileges and the time to drop privileges.

  3. Implementation, Operation

    Some tools can automatically analyze
    documents to redact, strip, or "sanitize" private
    information, although some human review might be
    necessary. Tools may vary in terms of which document
    formats can be processed.

    When calling an external program to automatically
    generate or convert documents, invoke the program with
    any available options that avoid generating sensitive
    metadata. Some formats have well-defined fields that
    could contain private data, such as Exchangeable image
    file format (Exif), which can contain potentially
    sensitive metadata such as geolocation, date, and time
    [REF-1515] [REF-1516].

  4. Implementation

    Use naming conventions and strong types to make it easier to spot when sensitive data is being used. When creating structures, objects, or other complex entities, separate the sensitive and non-sensitive data as much as possible.

  5. Implementation

    Avoid errors related to improper resource shutdown or release (CWE-404), which may leave the sensitive data within the resource if it is in an incomplete state.

Source: MITRE CWE-212

109 results · Feed

  • High 8.8

    Global vanishing does not completely remove user email

    Improper removal of sensitive information before storage or transfer vulnerability in The Wikimedia Foundation Mediawiki - CentralAuth Extension allows Resource Leak Exposure. The issue has been remediated on the `master` branch, and in the release branches f…

  • High 7.7

    Trino: Iceberg REST catalog static and vended credentials are accessible via query JSON

    Trino is a distributed SQL query engine for big data analytics. From version 439 to before version 480, Iceberg connector REST catalog static credentials (access key) or vended credentials (temporary access key) are accessible to users that have write privile…

  • Critical 9.1

    Anchorr Privilege Escalation: Jellyseerr User → Anchorr Admin via Stored XSS

    Anchorr is a Discord bot for requesting movies and TV shows and receiving notifications when items are added to a media server. Versions 1.4.1 and below contain a stored XSS vulnerability in the Jellyseerr user selector. Jellyseerr allows any account holder t…

  • Medium 4.3

    Improper Removal of Sensitive Information Before Storage or Transfer in GitLab

    GitLab has remediated an issue in GitLab CE/EE affecting all versions from 8.14 before 18.7.6, 18.8 before 18.8.6, and 18.9 before 18.9.2 that could have allowed an authenticated user to gain unauthorized access to confidential issue title created in public p…

  • Medium 4.3

    Improper Removal of Sensitive Information Before Storage or Transfer in GitLab

    GitLab has remediated an issue in GitLab CE/EE affecting all versions from 12.6 before 18.7.6, 18.8 before 18.8.6, and 18.9 before 18.9.2 that could have allowed an authenticated user to disclose confidential issue titles due to improper filtering under certa…

  • High 8.5

    tfplan2md has Sensitive Value Exposure in Generated Reports

    tfplan2md is software for converting Terraform plan JSON files into human-readable Markdown reports. Prior to version 1.26.1, a bug in tfplan2md affected several distinct rendering paths: AzApi resource body properties, AzureDevOps variable groups, Scriban te…

  • Low 3.3

    Qemu-kvm: uefi-vars: information disclosure vulnerability in uefi_vars_write callback

    A flaw was found in QEMU in the uefi-vars virtual device. When the guest writes to register UEFI_VARS_REG_BUFFER_SIZE, the .write callback `uefi_vars_write` is invoked. The function allocates a heap buffer without zeroing the memory, leaving the buffer filled…

  • Medium 5.7

    Coolify leaksensitive information `email_change_code` in `/api/v1/teams/{team_id | current}/members` API endpoint

    Coolify is an open-source and self-hostable tool for managing servers, applications, and databases. Coolify versions prior to and including v4.0.0-beta.420.8 have an information disclosure vulnerability in the `/api/v1/teams/{team_id}/members` and `/api/v1/te…

  • Medium 5.5

    CBORDecoder reuse can leak shareable values across decode calls

    cbor2 provides encoding and decoding for the Concise Binary Object Representation (CBOR) serialization format. Starting in version 3.0.0 and prior to version 5.8.0, whhen a CBORDecoder instance is reused across multiple decode operations, values marked with t…

  • Low 2.1

    URI Credential Leakage Bypass over CVE-2025-27221

    URI is a module providing classes to handle Uniform Resource Identifiers. In versions 0.12.4 and earlier (bundled in Ruby 3.2 series) 0.13.2 and earlier (bundled in Ruby 3.3 series), 1.0.3 and earlier (bundled in Ruby 3.4 series), when using the + operator to…

  • Medium 5.6

    Unintended temporary cached data included in a structure only copy intended to be empty of data

    Incomplete removal of sensitive information before transfer vulnerability in M-Files Corporation M-Files Server allows data leak exposure affecting versions before 25.12.15491.7

  • Low 2.3

    Exposure of SSH Private Keys in Remote Alert Handlers (Linux) Rule

    SSH private keys of the "Remote alert handlers (Linux)" rule were exposed in the rule page's HTML source in Checkmk <= 2.4.0p18 and all versions of Checkmk 2.3.0. This potentially allowed unauthorized triggering of predefined alert handlers on hosts where the…

  • High 8.2

    Grype has a credential disclosure vulnerability in Grype JSON output

    Grype is a vulnerability scanner for container images and filesystems. A credential disclosure vulnerability was found in Grype, affecting versions 0.68.0 through 0.104.0. If registry credentials are defined and the output of grype is written using the --file…

  • Medium 5.3

    Zoom Clients - Improper Removal of Sensitive Information

    Improper removal of sensitive information in certain Zoom Clients before version 6.5.10 may allow an unauthenticated user to conduct a disclosure of information via network access.

  • Low 2.6

    Weblate leaks the IP of project members inviting users to assume reviewer roles in Audit log

    Weblate is a web based localization tool. In versions 5.14 and below, Weblate leaks the IP address of the project member inviting the user to the project in the audit log. The audit log includes IP addresses from admin-triggered actions, which can be viewed b…

  • Medium 4.9

    Shopware exposes sensitive user information via CSV export mapping

    ### Impact Malicious actors can exploit this finding to export sensitive customer information from a Shopware application, including password hashes and password reset tokens. In SaaS deployments, this primarily affects customer accounts. In on-premise deploy…

  • Low 3.3

    Improper removal of sensitive information before storage or transfer in AMD Crash Defender could allow an attacker to o…

  • Medium 5.8

    XWiki PDF export jobs store sensitive cookies unencrypted in job statuses

    XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. In versions from 14.4.2 to before 16.4.8, 16.5.0-rc-1 to before 16.10.7, and 17.0.0-rc-1 to before 17.4.0-rc-1, the PDF export jobs store sensitive cookie…

  • Medium 5.3

    Contao discloses information in the news module

    Contao is an Open Source CMS. In versions starting from 5.0.0 and prior to 5.3.38 and 5.6.1, if a news feed contains protected news archives, their news items are not filtered and become publicly available in the RSS feed. This issue has been patched in versi…

  • Critical 10.0

    m00nl1ght-dev/steam-workshop-deploy: Exposure of Version-Control Repository to an Unauthorized Control Sphere and Insufficiently Protected Credentials

    ## Summary The `steam-workshop-deploy` github action does not exclude the `.git` directory when packaging content for deployment and provides no built-in way to do so. If a `.git` folder exists in the target directory (e.g., due to a local Git repo, custom pr…

  • Medium 4.5

    Directus doesn't redact tokens in Flow logs

    Directus is a real-time API and App dashboard for managing SQL database content. Starting in version 9.0.0 and prior to version 11.9.0, when using Directus Flows with the WebHook trigger all incoming request details are logged including security sensitive dat…

  • Medium 4.0
    CVE-2025-48708 Public exploit

    gs_lib_ctx_stash_sanitized_arg in base/gslibctx.c in Artifex Ghostscript before 10.05.1 lacks argument sanitization for…

  • Low 3.2

    URI allows for userinfo Leakage in URI#join, URI#merge, and URI#+

    In the URI gem before 1.0.3 for Ruby, the URI handling methods (URI.join, URI#merge, URI#+) have an inadvertent leakage of authentication credentials because userinfo is retained even after changing the host.

  • Medium 4.4

    Cisco Application Policy Infrastructure Controller Authenticated Command Injection Due to Sensitive Disclosure Vulnerability

    A vulnerability in the implementation of the internal system processes of Cisco APIC could allow an authenticated, local attacker to access sensitive information on an affected device. To exploit this vulnerability, the attacker must have valid administrative…

  • Medium 5.1

    kube-audit-rest's example logging configuration could disclose secret values in the audit log

    kube-audit-rest is a simple logger of mutation/creation requests to the k8s api. If the "full-elastic-stack" example vector configuration was used for a real cluster, the previous values of kubernetes secrets would have been disclosed in the audit messages. T…

  • High 7.5

    OpenVPN Connect before version 3.5.0 can contain the configuration profile's clear-text private key which is logged in …

  • Medium 5.5

    In JetBrains TeamCity before 2024.12 backup file exposed user credentials and session cookies

  • Low 2.7

    Profile files from TRO600 series radios are extracted in plain-text and encrypted file formats. Profile files provide p…

  • Medium 5.5

    Windows Kernel-Mode Driver Information Disclosure Vulnerability

    Windows Kernel-Mode Driver Information Disclosure Vulnerability

  • Medium 5.9

    Apache StreamPark: Information leakage vulnerability

    In Streampark (version < 2.1.4), when a user logged in successfully, the Backend service would return "Authorization" as the front-end authentication credential. User can use this credential to request other users' information, including the administrator's u…

  • Medium 4.7

    Improper removal of sensitive information in data source export feature in Devolutions Remote Desktop Manager 2024.1.32…

  • Medium 6.0

    An improper removal of sensitive information before storage or transfer vulnerability [CWE-212] in FortiSOAR version 7.…

  • Medium 5.3

    SixLabors.ImageSharp vulnerable to data leakage

    ImageSharp is a 2D graphics API. A data leakage flaw was found in ImageSharp's JPEG and TGA decoders. This vulnerability is triggered when an attacker passes a specially crafted JPEG or TGA image file to a software using ImageSharp, potentially disclosing sen…

  • Medium 4.1

    Sensitive query parameters logged by default in OpenTelemetry.Instrumentation http and AspNetCore

    OpenTelemetry dotnet is a dotnet telemetry framework. In affected versions of `OpenTelemetry.Instrumentation.Http` and `OpenTelemetry.Instrumentation.AspNetCore` the `url.full` writes attribute/tag on spans (`Activity`) when tracing is enabled for outgoing ht…

  • High 7.5

    Information management vulnerability in the Gallery module.Successful exploitation of this vulnerability may affect ser…

  • Low 3.5

    Full path of data directory exposed to Nextcloud server users

    Nextcloud Server is an open source personal cloud server. Nextcloud Server 24.0.0 until 24.0.6 and 25.0.0 until 25.0.4, as well as Nextcloud Enterprise Server 23.0.0 until 23.0.11, 24.0.0 until 24.0.6, and 25.0.0 until 25.0.4, have an information disclosure v…

  • High 8.1

    Improper Removal of Sensitive Information Before Storage or Transfer in usememos/memos

    Improper Removal of Sensitive Information Before Storage or Transfer in GitHub repository usememos/memos prior to 0.9.1.

  • High 8.6

    Wasmtime vulnerable to data leakage between instances in the pooling allocator

    Wasmtime is a standalone runtime for WebAssembly. Prior to versions 2.0.2 and 1.0.2, there is a bug in Wasmtime's implementation of its pooling instance allocator where when a linear memory is reused for another instance the initial heap snapshot of the prior…

  • Critical 9.8

    Improper Removal of Sensitive Information Before Storage or Transfer in cockpit-hq/cockpit

    Improper Removal of Sensitive Information Before Storage or Transfer in GitHub repository cockpit-hq/cockpit prior to 2.2.2.

  • High 7.5

    Slack Morphism for Rust before 0.41.0 can accidentally leak Slack OAuth client information in application debug logs

    Slack Morphism is an async client library for Rust. Prior to 0.41.0, it was possible for Slack OAuth client information to leak in application debug logs. Stricter and more secure debug formatting was introduced in v0.41.0 for OAuth secret types to reduce the…