---
title: "CWE-198: Use of Incorrect Byte Ordering"
url: https://radicalnotion.ai/cwe/cwe-198
type: cwe
description: "The product receives input from an upstream component, but it does not account for byte ordering (e.g. big-endian and little-endian) when processing the input, causing an incorrect number or value to be used."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-198: Use of Incorrect Byte Ordering

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

## Description

The product receives input from an upstream component, but it does not account for byte ordering (e.g. big-endian and little-endian) when processing the input, causing an incorrect number or value to be used.

## Modes of introduction

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

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Integrity | Unexpected State | - |

## Detection methods

### Black Box

Because byte ordering bugs are usually very noticeable even with normal inputs, this bug is more likely to occur in rarely triggered error conditions, making them difficult to detect using black box methods.

## Real CVEs with this weakness

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2025-52980 | Junos OS: SRX300 Series: rpd will crash upon receiving a specific, valid BGP UPDATE message | high | 8.7 | - | No | 2025-07-11 |
| CVE-2026-46306 | flow\_dissector: do not dissect PPPoE PFC frames | high | 7.5 | - | No | 2026-06-08 |
| CVE-2021-26306 | Soundness issue in raw-cpuid | high | 7.5 | - | No | 2021-01-29 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-188](https://radicalnotion.ai/cwe/cwe-188) | Reliance on Data/Memory Layout |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| PLOVER | Numeric Byte Ordering Error | - | - |
| The CERT Oracle Secure Coding Standard for Java (2011) | Provide methods to read and write little-endian data | FIO12-J | - |

## Frequently asked questions

### What is CWE-198?

The product receives input from an upstream component, but it does not account for byte ordering (e.g. big-endian and little-endian) when processing the input, causing an incorrect number or value to be used.

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

3 recorded CVEs are attributed to CWE-198, including CVE-2025-52980, CVE-2026-46306 and CVE-2021-26306.

### How is CWE-198 detected?

Black Box: Because byte ordering bugs are usually very noticeable even with normal inputs, this bug is more likely to occur in rarely triggered error conditions, making them difficult to detect using black box methods.

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

Exploiting CWE-198 can lead to: Unexpected State.

### Is CWE-198 actively exploited?

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

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

---

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