Base · Medium

CWE-1086: Class with Excessive Number of Child Classes

A class contains an unnecessarily large number of children.

CWE-1086 · Base Level

Description

A class contains an unnecessarily large number of children.

While the interpretation of "large number of children" may vary for each product or developer, CISQ recommends a default maximum of 10 child classes.

Potential Impact

Other

Reduce Maintainability, Increase Analytical Complexity

Taxonomy Mappings

  • OMG ASCMM: ASCMM-MNT-18 —

Frequently Asked Questions

What is CWE-1086?

CWE-1086 (Class with Excessive Number of Child Classes) is a software weakness identified by MITRE's Common Weakness Enumeration. It is classified as a Base-level weakness. A class contains an unnecessarily large number of children.

How can CWE-1086 be exploited?

Attackers can exploit CWE-1086 (Class with Excessive Number of Child Classes) to reduce maintainability, increase analytical complexity. This weakness is typically introduced during the Implementation phase of software development.

How do I prevent CWE-1086?

Follow secure coding practices, conduct code reviews, and use automated security testing tools (SAST/DAST) to detect this weakness early in the development lifecycle.

What is the severity of CWE-1086?

CWE-1086 is classified as a Base-level weakness (Medium abstraction). Its actual severity depends on the specific context and how the weakness manifests in your application.