BaseDraft

CWE-209Generation of Error Message Containing Sensitive Information

Category: data-exposure

Description

The product generates an error message that includes sensitive information about its environment, users, or associated data.

Common consequences· 1

  • Confidentiality — Read Application Data
    Often this will either reveal sensitive information which may be used to launch another, more focused attack or disclose private information stored in the server. For example, an attempt to exploit a path traversal weakness (CWE-22) might yield the full pathname of the installed application. In turn, this could be used to select the proper number of ".." sequences to navigate to the targeted file. An attack using SQL injection (CWE-89) might not initially succeed, but an error message could reveal the malformed query, which would expose query logic and possibly even passwords or other sensitive information used within the query.

Potential mitigations· 5

  • [Implementation]
  • [Implementation]Handle exceptions internally and do not display errors containing potentially sensitive information to a user.
  • [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, Build and Compilation]Debugging information should not make its way into a production release.
  • [Implementation, Build and Compilation]Debugging information should not make its way into a production release.

Related CAPEC attack patterns· 4

CAPEC-215CAPEC-463CAPEC-54CAPEC-7

References

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

Exploits (incoming)4

TypeTargetConfidenceTier
AttackPatternPadding Oracle Crypto Attackcapec-463100%live
AttackPatternFuzzing for application mappingcapec-215100%live
AttackPatternQuery System for Informationcapec-54100%live
AttackPatternBlind SQL Injectioncapec-7100%live

Compliance frameworks addressing this (incoming)1

TypeTargetConfidenceTier
ComplianceControlowasp_api_top10-api09100%live

(incoming)8

TypeTargetConfidenceTier
VulnerabilityCVE-2025-1395cve-2025-13950%live
VulnerabilityCVE-2025-31998cve-2025-319980%live
VulnerabilityCVE-2025-46658cve-2025-466580%live
VulnerabilityWing FTP Server Information Disclosure Vulnerabilitycve-2025-478130%live
VulnerabilityCVE-2025-68110cve-2025-681100%live
VulnerabilityCVE-2026-34045cve-2026-340450%live
KEVEntryMicrosoft .NET Framework Information Disclosure Vulnerabilitykev-cve-2024-290590%live
KEVEntryWing FTP Server Information Disclosure Vulnerabilitykev-cve-2025-478130%live

Related by meaning· 6

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

CWE
Self-generated Error Message Containing Sensitive Information
CWE
Externally-Generated Error Message Containing Sensitive Information
CWE
Exposure of Sensitive Information to an Unauthorized Actor
CWE
Exposure of Sensitive System Information to an Unauthorized Control Sphere
CWE
Insertion of Sensitive Information into Log File
CWE
Insertion of Sensitive Information Into Debugging Code
Sourced from MITRE CWE 4.20. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.