---
title: "CWE-463: Deletion of Data Structure Sentinel"
url: https://radicalnotion.ai/cwe/cwe-463
type: cwe
description: "The accidental deletion of a data-structure sentinel can cause serious programming logic problems."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-463: Deletion of Data Structure Sentinel

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

## Description

The accidental deletion of a data-structure sentinel can cause serious programming logic problems.

Often times data-structure sentinels are used to mark structure of the data structure. A common example of this is the null character at the end of strings. Another common example is linked lists which may contain a sentinel to mark the end of the list. It is dangerous to allow this type of control data to be easily accessible. Therefore, it is important to protect from the deletion or modification outside of some wrapper interface which provides safety.

## Modes of introduction

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

## Applicable platforms

**Languages:** C (Undetermined), C++ (Undetermined)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Availability, Other | Other | Generally this error will cause the data structure to not work properly. |
| Authorization, Other | Other | If a control character, such as NULL is removed, one may cause resource access control problems. |

## Potential mitigations

### Architecture and Design

Use an abstraction library to abstract away risky APIs. Not a complete solution.

### Build and Compilation (Compilation or Build Hardening)

Run or compile the software using features or extensions that automatically provide a protection mechanism that mitigates or eliminates buffer overflows.

For example, certain compilers and extensions provide automatic buffer overflow detection mechanisms that are built into the compiled code. Examples include the Microsoft Visual Studio /GS flag, Fedora/Red Hat FORTIFY\_SOURCE GCC flag, StackGuard, and ProPolice.

Effectiveness: Defense in Depth. This is not necessarily a complete solution, since these mechanisms can only detect certain types of overflows. In addition, an attack could still cause a denial of service, since the typical response is to exit the application.

### Operation

Use OS-level preventative functionality. Not a complete solution.

## Demonstrative examples

### Example 1

This example creates a null terminated string and prints it contents.

Bad code:

```c
char *foo;
int counter;
foo=calloc(sizeof(char)*10);

for (counter=0;counter!=10;counter++) {
    foo[counter]='a';

printf("%s\n",foo);
}
```

The string foo has space for 9 characters and a null terminator, but 10 characters are written to it. As a result, the string foo is not null terminated and calling printf() on it will have unpredictable and possibly dangerous results.

## Real CVEs with this weakness

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2024-31475 | - | high | 8.2 | - | No | 2024-05-14 |
| CVE-2024-31474 | - | high | 8.2 | - | No | 2024-05-14 |
| CVE-2024-13318 | Essential WP Real Estate \<= 1.1.3 - Missing Authorization to Arbitrary Post/Page Deletion | medium | 5.3 | - | No | 2025-01-10 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-707](https://radicalnotion.ai/cwe/cwe-707) | Improper Neutralization |
| Peer | [CWE-170](https://radicalnotion.ai/cwe/cwe-170) | Improper Null Termination |
| Peer | [CWE-464](https://radicalnotion.ai/cwe/cwe-464) | Addition of Data Structure Sentinel |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| CLASP | Deletion of data-structure sentinel | - | - |

## Frequently asked questions

### What is CWE-463?

The accidental deletion of a data-structure sentinel can cause serious programming logic problems.

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

3 recorded CVEs are attributed to CWE-463, including CVE-2024-31475, CVE-2024-31474 and CVE-2024-13318.

### How do you prevent CWE-463?

Use an abstraction library to abstract away risky APIs. Not a complete solution.

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

Exploiting CWE-463 can lead to: Other.

### Is CWE-463 actively exploited?

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

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

---

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