CWE•Base•Draft•20 recent CVEs
CWE-209Generation of Error Message Containing Sensitive Information
Description
The product generates an error message that includes sensitive information about its environment, users, or associated data.
Common consequences
- Confidentiality→Read Application DataOften 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 y
Potential mitigations
- Implementation[object Object]
- ImplementationHandle exceptions internally and do not display errors containing potentially sensitive information to a user.
- ImplementationUse 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 CompilationDebugging information should not make its way into a production release.
- Implementation,Build and CompilationDebugging information should not make its way into a production release.
- System ConfigurationWhere available, configure the environment to use less verbose error messages. For example, in PHP, disable the display_errors setting during configuration, or at runtime using the error_reporting() function.
- System ConfigurationCreate default error pages or messages that do not leak any information.
Related CWEs
Recent CVEs classified under this CWE
CVE-2025-526113.12026-06-04CVE-2025-526064.32026-06-04CVE-2026-97945.32026-05-28CVE-2026-424597.52026-05-27CVE-2026-12484.32026-05-27CVE-2024-287655.32026-05-27CVE-2026-95834.32026-05-26CVE-2026-457287.52026-05-26CVE-2026-55112.72026-05-19CVE-2026-78602026-05-19CVE-2026-419357.12026-05-14CVE-2026-425527.52026-05-13CVE-2026-440025.82026-05-13CVE-2026-438737.52026-05-11CVE-2026-442265.32026-05-11CVE-2026-416447.12026-05-07CVE-2026-419315.32026-05-06CVE-2025-319605.32026-05-06CVE-2025-598533.12026-05-06CVE-2026-409693.72026-04-28