{"id":"CVE-2026-54623","aliases":["CVE-2026-54623","GHSA-8jj7-4v57-frf5","PYSEC-2026-3822"],"related":[],"kind":"vulnerability","state":"published","title":"django CMS: Plugin move endpoint allows cyclic reparenting (DoS)","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\nThe `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.\n\n### Details\n`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.\n\nDescendant 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.\n\n### Impact\nAn 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.\n\nRequires `CMS_PERMISSION`/plugin-change permission on a placeholder.\n\n### Patches\nFixed 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.\n\n### Workarounds\nNone. Upgrade is recommended.\n\n### Credits\nReported by the security team at the University of Sydney ([@reporter]).","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-08-20T18:02:45.599Z","modified":"2026-10-26T10:10:00.140Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H","score":7.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H","score":7.1,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H","score":7.1,"rating":"HIGH"}],"cwes":["CWE-674","CWE-835"],"affected":[{"ranges":[{"version":"< 5.0.8","status":"affected"}],"vendor":"django-cms","product":"django-cms","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"5.0.8"}],"ecosystem":"PyPI","package":"django-cms","purl":"pkg:pypi/django-cms","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"5.0.8"}],"ecosystem":"PyPI","package":"django-cms","purl":"pkg:pypi/django-cms","source":"pysec"}],"references":[{"url":"https://github.com/django-cms/django-cms/security/advisories/GHSA-8jj7-4v57-frf5","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/django-cms/django-cms/pull/8645","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/django-cms/django-cms/commit/7642a98ab3170793c0b27b4125dd1f3d318b8a1c","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/django-cms/django-cms/releases/tag/5.0.8","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54623","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/django-cms/django-cms","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/django-cms","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-8jj7-4v57-frf5","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-20T18:44:44.366Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-54623","url":"https://www.cve.org/CVERecord?id=CVE-2026-54623","licence":"CVE Terms of Use","modified":"2026-08-20T18:47:19.789Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8jj7-4v57-frf5","url":"https://github.com/advisories/GHSA-8jj7-4v57-frf5","licence":"CC-BY-4.0","modified":"2026-09-10T12:25:57.165Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-54623","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54623","licence":"Public domain","modified":"2026-10-26T10:10:00.140Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-3822","url":"https://osv.dev/vulnerability/PYSEC-2026-3822","licence":"CC-BY-4.0","modified":"2026-09-10T12:15:03.042Z"}],"updatedAt":"2026-11-25T22:59:34.676Z","epss":{"score":0.00353,"percentile":0.30936,"date":"2026-12-01T12:00:22.000Z"}}