10
References
[REF-959]Object Management Group (OMG). "Automated Source Code Performance Efficiency
Measure (ASCPEM)". 2016 January. < https://www.omg.org/spec/ASCPEM/ >.2023-04-07.
CWE-1074: Class with Excessively Deep Inheritance
Weakness ID : 1074
Structure : Simple
Abstraction : Base
Description
A class has an inheritance level that is too high, i.e., it has a large number of parent classes.
Extended Description
This issue makes it more difficult to understand and maintain the product, which indirectly affects
security by making it more difficult or time-consuming to find and/or fix vulnerabilities. It also might
make it easier to introduce vulnerabilities.
While the interpretation of "large number of parent classes" may vary for each product or
developer, CISQ recommends a default maximum of 7 parent classes.
Relationships
The table(s) below shows the weaknesses and high level categories that are related to this
weakness. These relationships are defined as ChildOf, ParentOf, MemberOr and give insight to
similar items that may exist at higher and lower levels of abstraction. In addition, relationships such
as PeerOf and CanAlsoBe are defined to show similar weaknesses that may want to be explored.
Relevant to the view "Research Concepts" (CWE-1000)
Nature Type ID Name Page
ChildOf 1093 Excessively Complex Data Representation 1933
Relevant to the view "Software Development" (CWE-699)
Nature Type ID Name Page
MemberOf 1226 Complexity Issues 2481
Weakness Ordinalities
Indirect :
Common Consequences
Scope Impact Likelihood
Other Reduce Maintainability
MemberOf Relationships
CWE Version 4.14
CWE-1075: Unconditional Control Flow Transfer outside of Switch Block
CWE-1075: Unconditional Control Flow Transfer outside of Switch Block