---
title: "CWE-617: Reachable Assertion"
url: https://radicalnotion.ai/cwe/cwe-617
type: cwe
description: "The product contains an assert() or similar statement that can be triggered by an attacker, which leads to an application exit or other behavior that is more severe than necessary."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-617: Reachable Assertion

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

## Description

The product contains an assert() or similar statement that can be triggered by an attacker, which leads to an application exit or other behavior that is more severe than necessary.

## Alternate terms

- assertion failure

## Modes of introduction

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

## Applicable platforms

**Languages:** C (Sometimes), Java (Undetermined), Python (Undetermined), Rust (Undetermined)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Availability | DoS: Crash, Exit, or Restart | While assertion is good for catching logic errors and reducing the chances of reaching more serious vulnerability conditions, an attacker can still cause a denial of service if they can trigger an assert statement, and if the scope of the assert() extends beyond the attacker's own session. For example, if a server handles multiple simultaneous connections, if an assert() occurs in one single connection that causes all other connections to be dropped, this could be a significant denial of service. |

## Potential mitigations

### Implementation

If the assertion statement is required (e.g., for security or reliability), change the invoking code to avoid the conditions that trigger the assertion.

### Implementation

Consider changing the assertion to some other less "fatal" error. This might not be easy to implement, since other code may be needed to handle the error.

### Implementation

Make sensitive open/close operations non-reachable from directly user-controlled data (e.g. open/close resources)

### Implementation (Input Validation)

Perform input validation on user data.

## Detection methods

### 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.)

Effectiveness: High

## Demonstrative examples

### Example 1

In the excerpt below, an AssertionError (an unchecked exception) is thrown if the user hasn't entered an email address in an HTML form.

Bad code:

```java
String email = request.getParameter("email_address");
assert email != null;
```

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2024-8768 | API server for LLM library can crash when provided an empty prompt, which triggers a reachable assertion |
| CVE-2023-49286 | Chain: function in web caching proxy does not correctly check a return value (CWE-253) leading to a reachable assertion (CWE-617) |
| CVE-2006-6767 | FTP server allows remote attackers to cause a denial of service (daemon abort) via crafted commands which trigger an assertion failure. |
| CVE-2006-6811 | Chat client allows remote attackers to cause a denial of service (crash) via a long message string when connecting to a server, which causes an assertion failure. |
| CVE-2006-5779 | Product allows remote attackers to cause a denial of service (daemon crash) via LDAP BIND requests with long authcid names, which triggers an assertion failure. |
| CVE-2006-4095 | Product allows remote attackers to cause a denial of service (crash) via certain queries, which cause an assertion failure. |
| CVE-2006-4574 | Chain: security monitoring product has an off-by-one error that leads to unexpected length values, triggering an assertion. |
| CVE-2004-0270 | Anti-virus product has an assertion error when the line length is non-numeric. |

## Real CVEs with this weakness (sample of 12 of 1,089)

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2015-5477 | ISC BIND Data Processing Errors Vulnerability | high | 7.5 | - | Yes | 2015-07-29 |
| CVE-2026-99696 | ocfs2: find the xattr entry again after defragmenting a bucket | critical | 9.8 | - | No | 2026-11-20 |
| CVE-2026-98340 | wifi: cfg80211: only group hidden BSSes with beacon entries | critical | 9.8 | - | No | 2026-10-06 |
| CVE-2026-98339 | wifi: cfg80211: don't filter by BSS type when removing stale entries | critical | 9.8 | - | No | 2026-10-06 |
| CVE-2026-98331 | wifi: mac80211: unlist vifs when their netdev is unregistered | critical | 9.8 | - | No | 2026-10-06 |
| CVE-2026-98329 | wifi: mac80211: don't allow injecting frames wider than the chanctx | critical | 9.8 | - | No | 2026-10-06 |
| CVE-2026-98303 | ipv4: icmp: reject RTN\_UNREACHABLE input routes in icmp\_route\_lookup | critical | 9.8 | - | No | 2026-10-06 |
| CVE-2024-42256 | cifs: Fix server re-repick on subrequest retry | critical | 9.8 | - | No | 2024-08-08 |
| CVE-2024-35884 | udp: do not accept non-tunnel GSO skbs landing in a tunnel | critical | 9.8 | - | No | 2024-05-19 |
| CVE-2020-3615 | - | critical | 9.8 | - | No | 2020-06-02 |
| CVE-2019-9795 | Mozilla: Type-confusion in IonMonkey JIT compiler | critical | 9.8 | - | No | 2019-04-26 |
| CVE-2026-102070 | Junos OS: A remote TWAMP peer causes rmopd service disruption when TWAMP-Control is used | critical | 9.2 | - | No | 2026-10-14 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-670](https://radicalnotion.ai/cwe/cwe-670) | Always-Incorrect Control Flow Implementation |
| Parent | [CWE-705](https://radicalnotion.ai/cwe/cwe-705) | Incorrect Control Flow Scoping |
| Related | [CWE-193](https://radicalnotion.ai/cwe/cwe-193) | Off-by-one Error |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| The CERT Oracle Secure Coding Standard for Java (2011) | Never use assertions to validate method arguments | MET01-J | - |
| Software Fault Patterns | Use of an improper API | SFP3 | - |
| OpenSSF Secure Coding Guide for Python | Avoid Assertions In Production | pyscg-0037 | - |

## Frequently asked questions

### What is CWE-617?

The product contains an assert() or similar statement that can be triggered by an attacker, which leads to an application exit or other behavior that is more severe than necessary.

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

1,089 recorded CVEs are attributed to CWE-617, including CVE-2015-5477, CVE-2026-99696 and CVE-2026-98340. 1 is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog.

### How do you prevent CWE-617?

If the assertion statement is required (e.g., for security or reliability), change the invoking code to avoid the conditions that trigger the assertion.

### How is CWE-617 detected?

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

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

Exploiting CWE-617 can lead to: DoS: Crash, Exit, or Restart.

### Is CWE-617 actively exploited?

Yes. 1 CWE-617 vulnerability is in CISA's KEV catalog of actively exploited flaws, out of 1,089 recorded CVEs.

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

---

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