CVE-2026-104883: 
PHP Análise e mitigação de vulnerabilidades

Visão geral

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

Detalhes técnicos

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

Impacto

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

Explorabilidade

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

Etapas de exploração

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

Indicadores de compromisso

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

Mitigação e soluções alternativas

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.

Reações da comunidade

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

Recursos adicionais


Origem: Este relatório foi gerado usando IA

Relacionado PHP Vulnerabilidades:

CVE ID

Gravidade

Pontuação

Tecnologias

Nome do componente

Exploit CISA KEV

Tem correção

Data de publicação

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

Avaliação Gratuita de Vulnerabilidades

Avalie a sua postura de segurança na nuvem

Avalie suas práticas de segurança em nuvem em 9 domínios de segurança para avaliar seu nível de risco e identificar lacunas em suas defesas.

Avaliação de solicitação

Recursos adicionais da Wiz

Marque uma demonstração personalizada

Pronto para ver a Wiz em ação?

"A melhor experiência do usuário que eu já vi, fornece visibilidade total para cargas de trabalho na nuvem."
David EstlickCISO
"A Wiz fornece um único painel de vidro para ver o que está acontecendo em nossos ambientes de nuvem."
Adam FletcherDiretor de Segurança
"Sabemos que se a Wiz identifica algo como crítico, na verdade é."
Greg PoniatowskiChefe de Gerenciamento de Ameaças e Vulnerabilidades