CVE-2026-104883: contao/core-bundle Non-admin Users Can Self-grant Permissions Vulnerability
HIGHCVE-2026-104883 is a HIGH (CVSS 7.2) non-admin users can self-grant permissions vulnerability (CWE-266: Incorrect Privilege Assignment) affecting contao/core-bundle libraries in the Packagist ecosystem. The issue involves non-admin users can self-grant permissions that implicitly make them administrators. Remediation is available by upgrading affected packages to version 5.3.50, 5.7.12.
CVE-2026-104883 at a Glance
Security Impact
CVSS: 7.2
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2026-104883
To remediate this vulnerability, upgrade all affected contao/core-bundle dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade contao/core-bundle to 5.3.50
Upgrade contao/core-bundle to 5.7.12
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for contao/core-bundle
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-104883, inspect your project dependencies for contao/core-bundle:
inspect dependencies for contao/core-bundle
Analyze the terminal output to locate any version of contao/core-bundle in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.3.50), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-266: Incorrect Privilege Assignment, where a product incorrectly assigns a privilege to a particular actor, creating an unintended sphere of control for that actor. In contao/core-bundle, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-104883 Affected contao/core-bundle Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
contao/core-bundle
|
Packagist |
≥ 5.0.0
< 5.3.50
|
5.3.50
|
|
contao/core-bundle
|
Packagist |
≥ 5.4.0-RC1
< 5.7.12
|
5.7.12
|
References
Frequently Asked Questions
What is CVE-2026-104883?
Which contao/core-bundle versions are affected?
What version fixes CVE-2026-104883?
Is contao/core-bundle affected?
What is the CVSS score of CVE-2026-104883?
What CWE is associated with CVE-2026-104883?
How can I check Packagist dependencies for CVE-2026-104883?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-r9qp-pqx5-8369",
"modified" : "2026-11-20T23:45:42Z",
"published" : "2026-11-20T23:45:41Z",
"aliases" : [ "CVE-2026-104883" ],
"summary" : "contao/core-bundle: Non-admin users can self-grant permissions that implicitly make them administrators",
"details" : "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`.\n\nThe 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.\n\nLive repro (Contao 5.7.9):\n1. 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).\n2. 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.\n\n## Impact\n\nA 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.\n\n## Credits\n\nThis security vulnerability was found by @HDWSec",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "contao/core-bundle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.0.0"
}, {
"fixed" : "5.3.50"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "contao/core-bundle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.4.0-RC1"
}, {
"fixed" : "5.7.12"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/contao/contao/security/advisories/GHSA-r9qp-pqx5-8369"
}, {
"type" : "WEB",
"url" : "https://github.com/contao/contao/pull/10153"
}, {
"type" : "WEB",
"url" : "https://github.com/contao/contao/commit/211498f28d4c86484b96eb0612c1193105b79e51"
}, {
"type" : "WEB",
"url" : "https://github.com/contao/contao/commit/a58eb71ef5a7a87da9d90980579dbeb6688448b4"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/contao/contao/CVE-2026-104883.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/contao/core-bundle/CVE-2026-104883.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/contao/contao"
}, {
"type" : "WEB",
"url" : "https://github.com/contao/contao/blob/a11109b60dedcbd99e32a4e8550afdadb500f2c5/CHANGELOG.md"
}, {
"type" : "WEB",
"url" : "https://github.com/contao/contao/blob/a6543f49a92187a7368f51b290179c4795386e23/CHANGELOG.md"
}, {
"type" : "WEB",
"url" : "https://github.com/contao/contao/tree/5.3.50"
}, {
"type" : "WEB",
"url" : "https://github.com/contao/contao/tree/5.7.12"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-266", "CWE-94" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-11-20T23:45:41Z",
"nvd_published_at" : null
}
}