HIGH · CVSS 3.1 7.2 CWE-266CWE-94

CVE-2026-104883: contao/core-bundle: Non-admin users can self-grant permissions that implicitly make them administrators

Published 2026-11-20 · Updated 2026-11-21 · Also known as GHSA-r9qp-pqx5-8369

Summary

A privilege escalation vulnerability in contao/core-bundle allows non-admin users with user management permissions to self-grant the theme_import capability, bypassing previous hardening measures. Engineering and security teams using Contao 5.x should update their packages immediately.

Who is affected

Affected deployments are those running vulnerable versions of contao/core-bundle where a delegated user or group manager can modify their own or managed accounts. By adding the theme_import capability (which is not protected by the template editor voter), an attacker can achieve arbitrary PHP execution on the server and fully compromise the installation.

Exploitability

The vulnerability has a CVSS 3.1 base score of 7.2 (HIGH) with a vector of CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H, indicating it can be exploited over the network with low attack complexity requiring high privileges, but no user interaction. EPSS is not yet available, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-21. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
Packagist contao/core-bundle >= 5.0.0, < 5.3.50 5.3.50 composer require "contao/core-bundle:>=5.3.50"
Packagist contao/core-bundle >= 5.4.0-RC1, < 5.7.12 5.7.12 composer require "contao/core-bundle:>=5.7.12"

CVSS 3.1 vector

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Attack vectorNetwork
Attack complexityLow
Privileges requiredHigh
User interactionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

FAQ

What causes the vulnerability?

The vulnerability occurs because previous hardening only protected the `tpl_editor` module using a DataContainer voter, leaving the equally RCE-capable `theme_import` capability in the `themes` field unprotected and accessible to delegated user managers.

What is the required access level to exploit this vulnerability?

An attacker needs a delegated user or group manager role (high privileges) to modify user and group permissions and add the `theme_import` capability.

What are the fixed versions for contao/core-bundle?

The fixed versions are 5.3.50 and 5.7.12.

Original advisory description
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

References

Source records: GHSA-r9qp-pqx5-8369 (OSV.dev).