This weakness occurs when a class inherits from an excessive number of parent classes, creating a deep and complex inheritance hierarchy.
Excessively deep inheritance chains make code significantly harder to understand, test, and maintain. This complexity indirectly harms security by obscuring logic flow, increasing the time needed to find bugs, and raising the risk of introducing new vulnerabilities during modifications. The deeper the hierarchy, the more difficult it becomes to trace method execution and state changes. While the specific threshold for "too deep" can vary by project, the CISQ (Consortium for IT Software Quality) standard recommends a maximum inheritance depth of seven parent classes. Adhering to this guideline helps maintain code clarity, reduces tight coupling, and makes security reviews more effective by keeping the class structure manageable.
Impact: Reduce Maintainability