CWEweakness

CWE-209 Generation of Error Message Containing Sensitive Information

High Official page ↗
Abstraction
Base
Structure
Simple
Status
Draft
Likelihood of exploit
High
Languages
Go, Java, Not Language-Specific, PHP, Python
CWE version
5.0

Description

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

Common consequences

• 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

• [Implementation] Ensure that error messages only contain minimal details that are useful to the intended audience and no one else. The messages need to strike the balance between being too cryptic (which can confuse users) or being too detailed (which may reveal more than intended). The messages should not reveal the methods that were used to determine the error. Attackers can use detailed information to refine or optimize their original attack, thereby increasing their chances of success. If errors must be captured in some detail, record them in log messages, but consider what could occur if the log messages can be viewed by attackers. Highly sensitive information such as passwords should never be saved to log files. Avoid inconsistent messaging that might accidentally tip off an attacker about internal state, such as whether a user account exists or not. • [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. • [System Configuration] Where 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 Configuration] Create default error pages or messages that do not leak any information.

Detection methods

• Manual Analysis: This weakness generally requires domain-specific interpretation using manual analysis. However, the number of potential error conditions may be too large to cover completely within limited time constraints. • Automated Analysis: Automated methods may be able to detect certain idioms automatically, such as exposed stack traces or pathnames, but violation of business rules or privacy requirements is not typically feasible. • Automated Dynamic Analysis: This weakness can be detected using dynamic tools and techniques that interact with the software using large test suites with many diverse inputs, such as fuzz testing (fuzzing), robustness testing, and fault injection. The software's operation may slow down, but it should not become unstable, crash, or generate incorrect results. Error conditions may be triggered with a stress-test by calling the software simultaneously from a large number of threads or processes, and look for evidence of any unexpected behavior. • Manual Dynamic Analysis: Identify error conditions that are not likely to occur during normal usage and trigger them. For example, run the program under low memory conditions, run with insufficient privileges or permissions, interrupt a transaction before it is completed, or disable connectivity to basic network services such as DNS. Monitor the software for any unexpected behavior. If you trigger an unhandled exception or similar error that was discovered and handled by the application's environment, it may still indicate unexpected conditions that were not handled by the application itself. • Automated Static Analysis: Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

Observed examples

• CVE-2008-2049: POP3 server reveals a password in an error message after multiple APOP commands are sent. Might be resultant from another weakness. • CVE-2007-5172: Program reveals password in error message if attacker can trigger certain database errors. • CVE-2008-4638: Composite: application running with high privileges (CWE-250) allows user to specify a restricted file to process, which generates a parsing error that leaks the contents of the file (CWE-209). • CVE-2008-1579: Existence of user names can be determined by requesting a nonexistent blog and reading the error message. • CVE-2007-1409: Direct request to library file in web application triggers pathname leak in error message. • CVE-2008-3060: Malformed input to login page causes leak of full path when IMAP call fails. • CVE-2005-0603: Malformed regexp syntax leads to information exposure in error message. • CVE-2017-9615: verbose logging stores admin credentials in a world-readable log file • CVE-2018-1999036: SSH password for private key stored in build log

Related

Attack pattern · CAPEC (4)

  • CAPEC-215 Fuzzing for application mapping attack pattern
  • CAPEC-463 Padding Oracle Crypto Attack attack pattern
  • CAPEC-54 Query System for Information attack pattern
  • CAPEC-7 Blind SQL Injection attack pattern

Observed example · CVE (9)

  • CVE-2018-1999036 An exposure of sensitive information vulnerability exists in Jenkins SSH Agent Plugin 1.15 and earlier in SSHAgentStepExecution.java that… vulnerability
  • CVE-2017-9615 Password exposure in Cognito Software Moneyworks 8.0.3 and earlier allows attackers to gain administrator access to all data, because… vulnerability
  • CVE-2008-4638 qioadmin in the Quick I/O for Database feature in Symantec Veritas File System (VxFS) on HP-UX, and before 5.0 MP3 on Solaris, Linux, and… vulnerability
  • CVE-2008-3060 V-webmail 1.5.0 allows remote attackers to obtain sensitive information via (1) malformed input in the login page… vulnerability
  • CVE-2008-1579 Wiki Server in Apple Mac OS X 10.5 before 10.5.3 allows remote attackers to obtain sensitive information (user names) by reading the error… vulnerability
  • CVE-2008-2049 The POP3 server (EPSTPOP3S.EXE) 4.22 in E-Post Mail Server 4.10 allows remote attackers to obtain sensitive information via multiple… vulnerability
  • CVE-2007-5172 Quicksilver Forums before 1.4.1 allows remote attackers to obtain sensitive information by causing unspecified connection errors, which… vulnerability
  • CVE-2007-1409 WordPress allows remote attackers to obtain sensitive information via a direct request for wp-admin/admin-functions.php, which reveals the… vulnerability
  • CVE-2005-0603 viewtopic.php in phpBB 2.0.12 and earlier allows remote attackers to obtain sensitive information via a highlight parameter containing… vulnerability

Child of · CWE (2)

  • CWE-200 Exposure of Sensitive Information to an Unauthorized Actor weakness
  • CWE-755 Improper Handling of Exceptional Conditions weakness

Referenced by CAPEC · weakness (4)

  • CAPEC-215 Fuzzing for application mapping attack pattern
  • CAPEC-463 Padding Oracle Crypto Attack attack pattern
  • CAPEC-54 Query System for Information attack pattern
  • CAPEC-7 Blind SQL Injection attack pattern

