BaseIncomplete

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

Category: data-exposure

Description

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.

Common consequences· 1

  • Confidentiality — Read Files or Directories, Read Application Data
    Sensitive data may be exposed to an unauthorized actor in another control sphere. This may have a wide range of secondary consequences that will depend on what data is exposed. One possibility is the exposure of system data - such as file locations, software versions, or device data - that allow an attacker to craft a specific, more effective attack. Alternately, insufficient redaction of Private Personal Information (PPI), Personally Identifiable Information (PII), or other types of information might not harm the secure operation of the product itself, but could be violations of expectations by the product's users.

Potential mitigations· 5

  • [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.
  • [Architecture and Design]
  • [Implementation, Operation]
  • [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.
  • [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.

Related CAPEC attack patterns· 1

CAPEC-168

References

  1. https://cwe.mitre.org/data/definitions/212.html

Exploits (incoming)1

TypeTargetConfidenceTier
AttackPatternWindows ::DATA Alternate Data Streamcapec-168100%live

Compliance frameworks addressing this (incoming)2

TypeTargetConfidenceTier
ComplianceControliso27701-a.7.4.5100%live
ComplianceControliso27701-a.7.4.195%live

(incoming)2

TypeTargetConfidenceTier
VulnerabilityCVE-2026-32891cve-2026-328910%live
VulnerabilityCVE-2026-42880cve-2026-428800%live

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CWE
Exposure of Sensitive Information to an Unauthorized Actor
CWE
Insecure Storage of Sensitive Information
CWE
Insufficiently Protected Credentials
CWE
Missing Encryption of Sensitive Data
CWE
Exposure of Sensitive System Information to an Unauthorized Control Sphere
CWE
Improper Access Control
Sourced from MITRE CWE 4.20. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.