Base · Medium

CWE-1062: Parent Class with References to Child Class

The code has a parent class that contains references to a child class, its methods, or its members.

CWE-1062 · Base Level

Description

The code has a parent class that contains references to a child class, its methods, or its members.

Potential Impact

Other

Reduce Reliability

Taxonomy Mappings

  • OMG ASCRM: ASCRM-RLB-14 —

Frequently Asked Questions

What is CWE-1062?

CWE-1062 (Parent Class with References to Child Class) is a software weakness identified by MITRE's Common Weakness Enumeration. It is classified as a Base-level weakness. The code has a parent class that contains references to a child class, its methods, or its members.

How can CWE-1062 be exploited?

Attackers can exploit CWE-1062 (Parent Class with References to Child Class) to reduce reliability. This weakness is typically introduced during the Implementation phase of software development.

How do I prevent CWE-1062?

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-1062?

CWE-1062 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.