Loading advisory.
Loading advisory.
contao/core-bundle: Non-admin users can self-grant permissions that implicitly make them administrators
Commit 2b83a60f7763 (5.7.3) hardened the template editor: it added TemplateEditorModuleVoter + CheckTemplateEditorSaveListener so a non-admin cannot self-grant the tpl_editor backend module (editable PHP-capable templates permit server-side code execution).
Published 2026-11-20 23:45 UTC · Modified 2026-11-21 00:00 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| contao/core-bundle | Packagist | >= 5.0.0, < 5.3.50 >= 5.4.0-RC1, < 5.7.12 versions 5.0.0, 5.0.1, 5.0.10, 5.0.2, 5.0.3, 5.0.4, 5.0.5, 5.0.6, 5.0.7, 5.0.8, 5.0.9, 5.1.0, 5.1.0-RC1, 5.1.0-RC2, 5.1.0-RC3, 5.1.1, 5.1.10, 5.1.11, 5.1.2, 5.1.3 and 148 more | 5.3.50, 5.7.12 | composer require 'contao/core-bundle:>=5.3.50'composer require 'contao/core-bundle:>=5.7.12' |
Commit 2b83a60f7763 (5.7.3) hardened the template editor: it added TemplateEditorModuleVoter + CheckTemplateEditorSaveListener so a non-admin cannot self-grant the tpl_editor backend module (editable PHP-capable templates permit server-side code execution). That voter supports only the modules field and the literal value tpl_editor.
The equally RCE-capable theme_import capability lives in a different field - the themes checkbox field (tl_user_group.php:98-105 options include theme_import; identical on tl_user.php:248-253) - which has no save_callback and no voter. TemplateEditorModuleVoter is the only DC voter registered for tl_user_group, and it does not cover the themes field. So a delegated user manager can add theme_import to their own (or a managed) account.
Live repro (Contao 5.7.9):
As admin, create a non-admin backend group with the user (or group) module (a delegated user manager), and a user in it. Confirm the user cannot access tpl_editor (blocked by the 5.7.3 voter).
As that non-admin, edit a group/account: add themes to the modules field and theme_import to the themes field (both accepted - only tpl_editor is blocked). Re-authenticate.
A delegated user/group manager (a role explicitly not trusted with template/code access) escalates to arbitrary PHP execution on the server, fully compromising the installation. This bypasses the exact protection the 5.7.3 tpl_editor fix introduced.
This security vulnerability was found by @HDWSec
Exploit code or a detection template for this CVE is published by the sources below. This is not a report of use against real systems (that is what CISA KEV records) and it does not change the tier.
No EPSS history yet. Either the CVE has no score or the scores have not been fetched.