CWE-1041β€”Use of Redundant Code

PUBLISHEDweakness record
released 2019-01-03 Β· last modified 2025-12-11

Metadata

CWE ID:
CWE-1041
Abstraction:
Base
Structure:
Simple
Status:
Incomplete
Release Date:
2019-01-03
Latest Modification Date:
2025-12-11

Weakness Name

Use of Redundant Code

Description

The product has multiple functions, methods, procedures, macros, etc. that contain the same code.

Common Consequences

Scope:
Other
Impact:
Reduce Maintainability
Notes:
This issue makes it more difficult to maintain the product, which indirectly affects security by making it more difficult or time-consuming to find and/or fix vulnerabilities. For example, if there are two copies of the same code, the programmer might fix a weakness in one copy while forgetting to fix the same weakness in another copy.

Related Weaknesses