---
title: "CWE-200: Exposure of Sensitive Information to an Unauthorized Actor"
url: https://radicalnotion.ai/cwe/cwe-200
type: cwe
description: "The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-200: Exposure of Sensitive Information to an Unauthorized Actor

- **Abstraction:** Class
- **Structure:** Simple
- **Status:** Draft
- **Likelihood of exploit:** High
- **CVEs with this as primary weakness:** 11,799
- **Of those, in CISA KEV:** 19
- **New in 2026:** 2,543
- **CWE catalog version:** 4.21

## Description

The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.

There are many different kinds of mistakes that introduce information exposures. The severity of the error can range widely, depending on the context in which the product operates, the type of sensitive information that is revealed, and the benefits it may provide to an attacker. Some kinds of sensitive information include:

private, personal information, such as personal messages, financial data, health records, geographic location, or contact details

system status and environment, such as the operating system and installed packages

business secrets and intellectual property

network status and configuration

the product's own code or internal state

metadata, e.g. logging of connections or message headers

indirect information, such as a discrepancy between two internal operations that can be observed by an outsider

Information might be sensitive to different parties, each of which may have their own expectations for whether the information should be protected. These parties include:

the product's own users

people or organizations whose information is created or used by the product, even if they are not direct product users

the product's administrators, including the admins of the system(s) and/or networks on which the product operates

the developer

Information exposures can occur in different ways:

the code explicitly inserts sensitive information into resources or messages that are intentionally made accessible to unauthorized actors, but should not contain the information - i.e., the information should have been "scrubbed" or "sanitized"

a different weakness or mistake indirectly inserts the sensitive information into resources, such as a web script error revealing the full system path of the program.

the code manages resources that intentionally contain sensitive information, but the resources are unintentionally made accessible to unauthorized actors. In this case, the information exposure is resultant - i.e., a different weakness enabled the access to the information in the first place.

## Alternate terms

- **Information Disclosure:** This term is frequently used in vulnerability advisories to describe a consequence or technical impact, for any vulnerability that has a loss of confidentiality. Often, CWE-200 can be misused to represent the loss of confidentiality, even when the mistake - i.e., the weakness - is not directly related to the mishandling of the information itself, such as an out-of-bounds read that accesses sensitive memory contents; here, the out-of-bounds read is the primary weakness, not the disclosure of the memory. In addition, this phrase is also used frequently in policies and legal documents, but it does not refer to any disclosure of security-relevant information.
- **Information Leak:** This is a frequently used term, however the "leak" term has multiple uses within security. In some cases it deals with the accidental exposure of information from a different weakness, but in other cases (such as "memory leak"), this deals with improper control of resources (with a different root-cause weakness), which can lead to exhaustion. As a result, CWE is actively avoiding usage of the "leak" term.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Architecture and Design | - |
| Implementation | - |

## Applicable platforms

**Technologies:** Web Based (Undetermined), Mobile (Undetermined)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality | Read Application Data | - |

## Potential mitigations

### Architecture and Design (Separation of Privilege)

Compartmentalize the system to have "safe" areas where trust boundaries can be unambiguously drawn. Do not allow sensitive data to go outside of the trust boundary and always be careful when interfacing with a compartment outside of the safe area.

Ensure that appropriate compartmentalization is built into the system design, and the compartmentalization allows for and reinforces privilege separation functionality. Architects and designers should rely on the principle of least privilege to decide the appropriate time to use privileges and the time to drop privileges.

## Detection methods

### Automated Static Analysis - Binary or Bytecode

According to SOAR \[REF-1479\], the following detection techniques may be useful:

Cost effective for partial coverage:

- Bytecode Weakness Analysis - including disassembler + source code weakness analysis
- Inter-application Flow Analysis

Effectiveness: SOAR Partial

### Dynamic Analysis with Automated Results Interpretation

According to SOAR \[REF-1479\], the following detection techniques may be useful:

Highly cost effective:

- Web Application Scanner
- Web Services Scanner
- Database Scanners

Effectiveness: High

### Dynamic Analysis with Manual Results Interpretation

According to SOAR \[REF-1479\], the following detection techniques may be useful:

Cost effective for partial coverage:

- Fuzz Tester
- Framework-based Fuzzer
- Automated Monitored Execution
- Monitored Virtual Environment - run potentially malicious code in sandbox / wrapper / virtual machine, see if it does anything suspicious

Effectiveness: SOAR Partial

### Manual Static Analysis - Source Code

According to SOAR \[REF-1479\], the following detection techniques may be useful:

Highly cost effective:

