- Package
- contao/core-bundle
- Fixed in
- 5.3.50, 5.7.12
- Published
- Fri 20 Nov 2026, 23:45 LisbonUpdated Sun 22 Nov 2026, 00:45 Lisbon
- Installs on Packagist
- 2M
In plain words
A non-admin user with delegated user or group management permissions can grant themselves or a managed account theme import permissions that allow arbitrary PHP execution on the server. This can fully compromise the Contao installation, despite the protection against granting template editor access.
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| contao/core-bundle | >= 5.0.0, < 5.3.50 | 5.3.50 |
| contao/core-bundle | >= 5.4.0-RC1, < 5.7.12 | 5.7.12 |
How serious is it?
High is a CVSS score of 7.0 to 8.9: serious impact with few preconditions. Plan the update within days, ahead of feature work, and check the logs for signs it was tried.
contao/core-bundle has 2M installs on Packagist, so the advisory reaches a large number of projects: expect scanners to look for it soon.
Am I affected?
In composer.lock, find contao/core-bundle and check whether its version is at least 5.0.0 but below 5.3.50, or at least 5.4.0-RC1 but below 5.7.12. Then check whether any non-admin backend users or groups have the user or group module, giving them delegated user or group management access. Those are the roles that can abuse the unprotected theme_import permission in the themes field. The fixed versions are 5.3.50 and 5.7.12.
Did you install contao/core-bundle, or did a dependency?
Composer says why a package is in your project:
composer why contao/core-bundle
If the output names your own project, you required contao/core-bundle directly and the update is yours to make. If it names another package, contao/core-bundle came in through it, and that package's version constraint decides which release you can install. To see what stands between you and the fix, ask Composer directly:
composer why-not contao/core-bundle 5.3.50
Every line it prints is a constraint that blocks 5.3.50. Update the package it names, or raise your own constraint, and run it again until it prints nothing. If you stay on an older branch, ask about its fix instead: 5.7.12.
What to do
Check which version you have, then update to a fixed release for your branch (5.3.50, 5.7.12):
composer show contao/core-bundle | grep versions
composer update contao/core-bundle
If your version constraint in composer.json keeps you below a fixed release, raise it first. Whether your configuration is affected, and the exact version ranges, are in the advisory itself.
Check the whole project at once
Composer 2.4 and later can list every installed package with a known advisory, this one included once Packagist has it:
composer audit --locked
--locked reads composer.lock instead of the vendor folder, so you can run it on a release tag or in CI without installing anything. It exits with a non-zero code when it finds an advisory, which is enough to fail a build. Run it on every branch you still support, not only the newest: an older release your customers run is affected in the same way.
Under the Cyber Resilience Act
No exploitation of this vulnerability is known, so on its own it does not start the Article 14 reporting clock, which covers actively exploited vulnerabilities. That changes if you learn it is being exploited through your product: then the 24-hour early warning applies.
Either way, if contao/core-bundle ships inside a product you sell, the CRA treats its vulnerabilities as yours. Article 13(5) asks for due diligence on the components you include, and from 11 December 2027 Annex I asks you to ship security fixes without delay and free of charge for the support period you declared. A short note in your changelog saying which release updated contao/core-bundle, and why, is the evidence you will want later.
What goes in each Article 14 report · Does the CRA apply to your product?
contao/core-bundle's record
This is one of 10 advisories for contao/core-bundle in the digest, the first published on 24 September 2026. A package with several advisories is not worse than one with none, which often just means nobody looked; it does tell you to keep it on your update list and to run composer audit after each update.
Other advisories for contao/core-bundle
- CVE-2026-104884 · 20 Nov 2026 · Medium · fixed in 5.3.50, 5.7.12 contao/core-bundle: Cross-site scripting in the frontend search results
- CVE-2026-104882 · 20 Nov 2026 · Medium · fixed in 5.3.50, 5.7.12 contao/core-bundle: Improper access control in the CSV import wizard
- CVE-2026-107842 · 9 Oct 2026 · Medium · fixed in 5.3.50, 5.7.12 Contao: Protected page content is disclosed to anonymous visitors after contao.search.index_protected is disabled
- CVE-2026-107843 · 9 Oct 2026 · Medium · fixed in 5.3.50, 5.7.12 Contao: The registration module re-sends activation mails
- CVE-2026-107848 · 9 Oct 2026 · Low · fixed in 5.3.50, 5.7.12 Contao: Cross-site request forgery in custom backend actions
- CVE-2026-107844 · 9 Oct 2026 · Medium · fixed in 5.3.50, 5.7.12 Contao: Path traversal in the images controller
- CVE-2026-107850 · 9 Oct 2026 · Medium · fixed in 5.7.12 Contao: Improper access control in the preview links module
- CVE-2026-107851 · 9 Oct 2026 · Medium · fixed in 5.7.12 Contao: Improper access control in the table access voter
The advisory's 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):
- 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
Weakness: CWE-94 Improper Control of Generation of Code; CWE-266 Incorrect Privilege Assignment. Reported by HDWSec.
CWE-94. Code injection: input ends up executed as PHP, which usually means full control of the server.
The advisory
- GitHub Advisory Database: GHSA-r9qp-pqx5-8369, with who is affected and how
- OSV.dev: GHSA-r9qp-pqx5-8369
- All advisories for contao/core-bundle