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 package | Versions | Reported by |
|---|---|---|
| zopefoundation Zope | < 4.6, >= 5.0, < 5.2 | CVE List |
| zope (PyPI) | before 4.6, from 5.0 before 5.2, before 1f8456bf1f908ea46012537d52bd7e752a532c91 | GitHub Advisory Database, PyPA Advisory Database |
| plone plone | up to 4.3.20, from 5.0 up to 5.2.4 | NVD |
| zope zope | before 4.6, from 5.0 before 5.2 | NVD |
All scores
| GitHub_M | 6.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N |
| GitHub | 6.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N |
| GitHub | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 6.5medium CVSS:2.0 | AV: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:
- Open an issue in the Zope issue tracker
- Email us at security@plone.org
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. 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. 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. El problema se ha solucionado en Zope versiones 5.2 y 4.6. 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-jw36 | advisory, third-party-advisory, web | |
| https://github.com/zopefoundation/Zope/commit/1f8456bf1f908ea46012537d52bd7e752a532c91 | fix, patch, third-party-advisory, web | |
| http://www.openwall.com/lists/oss-security/2021/05/21/1 | mailing-list, third-party-advisory, web | |
| http://www.openwall.com/lists/oss-security/2021/05/22/1 | mailing-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-32633 | advisory | |
| https://cyllective.com/blog/post/plone-authenticated-rce-cve-2021-32633 | web | |
| https://github.com/pypa/advisory-database/tree/main/vulns/zope/PYSEC-2021-88.yaml | web | |
| https://github.com/zopefoundation/Zope | package | |
| https://github.com/advisories/GHSA-962m-m8jw-8wrr | advisory | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-32633 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-5pr9-v234-jw36 changed 2026-07-09 | CC-BY-4.0 |
| GitHub Advisory Database | GHSA-962m-m8jw-8wrr changed 2026-07-09 | CC-BY-4.0 |
| NVD | CVE-2021-32633 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2021-88 changed 2026-07-09 | CC-BY-4.0 |