CVE-2026-57149
Inyección de código en plone.app.portlets
En resumen
Un atacante remoto con una cuenta en el sistema podría tomar el control del sistema afectado sin que nadie haga nada.
Cómo se ataca
- Se puede atacar por la red, incluso desde internet si el servicio está expuesto.
- No requiere condiciones especiales: el ataque se puede repetir de forma confiable.
- Necesita una cuenta con permisos básicos en el sistema.
- No necesita que nadie haga nada: ni abrir un archivo ni hacer clic.
- Puede afectar a otros componentes además del vulnerable (por ejemplo, salir del navegador o de una máquina virtual).
Qué puede lograr el atacante
- Leer información confidencial: datos, archivos o credenciales.
- Modificar información o el sistema; en los casos graves, ejecutar sus propios programas.
- Dejar el servicio o el equipo sin funcionar.
Cómo corregirla
- Revise si usa alguno de los productos y versiones de la lista «A qué afecta».
- Aplique la actualización o la mitigación que indica el fabricante.
- Si no puede actualizar ya, reduzca la exposición: que el servicio no sea accesible desde internet, o desactive la función afectada.
Recomendaciones para este tipo de fallo
- No evaluar texto del usuario como código ni como plantilla; pasarlo siempre como dato a una plantilla fija.
- Usar el modo seguro (sandbox) del motor de plantillas o de expresiones si existe.
- Aplicar los parches del fabricante: muchas de estas fallas están en frameworks.
A qué afecta
plone · plone.app.portlets
>= 7.0.0, < 7.0.2; >= 6.0.0, < 6.0.4; >= 5.0.0, < 5.0.8
Qué es: Inyección de código
El programa evalúa como código algo que viene del usuario (eval, plantillas, expresiones), y el atacante ejecuta su propio código dentro de la aplicación.
Funciones como eval(), motores de plantillas (Jinja, Twig, Freemarker, Velocity) o lenguajes de expresiones (OGNL, SpEL, EL) interpretan texto como código. Si un dato del usuario llega ahí, el atacante ejecuta instrucciones con los permisos de la aplicación, lo que casi siempre termina en control del servidor.
Guía completa: dónde aparece, cómo se corrige y qué evitarDescripción oficial (en inglés)
plone.app.portlets.portlets provides a Plone-specific user interface for plone.portlets, as well as a standard set of portlets that ship with Plone. Starting in version 5.0.0 and prior to versions 5.0.8, 6.0.4, and 7.0.2, the Classic portlet (plone.app.portlets.portlets.classic) used its user-supplied template/macro fields to build a TALES path expression that was then evaluated by the TAL path() helper. Because the value was interpreted as a full TALES expression, a user able to add or edit a Classic portlet could supply a crafted value that escapes simple path traversal and is evaluated as arbitrary code. This is exploitable by any authenticated user who can configure a Classic portlet - which, with the default role map, includes regular users on their personal dashboard. The result is code execution in the context of the Plone process, i.e. a privilege escalation across the trust boundary between an authenticated web user and the server-side process. The problem has been patched in `plone.app.portlets` 5.0.8, 6.0.4, and 7.0.2. Some workarounds are available. Restrict who can manage portlets: remove the `plone.app.portlets.ManageOwnPortlets` permission from untrusted roles, and limit Manage portlets to trusted administrators (usually this is already restricted to the Manager and Site Administrator roles). Where the Classic portlet is not needed, unregister it so it cannot be added. This would need to be done by editing a `portlets.xml` in your own code. One may also effectively disable showing the classic portlet by customising its template. In the Zope Management Interface go to the `portal_view_customizations` tool, locate the `classic.pt` template and click it. Click the Customize button. Remove all text and replace it with `<div>The classic portlet was disabled.</div>`. (This is not a recommended way of customizing a template, but in this case it is quite effective.)