Skip to main content

Contao CMS CVE-2026-104883

HIGH
Code Injection (CWE-94)
2026-11-20 https://github.com/contao/contao GHSA-r9qp-pqx5-8369
7.2
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Log in as delegated user manager
  2. Delivery
    Add themes module and theme_import to own account
  3. Exploit
    Re-authenticate to activate new permission
  4. Execution
    Import crafted theme with PHP templates
  5. Impact
    Execute 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 user or group backend module but deliberately not granted tpl_editor/theme access. Given that role, the concrete flaw is that the themes checkbox field (tl_user_group.php:98-105 and tl_user.php:248-253, offering the theme_import option) has no save_callback and is not covered by TemplateEditorModuleVoter, which guards only the modules field for the literal tpl_editor value; the attacker self-grants themes + theme_import and re-authenticates. LIMITING FACTORS: not exploitable by anonymous or low-privilege users - the attacker must already hold a trusted backend account with user-management rights; a re-authentication step is needed to activate the new capability; and the escalation only matters where such delegated-manager roles actually exist. These factors mean realistic risk is insider/compromised-operator driven, not opportunistic internet exposure.

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 themes to the modules field and theme_import to the themes field, then re-authenticate), and PR:H correctly reflects that the attacker must already hold a privileged backend account (a delegated user/group manager with the user or group module). No EPSS score, no CISA KEV entry, and no exploit-availability flag were supplied, so there is no quantitative exploitation signal to weigh; absence of these is not evidence of safety but it does argue against widespread opportunistic exploitation. The vuln.today Decision label is this_week, aligning with a 'patch on a short but non-emergency timeline' posture. The core nuance a defender must grasp: raw CVSS reads as 'High network RCE,' but exploitation is only reachable by someone you already granted user-management rights to - so real-world risk is dominated by how many semi-trusted backend operators exist and how much you trust them, not by exposure to anonymous attackers. CWE labeling is split - the input top-levels CWE-94 (code injection) while the GHSA advisory also lists CWE-266 (incorrect privilege assignment); the latter better describes the root cause, with code execution as the consequence.

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 themes module plus the theme_import capability - neither of which is protected by the voter that blocks tpl_editor - and re-authenticates. They then import a crafted theme whose PHP-capable templates run server-side, yielding arbitrary PHP execution and full compromise. No weaponized exploit code is referenced in the input, but the GHSA advisory publishes exact, deterministic reproduction steps against Contao 5.7.9.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

composer contao/core-bundle fix: 5.3.50, 5.7.12

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

GitHub Advisory PRIMARY 7.2 HIGH
AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.2 HIGH

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).

3.1 AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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):

  1. 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).
  2. 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.

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

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

Prevalence
Low
niche open-source PHP CMS, modest deployment footprint versus mainstream platforms
Threat Intel
1
1 source
Data Quality
3 sources
Confidence: Low
NVD CVE.org GHSA GitHub

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

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

pkg:composer/contao_core-bundle
pkg:composer/contao_core-bundle

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

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

CVE-2012-1823 CRITICAL POC
9.8 May 11

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

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

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

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

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

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy