Umbra Wiki weakness weakness/CWE-1074
Back to wiki

CWE-1074 — Class with Excessively Deep Inheritance

provenance: imported · CWE: CWE-1074

CWE-1074: Class with Excessively Deep Inheritance

MITRE CWE weakness

Kind Weakness
Abstraction Base
Status Incomplete
Likelihood of exploit

Description

A class has an inheritance level that is too high, i.e., it has a large number of parent classes.

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.

Common consequences

  • Other: Reduce Maintainability, Increase Analytical Complexity

Mitigations

(none listed)

References

  • CWE page: https://cwe.mitre.org/data/definitions/1074.html
  • CWE list: https://cwe.mitre.org/data/index.html