---
title: "CWE-698: Execution After Redirect (EAR)"
url: https://radicalnotion.ai/cwe/cwe-698
type: cwe
description: "The web application sends a redirect to another location, but instead of exiting, it executes additional code."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-698: Execution After Redirect (EAR)

- **Abstraction:** Base
- **Structure:** Simple
- **Status:** Incomplete
- **CVEs with this as primary weakness:** 23
- **Of those, in CISA KEV:** 0
- **New in 2026:** 13
- **CWE catalog version:** 4.21

## Description

The web application sends a redirect to another location, but instead of exiting, it executes additional code.

## Alternate terms

- Redirect Without Exit

## Modes of introduction

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

## Applicable platforms

**Technologies:** Web Based (Undetermined), Web Server (Sometimes)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Other, Confidentiality, Integrity, Availability | Alter Execution Logic, Execute Unauthorized Code or Commands | This weakness could affect the control flow of the application and allow execution of untrusted code. |

## Detection methods

### Black Box

This issue might not be detected if testing is performed using a web browser, because the browser might obey the redirect and move the user to a different page before the application has produced outputs that indicate something is amiss.

## Demonstrative examples

### Example 1

This code queries a server and displays its status when a request comes from an authorized IP address.

Bad code:

```php
$requestingIP = $_SERVER['REMOTE_ADDR'];
if(!in_array($requestingIP,$ipAllowList)){
    echo "You are not authorized to view this page";
    http_redirect($errorPageURL);
}
$status = getServerStatus();
echo $status;
...
```

This code redirects unauthorized users, but continues to execute code after calling http\_redirect(). This means even unauthorized users may be able to access the contents of the page or perform a DoS attack on the server being queried. Also, note that this code is vulnerable to an IP address spoofing attack (CWE-212).

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2013-1402 | Execution-after-redirect allows access to application configuration details. |
| CVE-2009-1936 | Chain: library file sends a redirect if it is directly requested but continues to execute, allowing remote file inclusion and path traversal. |
| CVE-2007-2713 | Remote attackers can obtain access to administrator functionality through EAR. |
| CVE-2007-4932 | Remote attackers can obtain access to administrator functionality through EAR. |
| CVE-2007-5578 | Bypass of authentication step through EAR. |
| CVE-2007-6652 | Chain: execution after redirect allows non-administrator to perform static code injection. |

## Real CVEs with this weakness (sample of 12 of 23)

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2026-2699 | EAR vulnerability in Progress ShareFile Storage Zones Controller (SZC) | critical | 9.8 | - | No | 2026-04-02 |
| CVE-2025-8350 | Authentication Bypass with Redirect in BiEticaret Software's BiEticaret CMS | critical | 9.8 | - | No | 2026-02-19 |
| CVE-2024-3376 | SourceCodester Computer Laboratory Management System config.php redirect | critical | 9.8 | - | No | 2024-04-06 |
| CVE-2024-2573 | SourceCodester Employee Task Management System task-info.php redirect | critical | 9.8 | - | No | 2024-03-18 |
| CVE-2024-2572 | SourceCodester Employee Task Management System task-details.php redirect | critical | 9.8 | - | No | 2024-03-18 |
| CVE-2024-2571 | SourceCodester Employee Task Management System manage-admin.php redirect | critical | 9.8 | - | No | 2024-03-18 |
| CVE-2024-2570 | SourceCodester Employee Task Management System edit-task.php redirect | critical | 9.8 | - | No | 2024-03-18 |
| CVE-2024-2569 | SourceCodester Employee Task Management System admin-manage-user.php redirect | critical | 9.8 | - | No | 2024-03-17 |
| CVE-2026-58455 | Dockwatch 0.6.567 Unauthenticated OS Command Injection via ajax/compose.php | critical | 9.2 | - | No | 2026-07-02 |
| CVE-2026-118028 | Apache Tomcat: RewriteValve \[F\]/\[G\]/\[R\] rule matches do not stop processing | critical | 9.1 | - | No | 2026-11-19 |
| CVE-2026-61407 | Dell Watchdog Timer Driver versions prior to 2.0.0.1 contain an Exposed IOCTL with Insufficient... | high | 8.8 | - | No | 2026-08-18 |
| CVE-2025-6967 | Authentication Bypass in Sarman Soft's CMS | high | 8.7 | - | No | 2026-02-10 |

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

## Frequently asked questions

### What is CWE-698?

The web application sends a redirect to another location, but instead of exiting, it executes additional code.

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

23 recorded CVEs are attributed to CWE-698, including CVE-2026-2699, CVE-2025-8350 and CVE-2024-3376.

### How is CWE-698 detected?

Black Box: This issue might not be detected if testing is performed using a web browser, because the browser might obey the redirect and move the user to a different page before the application has produced outputs that indicate something is amiss.

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

Exploiting CWE-698 can lead to: Alter Execution Logic, Execute Unauthorized Code or Commands.

### Is CWE-698 actively exploited?

23 recorded CVEs are caused by CWE-698; none are currently in CISA's KEV catalog of actively exploited flaws.

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

---

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