- Manual Source Code Review (not inspections)

Effectiveness: High

### Automated Static Analysis - Source Code

According to SOAR \[REF-1479\], the following detection techniques may be useful:

Highly cost effective:

Cost effective for partial coverage:

- Context-configured Source Code Weakness Analyzer
- Source code Weakness Analyzer

Effectiveness: High

### Architecture or Design Review

According to SOAR \[REF-1479\], the following detection techniques may be useful:

Highly cost effective:

Cost effective for partial coverage:

- Formal Methods / Correct-By-Construction
- Attack Modeling
- Inspection (IEEE 1028 standard) (can apply to requirements, design, source code, etc.)

Effectiveness: High

## Demonstrative examples

### Example 1

The following code checks validity of the supplied username and password and notifies the user of a successful or failed login.

Bad code:

```perl
my $username=param('username');
my $password=param('password');

if (IsValidUsername($username) == 1)
{
    if (IsValidPassword($username, $password) == 1)
    {
        print "Login Successful";
    }
    else
    {
        print "Login Failed - incorrect password";
    }
}
else
{
    print "Login Failed - unknown username";
}
```

Result code:

```
"Login Failed - incorrect username or password"
```

### Example 2

This code tries to open a database connection, and prints any exceptions that occur.

Bad code:

```php
try {
    openDbConnection();
}
//print exception message that includes exception message and configuration file location
catch (Exception $e) {
    echo 'Caught exception: ', $e->getMessage(), '\n';
    echo 'Check credentials in config file at: ', $Mysql_config_location, '\n';
}
```

If an exception occurs, the printed message exposes the location of the configuration file the script is using. An attacker can use this information to target the configuration file (perhaps exploiting a Path Traversal weakness). If the file can be read, the attacker could gain credentials for accessing the database. The attacker may also be able to replace the file with a malicious one, causing the application to use an arbitrary database.

### Example 3

In the example below, the method getUserBankAccount retrieves a bank account object from a database using the supplied username and account number to query the database. If an SQLException is raised when querying the database, an error message is created and output to a log file.

Bad code:

```java
public BankAccount getUserBankAccount(String username, String accountNumber) {
    BankAccount userAccount = null;
    String query = null;
    try {
        if (isAuthorizedUser(username)) {
            query = "SELECT * FROM accounts WHERE owner = "
            + username + " AND accountID = " + accountNumber;
            DatabaseManager dbManager = new DatabaseManager();
            Connection conn = dbManager.getConnection();
            Statement stmt = conn.createStatement();
            ResultSet queryResult = stmt.executeQuery(query);
            userAccount = (BankAccount)queryResult.getObject(accountNumber);
        }
    } catch (SQLException ex) {
        String logMessage = "Unable to retrieve account information from database,\nquery: " + query;
        Logger.getLogger(BankManager.class.getName()).log(Level.SEVERE, logMessage, ex);
    }
    return userAccount;
}
```

The error message that is created includes information about the database query that may contain sensitive information about the database or query logic. In this case, the error message will expose the table name and column names used in the database. This data could be used to simplify other attacks, such as SQL injection (CWE-89) to directly access the database.

### Example 4

This code stores location information about the current user:

Bad code:

```java
locationClient = new LocationClient(this, this, this);
locationClient.connect();
currentUser.setLocation(locationClient.getLastLocation());
...

catch (Exception e) {
    AlertDialog.Builder builder = new AlertDialog.Builder(this);
    builder.setMessage("Sorry, this application has experienced an error.");
    AlertDialog alert = builder.create();
    alert.show();
    Log.e("ExampleActivity", "Caught exception: " + e + " While on User:" + User.toString());
}
```

When the application encounters an exception it will write the user object to the log. Because the user object contains location information, the user's location is also written to the log.

### Example 5

The following is an actual MySQL error statement:

Result code:

```sql
Warning: mysql_pconnect(): Access denied for user: 'root@localhost' (Using password: N1nj4) in /usr/local/www/wi-data/includes/database.inc on line 4
```

The error clearly exposes the database credentials.

### Example 6

This code displays some information on a web page.

Bad code:

```jsp
Social Security Number: <%= ssn %></br>Credit Card Number: <%= ccn %>
```

The code displays a user's credit card and social security numbers, even though they aren't absolutely necessary.

### Example 7

The following program changes its behavior based on a debug flag.

Bad code:

```jsp
<% if (Boolean.getBoolean("debugEnabled")) {
    %>
    User account number: <%= acctNo %>
    <%
    } %>
```

The code writes sensitive debug information to the client browser if the "debugEnabled" flag is set to true .

