CVE-2021-32633
JSON

6.8medium

Remote Code Execution via traversal in TAL expressions

Severity
6.8medium CVSS:3.1 by GitHub_M
Exploit likelihood
1.86% (higher than 80% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-5pr9-v234-jw36GHSA-962m-m8jw-8wrrPYSEC-2021-88

Description

Zope is an open-source web application server. In Zope versions prior to 4.6 and 5.2, users can access untrusted modules indirectly through Python modules that are available for direct use. By default, only users with the Manager role can add or edit Zope Page Templates through the web, but sites that allow untrusted users to add/edit Zope Page Templates through the web are at risk from this vulnerability. The problem has been fixed in Zope 5.2 and 4.6. As a workaround, a site administrator can restrict adding/editing Zope Page Templates through the web using the standard Zope user/role permission mechanisms. Untrusted users should not be assigned the Zope Manager role and adding/editing Zope Page Templates through the web should be restricted to trusted users only.

Affected

Product or packageVersionsReported by
zopefoundation Zope< 4.6, >= 5.0, < 5.2CVE List
zope (PyPI)before 4.6, from 5.0 before 5.2, before 1f8456bf1f908ea46012537d52bd7e752a532c91GitHub Advisory Database, PyPA Advisory Database
plone ploneup to 4.3.20, from 5.0 up to 5.2.4NVD
zope zopebefore 4.6, from 5.0 before 5.2NVD

All scores

GitHub_M6.8medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
GitHub6.8high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
GitHub8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD6.5medium CVSS:2.0AV:N/AC:L/Au:S/C:P/I:P/A:P

Classification

What each source says

CVE List

Zope is an open-source web application server. In Zope versions prior to 4.6 and 5.2, users can access untrusted modules indirectly through Python modules that are available for direct use. By default, only users with the Manager role can add or edit Zope Page Templates through the web, but sites that allow untrusted users to add/edit Zope Page Templates through the web are at risk from this vulnerability. The problem has been fixed in Zope 5.2 and 4.6. As a workaround, a site administrator can restrict adding/editing Zope Page Templates through the web using the standard Zope user/role permission mechanisms. Untrusted users should not be assigned the Zope Manager role and adding/editing Zope Page Templates through the web should be restricted to trusted users only.

GitHub Advisory Database
Impact

Most Python modules are not available for using in TAL expressions that you can add through-the-web, for example in Zope Page Templates. This restriction avoids file system access, for example via the 'os' module. But some of the untrusted modules are available indirectly through Python modules that are available for direct use.

By default, you need to have the Manager role to add or edit Zope Page Templates through the web. Only sites that allow untrusted users to add/edit Zope Page Templates through the web are at risk.

Patches

The problem has been fixed in Zope 5.2 and 4.6.

Workarounds

A site administrator can restrict adding/editing Zope Page Templates through the web using the standard Zope user/role permission mechanisms. Untrusted users should not be assigned the Zope Manager role and adding/editing Zope Page Templates through the web should be restricted to trusted users only.

For more information

If you have any questions or comments about this advisory:

GitHub Advisory Database

Duplicate Advisory

This advisory has been withdrawn because it is a duplicate of GHSA-5pr9-v234-jw36. This link is maintained to preserve external references.

Original Description

Zope is an open-source web application server. In Zope versions prior to 4.6 and 5.2, users can access untrusted modules indirectly through Python modules that are available for direct use. By default, only users with the Manager role can add or edit Zope Page Templates through the web, but sites that allow untrusted users to add/edit Zope Page Templates through the web are at risk from this vulnerability. The problem has been fixed in Zope 5.2 and 4.6. As a workaround, a site administrator can restrict adding/editing Zope Page Templates through the web using the standard Zope user/role permission mechanisms. Untrusted users should not be assigned the Zope Manager role and adding/editing Zope Page Templates through the web should be restricted to trusted users only.

NVD (es)

Zope es un servidor de aplicaciones web de código abierto.&#xa0;En las versiones de Zope anteriores a 4.6 y 5.2, los usuarios pueden acceder a módulos que no son confiables indirectamente por medio de módulos de Python que están disponibles para uso directo.&#xa0;Por defecto, solo los usuarios con la función de administrador pueden agregar o editar Zope Page Templates por medio de la web, pero los sitios que permiten a usuarios no confiables agregar y editar plantillas de página de Zope por medio de la web están en riesgo de esta vulnerabilidad.&#xa0;El problema se ha solucionado en Zope versiones 5.2 y 4.6.&#xa0;Como solución alternativa, un administrador del sitio puede restringir la adición y edición de plantillas de página Zope por medio de la web utilizando los mecanismos estándar de permisos user/role de Zope. Usuarios no confiables no debe ser asignado el rol de administrador de Zope y Zope Page Templates de adición y edición por medio de la web debe estar restringida solo a usuarios confiables

References

https://github.com/zopefoundation/Zope/security/advisories/GHSA-5pr9-v234-jw36advisory, third-party-advisory, web
https://github.com/zopefoundation/Zope/commit/1f8456bf1f908ea46012537d52bd7e752a532c91fix, patch, third-party-advisory, web
http://www.openwall.com/lists/oss-security/2021/05/21/1mailing-list, third-party-advisory, web
http://www.openwall.com/lists/oss-security/2021/05/22/1mailing-list, third-party-advisory, web
https://cyllective.com/blog/post/plone-authenticated-rce-cve-2021-32633/exploit, third-party-advisory
https://nvd.nist.gov/vuln/detail/CVE-2021-32633advisory
https://cyllective.com/blog/post/plone-authenticated-rce-cve-2021-32633web
https://github.com/pypa/advisory-database/tree/main/vulns/zope/PYSEC-2021-88.yamlweb
https://github.com/zopefoundation/Zopepackage
https://github.com/advisories/GHSA-962m-m8jw-8wrradvisory

Related

Sources

SourceRecordLicence
CVE ListCVE-2021-32633 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-5pr9-v234-jw36 changed 2026-07-09CC-BY-4.0
GitHub Advisory DatabaseGHSA-962m-m8jw-8wrr changed 2026-07-09CC-BY-4.0
NVDCVE-2021-32633 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2021-88 changed 2026-07-09CC-BY-4.0