Skip to content
OpenAdvisories

Weakness (CWE)

CWE-209: Generation of Error Message Containing Sensitive Information

Base Draft

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

How to prevent it (7 mitigations)
  1. 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.

  2. Implementation

    Handle exceptions internally and do not display errors containing potentially sensitive information to a user.

  3. 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.

  4. Implementation, Build and Compilation

    Debugging information should not make its way into a production release.

  5. Implementation, Build and Compilation

    Debugging information should not make its way into a production release.

  6. 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.

  7. System Configuration

    Create default error pages or messages that do not leak any information.

Source: MITRE CWE-209

67 results · Clear filters · Feed

  • High 7.1

    Improper Error Handling Vulnerability in Wave 2.0

    This vulnerability exists in the Wave 2.0 due to improper exception handling for invalid inputs at certain API endpoint. An authenticated remote attacker could exploit this vulnerability by providing invalid inputs for “userId” parameter in the API request le…

  • High 7.5
    CVE-2024-39719 Public exploit

    An issue was discovered in Ollama through 0.3.14. File existence disclosure can occur via api/create. When calling the …

  • High 7.3

    x86: Deadlock in vlapic_error()

    In x86's APIC (Advanced Programmable Interrupt Controller) architecture, error conditions are reported in a status register. Furthermore, the OS can opt to receive an interrupt when a new error occurs. It is possible to configure the error interrupt with an i…

  • High 8.8

    Juju's unprivileged user running on charm node can leak any secret or relation data accessible to the local charm

    An issue was discovered in Juju that resulted in the leak of the sensitive context ID, which allows a local unprivileged attacker to access other sensitive data or relation accessible to the local charm.

  • High 8.8

    Microsoft OLE DB Driver for SQL Server Remote Code Execution Vulnerability

    Microsoft OLE DB Driver for SQL Server Remote Code Execution Vulnerability

  • High 7.5
    CVE-2024-29059 Exploited Public exploit Scanner template EPSS 99%

    .NET Framework Information Disclosure Vulnerability

    .NET Framework Information Disclosure Vulnerability

    KEV Feb 4, 2025
  • High 8.8

    ClickHouse Client Certificate Password Exposure

    Exposure of sensitive information in exceptions in ClichHouse's clickhouse-r2dbc, com.clickhouse:clickhouse-jdbc, and com.clickhouse:clickhouse-client versions less than 0.4.6 allows unauthorized users to gain access to client certificate passwords via client…

  • High 7.5

    CodeIgniter4 vulnerable to information disclosure when detailed error report is displayed in production environment

    CodeIgniter is a PHP full-stack web framework. Prior to CodeIgniter4 version 4.4.3, if an error or exception occurs, a detailed error report is displayed even if in the production environment. As a result, confidential information may be leaked. Version 4.4.3…

  • High 8.2

    league/oauth2-server key exposed in exception message when passing as string and providing invalid pass phrase

    league/oauth2-server is an implementation of an OAuth 2.0 authorization server written in PHP. Starting in version 8.3.2 and prior to version 8.5.3, servers that passed their keys to the CryptKey constructor as as string instead of a file path will have had t…

  • High 7.5

    No Exception Handling Vulnerability: Database Performance Analyzer (DPA) 2023.1

    No exception handling vulnerability which revealed sensitive or excessive information to users.

  • High 8.7

    SpiceDB binding metrics port to untrusted networks and can leak command-line flags

    SpiceDB is an open source, Google Zanzibar-inspired, database system for creating and managing security-critical application permissions. The `spicedb serve` command contains a flag named `--grpc-preshared-key` which is used to protect the gRPC API from being…

  • High 7.6

    Sentry SDK leaks sensitive session information when `sendDefaultPII` is set to `True`

    Sentry SDK is the official Python SDK for Sentry, real-time crash reporting software. When using the Django integration of versions prior to 1.14.0 of the Sentry SDK in a specific configuration it is possible to leak sensitive cookies values, including the se…

  • High 7.4
    CVE-2023-27587 Public exploit Scanner template

    ReadtoMyShoe, a web app that lets users upload articles and listen to them later, generates an error message containing…

  • High 7.5

    Apache Airflow AWS Provider: Arbitrary file read via AWS provider

    Generation of Error Message Containing Sensitive Information vulnerability in the Apache Airflow AWS Provider. This issue affects Apache Airflow AWS Provider versions before 7.2.1.

  • High 7.5

    PgHero Allows Information Disclosure Through EXPLAIN Feature

    PgHero before 3.1.0 allows Information Disclosure via EXPLAIN because query results may be present in an error message. (Depending on database user privileges, this may only be information from the database, or may be information from file contents on the dat…

  • High 7.5

    Incorrect implementation of lockout feature in Keycloak

    A flaw was found in keycloak where a brute force attack is possible even when the permanent lockout feature is enabled. This is due to a wrong error message displayed when wrong credentials are entered. The highest threat from this vulnerability is to confide…

  • High 7.5

    Valinor error messages leading to potential data exfiltration

    Valinor is a PHP library that helps to map any input into a strongly-typed value object structure. Prior to version 0.12.0, Valinor can use `Throwable#getMessage()` when it should not have permission to do so. This is a problem with cases such as an SQL excep…

  • High 7.7

    Possible leak of key's raw field if declared length is incorrect in openssh_key_parser

    openssh_key_parser is an open source Python package providing utilities to parse and pack OpenSSH private and public key files. In versions prior to 0.0.6 if a field of a key is shorter than it is declared to be, the parser raises an error with a message cont…

  • High 7.5

    MDT AutoSave Generation of Error Message Containing Sensitive Information

    An attacker can gain knowledge of a session temporary working folder where the getfile and putfile commands are used in MDT AutoSave versions prior to v6.02.06. An attacker can leverage this knowledge to provide a malicious command to the working directory wh…

  • High 8.8

    Remote code execution in Valmet DNA before Collection 2021

    A remote code execution vulnerability affecting a Valmet DNA service listening on TCP port 1517, allows an attacker to execute commands with SYSTEM privileges This issue affects: Valmet DNA versions from Collection 2012 until Collection 2021.

  • High 7.3

    Junos OS: A low privileged user can elevate their privileges to the ones of the highest privileged j-web user logged in

    A Generation of Error Message Containing Sensitive Information vulnerability in the CLI of Juniper Networks Junos OS allows a locally authenticated attacker with low privileges to elevate these to the level of any other user logged in via J-Web at this time, …

  • High 7.3

    Generation of Error Message Containing Sensitive Information in livehelperchat/livehelperchat

    livehelperchat is vulnerable to Generation of Error Message Containing Sensitive Information

  • High 7.7

    Any user can see any fields (including mailbox password) with GroupBy Dashlet

    Combodo iTop is a web based IT Service Management tool. In versions prior to 2.7.4, a non admin user can get access to many class/field values through GroupBy Dashlet error message. This issue is fixed in versions 2.7.4 and 3.0.0.

  • High 7.5

    Action Pack contains Information Disclosure / Unintended Method Execution vulnerability

    A possible information disclosure / unintended method execution vulnerability in Action Pack >= 2.0.0 when using the `redirect_to` or `polymorphic_url`helper with untrusted user input.

  • High 8.1

    ApiKey secret could be revelated on network issue

    node-etsy-client is a NodeJs Etsy ReST API Client. Applications that are using node-etsy-client and reporting client error to the end user will offer api key value too This is fixed in node-etsy-client v0.3.0 and later.

  • High 7.7

    Authorization header is not sanitized in an error object in auth0

    In auth0 (npm package) versions before 2.27.1, a DenyList of specific keys that should be sanitized from the request object contained in the error object is used. The key for Authorization header is not sanitized and in certain cases the Authorization header …

  • High 7.5

    Shopware database password is leaked to an unauthenticated users

    In Shopware before 6.2.3, the database password is leaked to an unauthenticated user when a DriverException occurs and verbose error handling is enabled.