### Example 8

This code uses location to determine the user's current US State location.

Bad code:

```xml
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
```

Bad code:

```java
locationClient = new LocationClient(this, this, this);
locationClient.connect();
Location userCurrLocation;
userCurrLocation = locationClient.getLastLocation();
deriveStateFromCoords(userCurrLocation);
```

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2022-31162 | Rust library leaks Oauth client details in application debug logs |
| CVE-2021-25476 | Digital Rights Management (DRM) capability for mobile platform leaks pointer information, simplifying ASLR bypass |
| CVE-2001-1483 | Enumeration of valid usernames based on inconsistent responses |
| CVE-2001-1528 | Account number enumeration via inconsistent responses. |
| CVE-2004-2150 | User enumeration via discrepancies in error messages. |
| CVE-2005-1205 | Telnet protocol allows servers to obtain sensitive environment information from clients. |
| CVE-2002-1725 | Script calls phpinfo(), revealing system configuration to web user |
| CVE-2002-0515 | Product sets a different TTL when a port is being filtered than when it is not being filtered, which allows remote attackers to identify filtered ports by comparing TTLs. |
| CVE-2004-0778 | Version control system allows remote attackers to determine the existence of arbitrary files and directories via the -X command for an alternate history file, which causes different error messages to be returned. |
| CVE-2000-1117 | Virtual machine allows malicious web site operators to determine the existence of files on the client by measuring delays in the execution of the getSystemResource method. |
| CVE-2003-0190 | Product immediately sends an error message when a user does not exist, which allows remote attackers to determine valid usernames via a timing attack. |
| 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-2007-1409 | Direct request to library file in web application triggers pathname leak in error message. |
| CVE-2005-0603 | Malformed regexp syntax leads to information exposure in error message. |
| CVE-2004-2268 | Password exposed in debug information. |
| CVE-2003-1078 | FTP client with debug option enabled shows password to the screen. |
| CVE-2022-0708 | Collaboration platform does not clear team emails in a response, allowing leak of email addresses |

