---
title: "CWE-600: Uncaught Exception in Servlet"
url: https://radicalnotion.ai/cwe/cwe-600
type: cwe
description: "The Servlet does not catch all exceptions."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-600: Uncaught Exception in Servlet

- **Abstraction:** Variant
- **Structure:** Simple
- **Status:** Draft
- **CVEs with this as primary weakness:** 1
- **Of those, in CISA KEV:** 0
- **New in 2026:** 0
- **CWE catalog version:** 4.21

## Description

The Servlet does not catch all exceptions.

## Alternate terms

- Missing Catch Block

## Modes of introduction

| Phase | Note |
| --- | --- |
| Implementation | - |

## Applicable platforms

**Languages:** Java (Undetermined)

**Technologies:** Web Server (Undetermined)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality, Availability | Read Application Data, DoS: Crash, Exit, or Restart | When a Servlet throws an exception, the default error response the Servlet container sends back to the user typically includes debugging information. This information is of great value to an attacker. For example, a stack trace might show the attacker a malformed SQL query string, the type of database being used, and the version of the application container. This information enables the attacker to target known vulnerabilities in these components. |

## Potential mitigations

### Implementation

Implement Exception blocks to handle all types of Exceptions.

## Demonstrative examples

### Example 1

The following example attempts to resolve a hostname.

Bad code:

```java
protected void doPost (HttpServletRequest req, HttpServletResponse res) throws IOException {
    String ip = req.getRemoteAddr();
    InetAddress addr = InetAddress.getByName(ip);
    ...
    out.println("hello " + addr.getHostName());
}
```

A DNS lookup failure will cause the Servlet to throw an exception.

## Real CVEs with this weakness

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2023-35123 | - | medium | 5.9 | - | No | 2024-08-14 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-248](https://radicalnotion.ai/cwe/cwe-248) | Uncaught Exception |
| Peer | [CWE-390](https://radicalnotion.ai/cwe/cwe-390) | Detection of Error Condition Without Action |
| Can precede | [CWE-209](https://radicalnotion.ai/cwe/cwe-209) | Generation of Error Message Containing Sensitive Information |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| The CERT Oracle Secure Coding Standard for Java (2011) | Do not allow exceptions to expose sensitive information | ERR01-J | - |
| Software Fault Patterns | Unchecked Status Condition | SFP4 | - |

## Frequently asked questions

### What is CWE-600?

The Servlet does not catch all exceptions.

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

1 recorded CVE is attributed to CWE-600: CVE-2023-35123.

### How do you prevent CWE-600?

Implement Exception blocks to handle all types of Exceptions.

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

Exploiting CWE-600 can lead to: Read Application Data, DoS: Crash, Exit, or Restart.

### Is CWE-600 actively exploited?

1 recorded CVE is caused by CWE-600; it is not currently in CISA's KEV catalog of actively exploited flaws.

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

---

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