CWE-477

Use of Obsolete Function
AI Translation Available

The code uses deprecated or obsolete functions, which suggests that the code has not been actively reviewed or maintained.

Status
draft
Abstraction
base

As programming languages evolve, functions occasionally become obsolete due to:

- Advances in the language

- Improved understanding of how operations should be performed effectively and securely

- Changes in the conventions that govern certain operations

Functions that are removed are usually replaced by newer counterparts that perform the same task in some different and hopefully improved way.

Common Consequences

other
Impacts
quality degradation

Detection Methods

automated static analysis - binary or bytecode manual static analysis - binary or bytecode dynamic analysis with manual results interpretation manual static analysis - source code automated static analysis - source code automated static analysis architecture or design review

Potential Mitigations

Phases:
implementation requirements
Descriptions:
• Consider seriously the security implications of using an obsolete function. Consider using alternate functions.
• Refer to the documentation for the obsolete function in order to determine why it is deprecated or obsolete and to learn about alternative ways to achieve the same functionality.