## Real CVEs with this weakness (sample of 12 of 11,799)

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2022-20821 | Cisco IOS XR Software Health Check Open Port Vulnerability | high | 8.8 | - | Yes | 2022-05-26 |
| CVE-2025-31125 | Vite has a \`server.fs.deny\` bypassed for \`inline\` and \`raw\` with \`?import\` query | high | 8.7 | - | Yes | 2025-03-31 |
| CVE-2024-24919 | Information disclosure | high | 8.7 | - | Yes | 2024-05-28 |
| CVE-2023-49103 | ownCloud graphapi Information Disclosure Vulnerability | high | 8.7 | - | Yes | 2023-11-21 |
| CVE-2023-28432 | Minio Information Disclosure in Cluster Deployment | high | 8.7 | - | Yes | 2023-03-22 |
| CVE-2022-36537 | ZK Framework vulnerable to malicious POST | high | 8.7 | - | Yes | 2022-08-26 |
| CVE-2020-3259 | Cisco Adaptive Security Appliance Software and Firepower Threat Defense Software Web Services Information Disclosure Vulnerability | high | 8.7 | - | Yes | 2020-05-06 |
| CVE-2016-6415 | IKEv1 Information Disclosure Vulnerability in Multiple Cisco Products | high | 8.7 | - | Yes | 2016-09-19 |
| CVE-2015-5317 | Jenkins discloses project names via fingerprints | high | 8.7 | - | Yes | 2015-11-25 |
| CVE-2008-0655 | Adobe Acrobat and Reader Unspecified Vulnerability | high | 8.6 | - | Yes | 2008-02-07 |
| CVE-2015-0310 | Adobe Flash Player ASLR Bypass Vulnerability | high | 8.5 | - | Yes | 2015-01-23 |
| CVE-2018-5430 | TIBCO JasperReports Server Information Disclosure Vulnerability | high | 8.3 | - | Yes | 2018-04-17 |

## Related attack patterns (CAPEC)

- [CAPEC-116](https://radicalnotion.ai/capec/capec-116): Excavation
- [CAPEC-13](https://radicalnotion.ai/capec/capec-13): Subverting Environment Variable Values
- [CAPEC-169](https://radicalnotion.ai/capec/capec-169): Footprinting
- [CAPEC-22](https://radicalnotion.ai/capec/capec-22): Exploiting Trust in Client
- [CAPEC-224](https://radicalnotion.ai/capec/capec-224): Fingerprinting
- [CAPEC-285](https://radicalnotion.ai/capec/capec-285): ICMP Echo Request Ping
- [CAPEC-287](https://radicalnotion.ai/capec/capec-287): TCP SYN Scan
- [CAPEC-290](https://radicalnotion.ai/capec/capec-290): Enumerate Mail Exchange (MX) Records
- [CAPEC-291](https://radicalnotion.ai/capec/capec-291): DNS Zone Transfers
- [CAPEC-292](https://radicalnotion.ai/capec/capec-292): Host Discovery
- [CAPEC-293](https://radicalnotion.ai/capec/capec-293): Traceroute Route Enumeration
- [CAPEC-294](https://radicalnotion.ai/capec/capec-294): ICMP Address Mask Request
- [CAPEC-295](https://radicalnotion.ai/capec/capec-295): Timestamp Request
- [CAPEC-296](https://radicalnotion.ai/capec/capec-296): ICMP Information Request
- [CAPEC-297](https://radicalnotion.ai/capec/capec-297): TCP ACK Ping
- [CAPEC-298](https://radicalnotion.ai/capec/capec-298): UDP Ping
- [CAPEC-299](https://radicalnotion.ai/capec/capec-299): TCP SYN Ping
- [CAPEC-300](https://radicalnotion.ai/capec/capec-300): Port Scanning
- [CAPEC-301](https://radicalnotion.ai/capec/capec-301): TCP Connect Scan
- [CAPEC-302](https://radicalnotion.ai/capec/capec-302): TCP FIN Scan
- [CAPEC-303](https://radicalnotion.ai/capec/capec-303): TCP Xmas Scan
- [CAPEC-304](https://radicalnotion.ai/capec/capec-304): TCP Null Scan
- [CAPEC-305](https://radicalnotion.ai/capec/capec-305): TCP ACK Scan
- [CAPEC-306](https://radicalnotion.ai/capec/capec-306): TCP Window Scan
- [CAPEC-307](https://radicalnotion.ai/capec/capec-307): TCP RPC Scan
- [CAPEC-308](https://radicalnotion.ai/capec/capec-308): UDP Scan
- [CAPEC-309](https://radicalnotion.ai/capec/capec-309): Network Topology Mapping
- [CAPEC-310](https://radicalnotion.ai/capec/capec-310): Scanning for Vulnerable Software
- [CAPEC-312](https://radicalnotion.ai/capec/capec-312): Active OS Fingerprinting
- [CAPEC-313](https://radicalnotion.ai/capec/capec-313): Passive OS Fingerprinting
- [CAPEC-317](https://radicalnotion.ai/capec/capec-317): IP ID Sequencing Probe
- [CAPEC-318](https://radicalnotion.ai/capec/capec-318): IP 'ID' Echoed Byte-Order Probe
- [CAPEC-319](https://radicalnotion.ai/capec/capec-319): IP (DF) 'Don't Fragment Bit' Echoing Probe
- [CAPEC-320](https://radicalnotion.ai/capec/capec-320): TCP Timestamp Probe
- [CAPEC-321](https://radicalnotion.ai/capec/capec-321): TCP Sequence Number Probe
- [CAPEC-322](https://radicalnotion.ai/capec/capec-322): TCP (ISN) Greatest Common Divisor Probe
- [CAPEC-323](https://radicalnotion.ai/capec/capec-323): TCP (ISN) Counter Rate Probe
- [CAPEC-324](https://radicalnotion.ai/capec/capec-324): TCP (ISN) Sequence Predictability Probe
- [CAPEC-325](https://radicalnotion.ai/capec/capec-325): TCP Congestion Control Flag (ECN) Probe
- [CAPEC-326](https://radicalnotion.ai/capec/capec-326): TCP Initial Window Size Probe
- [CAPEC-327](https://radicalnotion.ai/capec/capec-327): TCP Options Probe
- [CAPEC-328](https://radicalnotion.ai/capec/capec-328): TCP 'RST' Flag Checksum Probe
- [CAPEC-329](https://radicalnotion.ai/capec/capec-329): ICMP Error Message Quoting Probe
- [CAPEC-330](https://radicalnotion.ai/capec/capec-330): ICMP Error Message Echoing Integrity Probe
- [CAPEC-472](https://radicalnotion.ai/capec/capec-472): Browser Fingerprinting
- [CAPEC-497](https://radicalnotion.ai/capec/capec-497): File Discovery
- [CAPEC-508](https://radicalnotion.ai/capec/capec-508): Shoulder Surfing
- [CAPEC-573](https://radicalnotion.ai/capec/capec-573): Process Footprinting
- [CAPEC-574](https://radicalnotion.ai/capec/capec-574): Services Footprinting
- [CAPEC-575](https://radicalnotion.ai/capec/capec-575): Account Footprinting
- [CAPEC-576](https://radicalnotion.ai/capec/capec-576): Group Permission Footprinting
- [CAPEC-577](https://radicalnotion.ai/capec/capec-577): Owner Footprinting
- [CAPEC-59](https://radicalnotion.ai/capec/capec-59): Session Credential Falsification through Prediction
- [CAPEC-60](https://radicalnotion.ai/capec/capec-60): Reusing Session IDs (aka Session Replay)
- [CAPEC-616](https://radicalnotion.ai/capec/capec-616): Establish Rogue Location
- [CAPEC-643](https://radicalnotion.ai/capec/capec-643): Identify Shared Files/Directories on System
- [CAPEC-646](https://radicalnotion.ai/capec/capec-646): Peripheral Footprinting
- [CAPEC-651](https://radicalnotion.ai/capec/capec-651): Eavesdropping
- [CAPEC-79](https://radicalnotion.ai/capec/capec-79): Using Slashes in Alternate Encoding

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-668](https://radicalnotion.ai/cwe/cwe-668) | Exposure of Resource to Wrong Sphere |
| Child | [CWE-201](https://radicalnotion.ai/cwe/cwe-201) | Insertion of Sensitive Information Into Sent Data |
| Child | [CWE-203](https://radicalnotion.ai/cwe/cwe-203) | Observable Discrepancy |
| Child | [CWE-209](https://radicalnotion.ai/cwe/cwe-209) | Generation of Error Message Containing Sensitive Information |
| Child | [CWE-213](https://radicalnotion.ai/cwe/cwe-213) | Exposure of Sensitive Information Due to Incompatible Policies |
| Child | [CWE-215](https://radicalnotion.ai/cwe/cwe-215) | Insertion of Sensitive Information Into Debugging Code |
| Child | [CWE-359](https://radicalnotion.ai/cwe/cwe-359) | Exposure of Private Personal Information to an Unauthorized Actor |
| Child | [CWE-497](https://radicalnotion.ai/cwe/cwe-497) | Exposure of Sensitive System Information to an Unauthorized Control Sphere |
| Child | [CWE-532](https://radicalnotion.ai/cwe/cwe-532) | Insertion of Sensitive Information into Log File |
| Child | [CWE-538](https://radicalnotion.ai/cwe/cwe-538) | Insertion of Sensitive Information into Externally-Accessible File or Directory |
| Child | [CWE-1273](https://radicalnotion.ai/cwe/cwe-1273) | Device Unlock Credential Sharing |
| Related | [CWE-498](https://radicalnotion.ai/cwe/cwe-498) | Cloneable Class Containing Sensitive Information |
| Related | [CWE-499](https://radicalnotion.ai/cwe/cwe-499) | Serializable Class Containing Sensitive Data |
| Related | [CWE-1272](https://radicalnotion.ai/cwe/cwe-1272) | Sensitive Information Uncleared Before Debug/Power State Transition |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| PLOVER | Information Leak (information disclosure) | - | - |
| OWASP Top Ten 2007 | Information Leakage and Improper Error Handling | A6 | CWE More Specific |
| WASC | Information Leakage | 13 | - |

## Frequently asked questions

### What is CWE-200?

The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.

### What CVEs are caused by CWE-200?

11,799 recorded CVEs are attributed to CWE-200, including CVE-2022-20821, CVE-2025-31125 and CVE-2024-24919. 19 are listed in CISA's Known Exploited Vulnerabilities (KEV) catalog.

### Is CWE-200 part of the OWASP Top 10?

CWE-200 maps to OWASP Top Ten 2007: Information Leakage and Improper Error Handling (A6) in the OWASP security taxonomy.

### How do you prevent CWE-200?

Compartmentalize the system to have "safe" areas where trust boundaries can be unambiguously drawn. Do not allow sensitive data to go outside of the trust boundary and always be careful when interfacing with a compartment outside of the safe area.

### How is CWE-200 detected?

Automated Static Analysis - Binary or Bytecode: According to SOAR, the following detection techniques may be useful:

### What are the consequences of CWE-200?

Exploiting CWE-200 can lead to: Read Application Data.

### Is CWE-200 actively exploited?

Yes. 19 CWE-200 vulnerabilities are in CISA's KEV catalog of actively exploited flaws, out of 11,799 recorded CVEs.

Primary source: [MITRE CWE](https://cwe.mitre.org/data/definitions/200.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/cwe/cwe-200). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
