CWE-474: Use of Function with Inconsistent Implementations
The code uses a function that has inconsistent implementations across operating systems and versions.
Last updated
Overview
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.
Real-world CVEs
16 recorded CVEs are caused by CWE-474 (Use of Function with Inconsistent Implementations). The highest-severity and most recent are shown first. 6 new CWE-474 CVEs have been recorded so far in 2026 (3 in 2025).
- CVE-2026-11102
Inappropriate implementation in Isolated Web Apps
High · CVSS 8.8 · EPSS 31th2026-06-04 - CVE-2026-0902
Inappropriate implementation in V8
High · CVSS 8.8 · EPSS 23th2026-01-20 - CVE-2024-5839
Inappropriate Implementation in Memory Allocator
High · CVSS 8.8 · EPSS 43th2024-06-11 - CVE-2024-5836
Inappropriate Implementation in DevTools
High · CVSS 8.8 · EPSS 44th2024-06-11 - CVE-2024-1672
Inappropriate implementation in Content Security Policy
High · CVSS 8.8 · EPSS 60th2024-02-21 - CVE-2024-1694High · CVSS 7.8 · EPSS 4th2024-06-07
- CVE-2022-50472
IB/mad: Don't call to function that might sleep while in atomic context
High · CVSS 7.5 · EPSS 31th2025-10-04 - CVE-2022-49743
ovl: Use "buf" flexible array for memcpy() destination
High · CVSS 7.5 · EPSS 40th2025-03-27 - CVE-2023-53242
thermal/drivers/hisi: Drop second sensor hi3660
High · CVSS 7.1 · EPSS 7th2025-09-15 - CVE-2026-50719
The Ingenic T41, and probably also T32, T40, and A1 SoC boot ROMs parse and execute an attacker...
Medium · CVSS 6.8 · EPSS 4th2026-08-19 - CVE-2026-11097
Inappropriate implementation in WebView
Medium · CVSS 6.5 · EPSS 14th2026-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 · CVSS 5.3 · EPSS 62th2021-07-15
Showing 12 of 16 recorded CWE-474 CVEs. Get an alert for each new one, with AI-written analysis and fixes.
Monitor these CVEsCommon consequences
What can happen when CWE-474 is exploited.
Quality Degradation, Varies by Context
Affects: Other
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.
How it happens
When it is introduced
Typically introduced during these phases of the software lifecycle.
Applies to
Languages
How to prevent it
Practical mitigations for CWE-474, grouped by where in the lifecycle they apply.
Do not accept inconsistent behavior from the API specifications when the deviant behavior increases the risk level.
How to detect it
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
Terminology & mappings
Mapped taxonomies
- 7 Pernicious Kingdoms: Inconsistent Implementations
- Software Fault Patterns: Use of an improper API (SFP3)
Frequently asked questions
Common questions about CWE-474.
- 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.
Sources
References
- MITRE CWE definition (CWE-474) (opens in a new tab)
- CWE-474 vulnerabilities on NVD (opens in a new tab)
- Learn: What is a CWE?
Weakness data is sourced from the MITRE CWE catalog (v4.21). CVE associations are aggregated and kept current by RadicalNotion.AI.
Track CWE-474 CVEs
Get an alert when a new CWE-474 CVE affects your products, with AI-written analysis and remediation steps.