---
title: "CAPEC-25: Forced Deadlock"
url: https://radicalnotion.ai/capec/capec-25
type: capec
description: "The adversary triggers and exploits a deadlock condition in the target software to cause a denial of service. A deadlock can occur when two or more competing actions are waiting for each other to finish, and thus neither ever does. Deadlock conditions can be difficult to detect."
updated: 2026-06-01
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CAPEC-25: Forced Deadlock

- **Abstraction:** Meta
- **Status:** Stable
- **Typical severity:** High
- **Likelihood of attack:** Low
- **CAPEC catalog version:** 3.9

## Description

The adversary triggers and exploits a deadlock condition in the target software to cause a denial of service. A deadlock can occur when two or more competing actions are waiting for each other to finish, and thus neither ever does. Deadlock conditions can be difficult to detect.

## Execution flow

### Step 1: Explore

The adversary initiates an exploratory phase to get familiar with the system.

### Step 2: Explore

The adversary triggers a first action (such as holding a resource) and initiates a second action which will wait for the first one to finish.

### Step 3: Explore

If the target program has a deadlock condition, the program waits indefinitely resulting in a denial of service.

## Prerequisites

- The target host has a deadlock condition. There are four conditions for a deadlock to occur, known as the Coffman conditions. \[REF-101\]
- The target host exposes an API to the user.

## Skills required

- **Medium:** This type of attack may be sophisticated and require knowledge about the system's resources and APIs.

## Consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Availability | Resource Consumption | A successful forced deadlock attack compromises the availability of the system by exhausting its available resources. |

## Mitigations

- Use known algorithm to avoid deadlock condition (for instance non-blocking synchronization algorithms).
- For competing actions, use well-known libraries which implement synchronization.

## Example instances

An example of a deadlock which may occur in database products is the following. Client applications using the database may require exclusive access to a table, and in order to gain exclusive access they ask for a lock. If one client application holds a lock on a table and attempts to obtain the lock on a second table that is already held by a second client application, this may lead to deadlock if the second application then attempts to obtain the lock that is held by the first application (Source: Wikipedia, http://en.wikipedia.org/wiki/Deadlock)

## Related weaknesses (CWE)

- [CWE-412](https://radicalnotion.ai/cwe/cwe-412): Unrestricted Externally Accessible Lock
- [CWE-567](https://radicalnotion.ai/cwe/cwe-567): Unsynchronized Access to Shared Data in a Multithreaded Context
- [CWE-662](https://radicalnotion.ai/cwe/cwe-662): Improper Synchronization
- [CWE-667](https://radicalnotion.ai/cwe/cwe-667): Improper Locking
- [CWE-833](https://radicalnotion.ai/cwe/cwe-833): Deadlock
- [CWE-1322](https://radicalnotion.ai/cwe/cwe-1322): Use of Blocking Code in Single-threaded, Non-blocking Context

## Taxonomy mappings

| Taxonomy | Entry | Id |
| --- | --- | --- |
| ATTACK | Endpoint Denial of Service: Application or System Exploitation | 1499.004 |

## Frequently asked questions

### What is CAPEC-25?

The adversary triggers and exploits a deadlock condition in the target software to cause a denial of service. A deadlock can occur when two or more competing actions are waiting for each other to finish, and thus neither ever does. Deadlock conditions can be difficult to detect.

### How does a Forced Deadlock attack work?

It typically unfolds over 3 phases. It begins with: The adversary initiates an exploratory phase to get familiar with the system.

### How do you prevent CAPEC-25?

Use known algorithm to avoid deadlock condition (for instance non-blocking synchronization algorithms).

### What weaknesses does CAPEC-25 target?

CAPEC-25 exploits 6 CWE weaknesses, including CWE-412 (Unrestricted Externally Accessible Lock), CWE-567 (Unsynchronized Access to Shared Data in a Multithreaded Context), CWE-662 (Improper Synchronization) and CWE-667 (Improper Locking).

### How severe is CAPEC-25?

MITRE rates CAPEC-25 as High severity with low likelihood of attack.

Primary source: [MITRE CAPEC](https://capec.mitre.org/data/definitions/25.html)

---

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