CWE-589

Call to Non-ubiquitous API

Medium

Description

The product uses an API function that does not exist on all versions of the target platform. This could cause portability problems or inconsistencies that allow denial of service or other consequences.

Potential Impact

How to Fix

Implementation

Always test your code on any platform on which it is targeted to run on.

Testing

Test your code on the newest and oldest platform on which it is targeted to run on.

Testing

Develop a system to test for API functions that are not portable.

Detection Methods

Related Weaknesses

References

View on MITRE CWE Database →

Need Help Fixing This Vulnerability?

Our security experts can help you identify and remediate CWE-589 vulnerabilities in your codebase.

Get Security Assessment