7.1high
django CMS: Plugin move endpoint allows cyclic reparenting (DoS)
- Severity
- 7.1high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.35% (higher than 30% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-8jj7-4v57-frf5PYSEC-2026-3822
Description
django CMS is an easy-to-use and developer-friendly enterprise content management system powered by Django. Prior to 5.0.8, the move_plugin endpoint in cms/admin/placeholderadmin.py accepts an attacker-controlled plugin_parent value without rejecting a plugin’s own identifier or a descendant identifier. A staff user with plugin-change permission under CMS_PERMISSION can create a parent_id cycle in the plugin tree. The _get_descendants_cte and _get_ancestors_cte queries in cms/models/pluginmodel.py have no cycle guard, so get_descendants() and later rendering, copy, or delete operations can recurse indefinitely or reach a database recursion limit, corrupting the tree and consuming request workers. This issue is fixed in versions 5.0.8.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| django-cms django-cms | < 5.0.8 | CVE List |
| django-cms (PyPI) | before 5.0.8 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| GitHub_M | 7.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H |
| GitHub | 7.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H |
| PyPA Advisory Database | 7.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H |
Classification
What each source says
CVE List
django CMS is an easy-to-use and developer-friendly enterprise content management system powered by Django. Prior to 5.0.8, the move_plugin endpoint in cms/admin/placeholderadmin.py accepts an attacker-controlled plugin_parent value without rejecting a plugin’s own identifier or a descendant identifier. A staff user with plugin-change permission under CMS_PERMISSION can create a parent_id cycle in the plugin tree. The _get_descendants_cte and _get_ancestors_cte queries in cms/models/pluginmodel.py have no cycle guard, so get_descendants() and later rendering, copy, or delete operations can recurse indefinitely or reach a database recursion limit, corrupting the tree and consuming request workers. This issue is fixed in versions 5.0.8.
GitHub Advisory Database
Summary
The move_plugin admin endpoint does not prevent a plugin from being reparented under itself or one of its own descendants. Doing so creates a cycle in the plugin tree, after which the recursive descendant/ancestor SQL queries loop without terminating, stalling the request worker.
Details
move_plugin (in cms/admin/placeholderadmin.py) accepts a plugin_parent POST parameter and, for an in-placeholder move, sets the plugin's parent to the target without any cycle/ancestor check. If the target parent is a descendant of the moved plugin, the resulting parent_id graph contains a cycle.
Descendant and ancestor traversal is implemented with WITH RECURSIVE CTEs (_get_descendants_cte / _get_ancestors_cte in cms/models/pluginmodel.py) that have no cycle clause or depth limit. On a cyclic tree these recurse indefinitely (PostgreSQL/SQLite) or error at the recursion limit (MySQL). get_descendants() is invoked while building the move response and on subsequent operations on the affected subtree.
Impact
An authenticated staff user with permission to change plugins in at least one placeholder can corrupt that placeholder's plugin tree, causing requests that traverse it (rendering, copy, delete) to hang and consume application workers (denial of service). The tree is also left in a corrupted state.
Requires CMS_PERMISSION/plugin-change permission on a placeholder.
Patches
Fixed in 5.0.8: move_plugin now rejects (HTTP 400) any move that would place a plugin inside itself or one of its descendants, before any tree mutation or traversal.
Workarounds
None. Upgrade is recommended.
Credits
Reported by the security team at the University of Sydney ([@reporter]).
NVD (es)
django CMS es un sistema de gestión de contenido empresarial fácil de usar y amigable para desarrolladores, impulsado por Django. Antes de la versión 5.0.8, el endpoint move_plugin en cms/admin/placeholderadmin.py acepta un valor plugin_parent controlado por el atacante sin rechazar el propio identificador de un plugin o un identificador descendiente. Un usuario del personal con permiso de cambio de plugin bajo CMS_PERMISSION puede crear un ciclo de parent_id en el árbol de plugins. Las consultas _get_descendants_cte y _get_ancestors_cte en cms/models/pluginmodel.py no tienen una protección contra ciclos, por lo que get_descendants() y las operaciones posteriores de renderizado, copia o eliminación pueden recursar indefinidamente o alcanzar un límite de recursión de la base de datos, corrompiendo el árbol y consumiendo trabajadores de solicitudes. Este problema se corrige en las versiones 5.0.8.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-54623 changed 2026-08-20 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-8jj7-4v57-frf5 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-54623 changed 2026-10-26 | Public domain |
| PyPA Advisory Database | PYSEC-2026-3822 changed 2026-09-10 | CC-BY-4.0 |