CVE-2026-104883: contao/core-bundle Non-admin Users Can Self-grant Permissions Vulnerability

HIGH
Advisory Identifier: GHSA-r9qp-pqx5-8369
CVSS 7.2
CWE-266 CWE-94
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2026-104883
GHSA Identifier GHSA-r9qp-pqx5-8369
Severity HIGH
CVSS v3.1 Base Score 7.2
CWE Classification CWE-266: Incorrect Privilege Assignment
Affected Product contao/core-bundle
Package Ecosystem Packagist
Published Date
Last Updated

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (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.

contao/core-bundle fixed: 5.3.50
Upgrade contao/core-bundle to 5.3.50
contao/core-bundle fixed: 5.7.12
Upgrade contao/core-bundle to 5.7.12
Verify Direct and Transitive Dependencies

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

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

CVE-2026-104883 Affected contao/core-bundle Versions

2 component(s)
Fixed Versions:
5.3.505.7.12
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?
CVE-2026-104883 is a security vulnerability in contao/core-bundle involving Non-admin users can self-grant permissions that implicitly make them administrators under CWE-266: Incorrect Privilege Assignment.
Which contao/core-bundle versions are affected?
Affected versions include releases prior to 5.3.50, 5.7.12 across affected packages: contao/core-bundle.
What version fixes CVE-2026-104883?
Upgrading to 5.3.50, 5.7.12 (or the latest patched release for your respective branch) resolves the vulnerability.
Is contao/core-bundle affected?
Yes, contao/core-bundle is affected in releases prior to 5.3.50, 5.7.12. Upgrade your dependency to 5.3.50, 5.7.12 or later.
What is the CVSS score of CVE-2026-104883?
CVE-2026-104883 has a CVSS v3.1 base score of 7.2 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2026-104883?
CVE-2026-104883 is classified under CWE-266: Incorrect Privilege Assignment (A product incorrectly assigns a privilege to a particular actor, creating an unintended sphere of control for that actor.).
How can I check Packagist dependencies for CVE-2026-104883?
Run the dependency tree command: 'inspect dependencies for contao/core-bundle'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}