{"id":"CVE-2021-32633","published":"2021-05-21T13:55:10Z","modified":"2024-08-03T23:25:30Z","title":"Remote Code Execution via traversal in TAL expressions","vendor":"zopefoundation","product":"Zope","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01858,"percentile":0.79738,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/zopefoundation/Zope/security/advisories/GHSA-5pr9-v234-jw36","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/zopefoundation/Zope/commit/1f8456bf1f908ea46012537d52bd7e752a532c91","tags":["x_refsource_MISC"]},{"url":"http://www.openwall.com/lists/oss-security/2021/05/21/1","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://www.openwall.com/lists/oss-security/2021/05/22/1","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://cyllective.com/blog/post/plone-authenticated-rce-cve-2021-32633/","tags":["x_refsource_MISC"]}],"priority":{"score":20.7,"factors":[{"name":"EPSS percentile","points":15.95},{"name":"CVSS severity","points":4.76}]},"vendorSlug":"zopefoundation","affectedVersions":[{"vendor":"zopefoundation","product":"Zope","versions":["< 4.6",">= 5.0, < 5.2"]}],"affected":[{"ecosystem":"PyPI","package":"Zope","vulnerableRanges":["<4.6",">=5.0, <5.2"],"patched":["4.6","5.2"],"from":["GHSA-5pr9-v234-jw36","PYSEC-2021-88"],"provenance":"source"}],"summary":{"text":"Zope, an open-source web application server from zopefoundation, contains a path traversal flaw in its TAL expression handling that lets users reach untrusted modules indirectly through Python modules available for direct use. An attacker with low-privilege authenticated access (able to add or edit Zope Page Templates through the web, which by default requires the Manager role) and network reach to the server can exploit it, though attack complexity is high and the attack is only possible on sites that grant that page-template capability to untrusted users.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:14:19Z"},"euvd":{"id":"EUVD-2021-0471","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-zopefoundation-zope-cve-2021-32633","children":[{"from":"CVE-2021-32633","to":"CVE-2021-32674","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-5pr9-v234-jw36","via":"related"},{"kind":"osv-related","provenance":"source","id":"GHSA-5vq5-pg3r-9ph3","via":"reference","url":"https://github.com/zopefoundation/Zope/security/advisories/GHSA-5pr9-v234-jw36"},{"kind":"osv-related","provenance":"source","id":"GHSA-rpcg-f9q6-2mq6","via":"reference","url":"https://github.com/zopefoundation/Zope/security/advisories/GHSA-5pr9-v234-jw36"},{"kind":"version-step","provenance":"source","package":"PyPI:Zope","fromFixed":"4.6","toFixed":"4.6.1","daysApart":18},{"kind":"version-step","provenance":"source","package":"PyPI:Zope","fromFixed":"5.2","toFixed":"5.2.1","daysApart":18},{"kind":"same-code","provenance":"machine","files":["src/Products/PageTemplates/Expressions.py","src/Products/PageTemplates/expression.py"],"commits":["https://github.com/zopefoundation/Zope/commit/1f8456bf1f908ea46012537d52bd7e752a532c91","https://github.com/zopefoundation/Zope/commit/1d897910139e2c0b11984fc9b78c1da1365bec21"],"basis":"shared function","functions":["boboAwareZopeTraverse"]}]}],"packageHistory":[{"cve":"CVE-2010-3198","published":"2010-09-08","fixed":"2.11.7","kev":false},{"cve":"CVE-2021-32633","published":"2021-05-21","fixed":"5.2","kev":false},{"cve":"CVE-2021-32674","published":"2021-06-08","fixed":"5.2.1","kev":false},{"cve":"CVE-2021-32811","published":"2021-08-02","fixed":"5.3","kev":false},{"cve":"CVE-2023-41050","published":"2023-09-06","fixed":"5.8.4","kev":false}],"package":"PyPI:Zope"}}