CWE-474Use of Function with Inconsistent Implementations

PUBLISHEDweakness record
released 2006-07-19 · last modified 2023-06-29

Metadata

CWE ID:
CWE-474
Abstraction:
Base
Structure:
Simple
Status:
Draft
Release Date:
2006-07-19
Latest Modification Date:
2023-06-29

Weakness Name

Use of Function with Inconsistent Implementations

Description

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

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. The implementation of many functions varies by platform, and at times, even by different versions of the same platform. Implementation differences can include:

Common Consequences

Scope:
Other
Impact:
Quality Degradation, Varies by Context

Related Weaknesses