---
title: "CWE-474: Use of Function with Inconsistent Implementations"
url: https://radicalnotion.ai/cwe/cwe-474
type: cwe
description: "The code uses a function that has inconsistent implementations across operating systems and versions."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-474: Use of Function with Inconsistent Implementations

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

## Description

The code uses a function that has inconsistent implementations across operating systems and versions.

The implementation of many functions varies by platform, and at times, even by different versions of the same platform. Implementation differences can include:

Slight differences in the way parameters are interpreted, leading to inconsistent results.

Some implementations of the function carry significant security risks.

The function might not be defined on all platforms.

The function might change which return codes it can provide, or change the meaning of its return codes.

## Modes of introduction

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

## Applicable platforms

**Languages:** C (Often), PHP (Often)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Other | Quality Degradation, Varies by Context | The use of inconsistent implementations can cause changes in behavior when the code is ported or built under a different environment than the programmer expects, which can lead to security problems in some cases. |

## Potential mitigations

### Architecture and Design, Requirements

Do not accept inconsistent behavior from the API specifications when the deviant behavior increases the risk level.

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

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

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2026-11102 | Inappropriate implementation in Isolated Web Apps | high | 8.8 | - | No | 2026-06-04 |
| CVE-2026-0902 | Inappropriate implementation in V8 | high | 8.8 | - | No | 2026-01-20 |
| CVE-2024-5839 | Inappropriate Implementation in Memory Allocator | high | 8.8 | - | No | 2024-06-11 |
| CVE-2024-5836 | Inappropriate Implementation in DevTools | high | 8.8 | - | No | 2024-06-11 |
| CVE-2024-1672 | Inappropriate implementation in Content Security Policy | high | 8.8 | - | No | 2024-02-21 |
| CVE-2024-1694 | - | high | 7.8 | - | No | 2024-06-07 |
| CVE-2022-50472 | IB/mad: Don't call to function that might sleep while in atomic context | high | 7.5 | - | No | 2025-10-04 |
| CVE-2022-49743 | ovl: Use "buf" flexible array for memcpy() destination | high | 7.5 | - | No | 2025-03-27 |
| CVE-2023-53242 | thermal/drivers/hisi: Drop second sensor hi3660 | high | 7.1 | - | No | 2025-09-15 |
| CVE-2026-50719 | The Ingenic T41, and probably also T32, T40, and A1 SoC boot ROMs parse and execute an attacker... | medium | 6.8 | - | No | 2026-08-19 |
| CVE-2026-11097 | Inappropriate implementation in WebView | medium | 6.5 | - | No | 2026-06-04 |
| CVE-2021-0294 | Junos OS: QFX5000 Series and EX4600 Series: Enhanced storm control might not work leading to partial Denial of Service | medium | 5.3 | - | No | 2021-07-15 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-758](https://radicalnotion.ai/cwe/cwe-758) | Reliance on Undefined, Unspecified, or Implementation-Defined Behavior |
| Child | [CWE-589](https://radicalnotion.ai/cwe/cwe-589) | Call to Non-ubiquitous API |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| 7 Pernicious Kingdoms | Inconsistent Implementations | - | - |
| Software Fault Patterns | Use of an improper API | SFP3 | - |

## Frequently asked questions

### What is CWE-474?

The code uses a function that has inconsistent implementations across operating systems and versions.

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

16 recorded CVEs are attributed to CWE-474, including CVE-2026-11102, CVE-2026-0902 and CVE-2024-5839.

### How do you prevent CWE-474?

Do not accept inconsistent behavior from the API specifications when the deviant behavior increases the risk level.

### How is CWE-474 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-474?

Exploiting CWE-474 can lead to: Quality Degradation, Varies by Context.

### Is CWE-474 actively exploited?

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

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

---

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