Vulnerability DatabaseCVE-2026-104883

CVE-2026-104883: 
PHP vulnerability analysis and mitigation

Overview

CVE-2026-104883 is a privilege escalation vulnerability in Contao CMS (contao/core-bundle) that allows a delegated non-admin backend user to self-grant the theme_import capability, which enables arbitrary PHP code execution on the server. The vulnerability affects contao/core-bundle versions >=5.0.0 and <5.3.50, and >=5.4.0-RC1 and <5.7.12. It was published on August 25, 2026, by maintainer leofeyer and discovered by researcher @HDWSec. The CVSS v3.1 base score is 7.2 (High) per the GitHub Advisory Database, though the original advisory notes a score of 8.8 (High) with lower privilege requirements (GitHub Advisory, Github Advisory).

Technical details

The root cause is an incomplete access control implementation (CWE-94, CWE-269, CWE-266): commit 2b83a60f7763 (version 5.7.3) introduced TemplateEditorModuleVoter and CheckTemplateEditorSaveListener to prevent non-admins from self-granting the tpl_editor backend module, but this voter only covers the modules field and the literal value tpl_editor. The equally RCE-capable theme_import capability resides in a separate themes checkbox field (tl_user_group.php:98-105 and tl_user.php:248-253) that has no corresponding save_callback or voter. Because TemplateEditorModuleVoter is the only Data Container voter registered for tl_user_group and does not cover the themes field, a delegated user manager (a non-admin with user or group module access) can freely add theme_import to their own or a managed account. Once theme_import is granted, the attacker can upload and execute arbitrary PHP via the theme import functionality (GitHub Advisory, Github Advisory).

Impact

Successful exploitation allows a delegated user/group manager — a role explicitly not trusted with template or code access — to escalate to arbitrary PHP execution on the server, fully compromising the Contao installation. This results in complete loss of confidentiality, integrity, and availability of the affected system, as the attacker gains the ability to read, modify, or delete any data, install backdoors, or pivot to other systems accessible from the server. The attack bypasses the specific protection introduced in version 5.7.3 for the tpl_editor module (GitHub Advisory).

Exploitability

A proof-of-concept exploit is publicly available on GitHub (googlesky/CVE-2026-104883), described as a standalone full-chain Python exploit (exploit/exploit.py) that takes a delegated user from self-granting theme_import to arbitrary PHP execution. The GitHub Security Advisory also provides a concrete, ordered attack sequence sufficient to reproduce the privilege escalation. As of the time of reporting, there is no confirmed evidence of in-the-wild exploitation, and the CVE is not listed in the CISA KEV catalog. Authentication as a backend user with delegated user/group management permissions is required (Github Advisory, Feedly).

Exploitation steps

  1. Reconnaissance: Identify a Contao installation running a vulnerable version (>=5.0.0, <5.3.50 or >=5.4.0-RC1, <5.7.12) and obtain credentials for a non-admin backend account that has the user or group module enabled (delegated user manager role).
  2. Authenticate: Log in to the Contao backend as the delegated user manager.
  3. Edit group or user account: Navigate to the user group or user account settings in the backend. Add themes to the modules field (permitted, as only tpl_editor is blocked by the voter).
  4. Self-grant theme_import: In the same group/user edit form, add theme_import to the themes checkbox field. Submit the form — no voter or save_callback blocks this action.
  5. Re-authenticate: Log out and log back in so the new permissions take effect.
  6. Execute arbitrary PHP: Use the newly granted theme_import capability to upload a crafted theme archive containing a malicious PHP file. Upon import, the PHP code is executed server-side, achieving full remote code execution (GitHub Advisory, Github Advisory).

Indicators of compromise

  • Logs: Contao backend access logs showing a non-admin user editing tl_user_group or tl_user records and adding theme_import to the themes field; log entries for theme import actions performed by non-admin accounts.
  • Database: Unexpected theme_import value present in the themes column of tl_user or tl_user_group for non-administrator accounts.
  • File System: Newly uploaded or modified PHP files within the Contao themes or templates directory following a theme import event; unexpected web shells or PHP scripts in the web root.
  • Process: Unusual child processes spawned by the PHP/web server process (e.g., bash, curl, wget, python) following a theme import operation.
  • Network: Outbound connections from the web server to unknown external hosts shortly after a theme import event, potentially indicating reverse shell or data exfiltration activity.

Mitigation and workarounds

Update contao/core-bundle to version 5.3.50 or 5.7.12, which extend the voter-based access controls to cover the theme_import capability in the themes field (Github Advisory, FriendsOfPHP Advisory). As an interim workaround, restrict the user and group backend modules to fully trusted administrators only, preventing any delegated user manager from existing. Additionally, audit all existing user and group accounts to verify that no non-admin accounts have theme_import enabled in the themes field, and remove it if found.

Community reactions

The vulnerability was reported by security researcher @HDWSec and published by Contao maintainer leofeyer as part of a batch of security fixes in version 5.7.12 on August 25, 2026. The advisory was reviewed and added to the GitHub Advisory Database on November 20, 2026. No significant broader media coverage or notable public researcher commentary beyond the official advisory has been identified at this time (GitHub Advisory).

Additional resources


Source: This report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-104883HIGH7.2
  • PHP logoPHP
  • contao/core-bundle
NoYesNov 20, 2026
GHSA-vw9g-2c4c-g767MEDIUM6.8
  • PHP logoPHP
  • livewire/livewire
NoYesNov 21, 2026
CVE-2026-104882MEDIUM6.5
  • PHP logoPHP
  • cpe:2.3:a:contao:contao
NoYesNov 20, 2026
GHSA-2g6w-c7gx-fxj8MEDIUM5.4
  • PHP logoPHP
  • guzzlehttp/guzzle
NoYesNov 21, 2026
CVE-2026-104884MEDIUM5.4
  • PHP logoPHP
  • composer://contao/contao
NoYesNov 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management