---
title: "CWE-1047: Modules with Circular Dependencies"
url: https://radicalnotion.ai/cwe/cwe-1047
type: cwe
description: "The product contains modules in which one module has references that cycle back to itself, i.e., there are circular dependencies."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-1047: Modules with Circular Dependencies

- **Abstraction:** Base
- **Structure:** Simple
- **Status:** Incomplete
- **CVEs with this as primary weakness:** 2
- **Of those, in CISA KEV:** 0
- **New in 2026:** 0
- **CWE catalog version:** 4.21

## Description

The product contains modules in which one module has references that cycle back to itself, i.e., there are circular dependencies.

As an example, with Java, this weakness might indicate cycles between packages.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Implementation | - |
| Architecture and Design | - |

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Other | Reduce Maintainability | This issue makes it more difficult to maintain the product due to insufficient modularity, which indirectly affects security by making it more difficult or time-consuming to find and/or fix vulnerabilities. It can also prevent the product from running reliably. If the relevant code is reachable by an attacker, then this reliability problem might introduce a vulnerability. |

## Detection methods

### Automated Static Analysis

Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

Effectiveness: High

## Real CVEs with this weakness

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2022-48658 | mm: slub: fix flush\_cpu\_slab()/\_\_free\_slab() invocations in task context. | high | 7.8 | - | No | 2024-04-28 |
| CVE-2023-5236 | Infinispan: circular reference on marshalling leads to dos | high | 7.1 | - | No | 2023-12-18 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-1120](https://radicalnotion.ai/cwe/cwe-1120) | Excessive Code Complexity |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| OMG ASCMM | - | ASCMM-MNT-7 | - |
| OMG ASCRM | - | ASCRM-RLB-13 | - |

## Frequently asked questions

### What is CWE-1047?

The product contains modules in which one module has references that cycle back to itself, i.e., there are circular dependencies.

### What CVEs are caused by CWE-1047?

2 recorded CVEs are attributed to CWE-1047, including CVE-2022-48658 and CVE-2023-5236.

### How is CWE-1047 detected?

Automated Static Analysis: Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

### What are the consequences of CWE-1047?

Exploiting CWE-1047 can lead to: Reduce Maintainability.

### Is CWE-1047 actively exploited?

2 recorded CVEs are caused by CWE-1047; none are currently in CISA's KEV catalog of actively exploited flaws.

Primary source: [MITRE CWE](https://cwe.mitre.org/data/definitions/1047.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/cwe/cwe-1047). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
