All CWEs
CWE-1041
Use of Redundant Code
BaseIncompleteSimple
The product has multiple functions, methods, procedures, macros, etc. that
contain the same code.
Common consequences1
- OtherReduce Maintainability
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.
Potential mitigations1
- Implementation
Merge common functionality into a single function and then call that function from across the entire code base.
Relationships1
- ChildOfCWE-710
CVEs referencing this CWE
No CVEs reference this CWE yet
CWE assignments come from NVD/CNA assigners and OSS advisories. Some CWEs (Pillars, Composites) are abstract and rarely cited directly.