Referenced by CVE · weakness (663)

  • CVE-2026-118272 A vulnerability was detected in a2ui-project a2ui up to 0.10.6. vulnerability
  • CVE-2026-118643 n8n before 1.123.85, 2.x before 2.43.5, and 2.44.x before 2.44.1 stores credential secrets in execution error data when operations fail in… vulnerability
  • CVE-2026-67080 HCL BigFix AEX is affected by an Information Disclosure vulnerability due to improper handling of errors or exceptional conditions. vulnerability
  • CVE-2026-108316 Tanium addressed an information disclosure vulnerability in Tanium Server. vulnerability
  • CVE-2026-101259 Generation of Error Message Containing Sensitive Information vulnerability in Apache Camel CoAP component. vulnerability
  • CVE-2026-116477 A security vulnerability has been detected in a2aproject a2a-dotnet up to 1.0.0-preview2. vulnerability
  • CVE-2026-116478 A vulnerability was detected in a2aproject a2a-go up to 2.4.0. vulnerability
  • CVE-2026-116479 A flaw has been found in a2aproject a2a-java up to 1.2.0.Final. vulnerability
  • CVE-2026-114348 webpack-dev-server is a development server that provides live reloading for webpack projects. vulnerability
  • CVE-2026-115496 Overly informative error messages in the catalog functionality of KNIME Business Hub prior to version 1.18.5 may allow an authenticated… vulnerability
  • CVE-2026-112947 Vite is a frontend tooling framework for JavaScript. vulnerability
  • CVE-2026-113705 A vulnerability was determined in a2aproject a2a-rs up to 0.4.3. vulnerability
  • CVE-2026-3628 IBM Concert 1.0 through 3.0.0 allows information disclosure through exposure of schema suggestions. vulnerability
  • CVE-2026-84180 Generation of Error Message Containing Sensitive Information vulnerability in Apache Camel Knative component. vulnerability
  • CVE-2026-85246 Generation of Error Message Containing Sensitive Information vulnerability in Apache Camel Mina component. vulnerability
  • CVE-2026-85257 Generation of Error Message Containing Sensitive Information vulnerability in Apache Camel CXF component. vulnerability
  • CVE-2026-85315 Generation of Error Message Containing Sensitive Information vulnerability in Apache Camel gRPC component. vulnerability
  • CVE-2026-110889 Generation of Error Message Containing Sensitive Information vulnerability in Gantry Gantry 5 Framework gantry5 allows Retrieve Embedded… vulnerability
  • CVE-2026-86607 Internal Application Information Exposure Vulnerability in Hitachi Ops Center Administrator. vulnerability
  • CVE-2026-91882 Dell Terraform Provider for OME, versions 1.0.0 through 1.2.3, contains an Insertion of Sensitive Information into Externally-Accessible… vulnerability
  • CVE-2026-14909 IBM WebSphere Application Server - Liberty 17.0.0.3 through 26.0.0.9 is affected by an information disclosure vulnerability that allows an… vulnerability
  • CVE-2026-52394 DeepSeek V4 is vulnerable to Incorrect Access Control via a crafted input. vulnerability
  • CVE-2026-83786 Generation of error message containing sensitive information in Windows NTFS allows an authorized attacker to disclose information locally. vulnerability
  • CVE-2026-85115 A vulnerability has been identified in .NET Client Library for SIMATIC S7 Webserver API (All versions < V3.3.62). vulnerability
  • CVE-2026-105283 Generation of Error Message Containing Sensitive Information vulnerability in ash-project ash_typescript allows an unauthenticated attacker… vulnerability
  • CVE-2026-75597 pyLoad is a free and open-source download manager written in Python. vulnerability
  • CVE-2026-78021 Dell Secure Connect Gateway (SCG) Policy Manager, versions prior to 5.34.00.16, contains a Generation of Error Message Containing Sensitive… vulnerability
  • CVE-2026-105828 Parse Server 8.2.2 before 8.6.92 and 9.0.0 before 9.10.1-alpha.12 contains an information disclosure vulnerability in which GraphQL… vulnerability
  • CVE-2026-101029 Gitea's repository migration and pull mirror egress checks could be bypassed with a hostname that returns multiple DNS answers, because the… vulnerability
  • CVE-2026-105707 A security vulnerability has been detected in uptrace up to 2.1.0-beta.8. vulnerability
Show all 663 ›

Referenced by CWE · can also be (2)

  • CWE-201 Insertion of Sensitive Information Into Sent Data weakness
  • CWE-81 Improper Neutralization of Script in an Error Message Web Page weakness

Referenced by CWE · can precede (2)

  • CWE-600 Uncaught Exception in Servlet weakness
  • CWE-756 Missing Custom Error Page weakness

Referenced by CWE · child of (3)

  • CWE-210 Self-generated Error Message Containing Sensitive Information weakness
  • CWE-211 Externally-Generated Error Message Containing Sensitive Information weakness
  • CWE-550 Server-generated Error Message Containing Sensitive Information weakness

Referenced by CWE · has member (2)

  • CWE-1468 Weaknesses Addressed by the OWASP Golang Secure Coding Practices Guide view
  • CWE-884 CWE Cross-section view

Referenced by CWE · peer of (1)

  • CWE-1295 Debug Messages Revealing Unnecessary Information weakness

Referenced by OWASP · mapped cwe (4)

  • A10:2025 Mishandling of Exceptional Conditions Top 10 2025
  • API8:2023 Security Misconfiguration API Security Top 10 2023
  • A04:2021 Insecure Design Top 10 2021
  • CS-Authorization Authorization Cheat Sheet Cheat Sheet