Contao CMS
CVE-2026-104883
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessLog in as delegated user manager
-
DeliveryAdd themes module and theme_import to own account
-
ExploitRe-authenticate to activate new permission
-
ExecutionImport crafted theme with PHP templates
-
ImpactExecute arbitrary PHP, fully compromise server
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated Contao backend account that is a non-admin delegated user/group manager - i.e. a group granted the |
| Impact | This is a genuine high-priority privilege-escalation-to-RCE issue, but one gated behind a trusted-insider precondition rather than an internet-facing flaw. The vendor CVSS 7.2 (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H) is consistent with the mechanism: the vector is network (the Contao backend is reached over HTTP), complexity is low (the steps are deterministic - add |
| Exploit ScenarioDerived | A backend user who was delegated only user/group management (explicitly not template or theme access) edits their own or a managed account, adds the |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 21, 2026
Privilege escalation to server-side PHP execution in Contao CMS lets a non-admin delegated user/group manager self-grant the theme_import capability and gain arbitrary code execution on the installation. The flaw affects composer/contao/core-bundle from 5.0.0 up to 5.3.49 and from 5.4.0-RC1 up to 5.7.11, and it specifically defeats the 5.7.3 tpl_editor hardening, which guarded only the modules field and not the themes field where theme_import lives. Exploitation requires an authenticated backend account holding the user or group module (CVSS PR:H), followed by re-authentication to activate the new permission; the vendor advisory includes a step-by-step reproduction against Contao 5.7.9, but no confirmed working exploit code or CISA KEV entry is associated with this CVE at time of analysis.
RemediationAI
Upgrade composer/contao/core-bundle to 5.3.50 (5.3 branch) or 5.7.12 (5.7 branch) as applicable - these are the exact fixed versions listed in the advisory - and re-run the Contao install/migration so the renamed data-container listener and voter wiring are picked up. The fix is shipped via https://github.com/contao/contao/pull/10153 with commits 211498f28d4c86484b96eb0612c1193105b79e51 and a58eb71ef5a7a87da9d90980579dbeb6688448b4; review the advisory at https://github.com/contao/contao/security/advisories/GHSA-r9qp-pqx5-8369 for the full branch matrix. Because exploitation is gated on a non-admin account already holding the user or group backend module, the practical interim control is to audit and temporarily restrict that module to fully trusted administrators until patching is complete - at the cost of removing delegated user management from editors and site operators, and requiring an administrator to perform account/group changes in the meantime. After upgrading, review existing tl_user_group and tl_user rows for themes values containing theme_import granted to non-admin accounts and remove them, then have affected users re-authenticate so stale session permissions no longer apply.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in composer
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Contao stores backend permissions in DCA (data container array) tables tl_user_group and tl_user. The modules checkbox field controls backend module access and includes the tpl_editor option, while a separate themes checkbox field (tl_user_group.php:98-105, mirrored at tl_user.php:248-253) offers the theme_import option. Both capabilities are effectively code-execution primitives because they allow editing/importing PHP-capable templates. Commit 2b83a60f7763 in 5.7.3 added TemplateEditorModuleVoter and CheckTemplateEditorSaveListener, a Symfony data-container voter plus save listener that block a non-admin from granting themselves tpl_editor; however, TemplateEditorModuleVoter is the only DC voter registered for tl_user_group, it inspects only the modules field, and it matches only the literal tpl_editor value. The themes field has no save_callback and no voter, which is the root cause: an incorrect privilege assignment / missing authorization check (CWE-266) that hands over a code-injection primitive (CWE-94). The upstream fix in PR #10153 generalizes the mechanism, renaming CheckTemplateEditorSaveListener to CheckImplicitAdminSaveListener and PreviewAccessVoter to PreviewVoter, and extends the admin warnings to cover layout, listing and unfiltered-HTML combinations alongside the theme warning.
Know when PHP gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Backend reached over HTTP (AV:N), deterministic steps (AC:L), but requires a privileged delegated user-manager account (PR:H), no victim interaction (UI:N); theme import yields full server RCE (C/I/A:H).
Primary rating from GitHub Advisory.
CVSS VectorGitHub Advisory
DescriptionGitHub Advisory
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(orgroup) module (a delegated user manager), and a user in it. Confirm the user cannot accesstpl_editor(blocked by the 5.7.3 voter). - As that non-admin, edit a group/account: add
themesto the modules field andtheme_importto the themes field (both accepted - onlytpl_editoris blocked). Re-authenticate.
Impact
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.
Credits
This security vulnerability was found by @HDWSec
Articles & Coverage 1
Technical POC Analysis
CWE-94 (code generation, per the advisory also CWE-269 improper privilege management).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-104883 in Contao CMS allows a non-admin backend user with delegated user or group management permissions to escalate privileges and achieve server-side PHP code execution, potentially compromising the entire installation. This impacts organizations using affected Contao versions (5.0.0-5.3.49 and 5.4.0-RC1-5.7.11), as a malicious insider or compromised low-privilege account could take full control of the CMS, leading to data breaches, website defacement, or further network intrusion.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Affected Products (CPE)GitHub Advisory
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
GHSA-r9qp-pqx5-8369
NVD
CVE.org
Exploit-DB