Skip to content

CVE-2021-32674 Remote Code Execution via traversal in TAL expressions

HighCVSS 8.8 EPSS 1.6%
Published
Updated
Exploit status
No public exploit known

Description

Zope is an open-source web application server. This advisory extends the previous advisory at https://github.com/zopefoundation/Zope/security/advisories/GHSA-5pr9-v234-jw36 with additional cases of TAL expression traversal vulnerabilities. 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. The problem has been fixed in Zope 5.2.1 and 4.6.1. The workaround is the same as for https://github.com/zopefoundation/Zope/security/advisories/GHSA-5pr9-v234-jw36: 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.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
pypi zope(PyPI) < 4.6.1; = 4.0; = 4.0a1; = 4.0a2 +42 more 4.6.1, 5.2.1 Fixed
zope < 4.6.1; >= 5.0.0, < 5.2.1 4.6.1, 5.2.1 Fixed
zopefoundation Zope = < 4.6.1; = >= 5.0.0, < 5.2.1 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi zope(PyPI) < 4.6.1 4.6.1
pypi zope(PyPI) = 4.0 No fix listed
pypi zope(PyPI) = 4.0b1 No fix listed
pypi zope(PyPI) = 4.0b10 No fix listed
pypi zope(PyPI) = 4.0b2 No fix listed
pypi zope(PyPI) = 4.0b3 No fix listed
pypi zope(PyPI) = 4.0b4 No fix listed
pypi zope(PyPI) = 4.0b5 No fix listed
pypi zope(PyPI) = 4.0b6 No fix listed
pypi zope(PyPI) = 4.0b7 No fix listed
pypi zope(PyPI) = 4.0b8 No fix listed
pypi zope(PyPI) = 4.0b9 No fix listed
pypi zope(PyPI) = 4.1 No fix listed
pypi zope(PyPI) = 4.1.1 No fix listed
pypi zope(PyPI) = 4.1.2 No fix listed
pypi zope(PyPI) = 4.1.3 No fix listed
pypi zope(PyPI) = 4.2 No fix listed
pypi zope(PyPI) = 4.2.1 No fix listed
pypi zope(PyPI) = 4.3 No fix listed
pypi zope(PyPI) = 4.4 No fix listed
pypi zope(PyPI) = 4.4.1 No fix listed
pypi zope(PyPI) = 4.4.2 No fix listed
pypi zope(PyPI) = 4.4.3 No fix listed
pypi zope(PyPI) = 4.4.4 No fix listed
pypi zope(PyPI) = 4.5 No fix listed
Show 25 more
ProductAffected versionsFixed in
pypi zope(PyPI) = 4.5.1 No fix listed
pypi zope(PyPI) = 4.5.2 No fix listed
pypi zope(PyPI) = 4.5.3 No fix listed
pypi zope(PyPI) = 4.5.4 No fix listed
pypi zope(PyPI) = 4.5.5 No fix listed
pypi zope(PyPI) = 4.6 No fix listed
pypi zope(PyPI) >= 5.0, < 5.2.1 5.2.1
pypi zope(PyPI) = 5.0 No fix listed
pypi zope(PyPI) = 5.1 No fix listed
pypi zope(PyPI) = 5.1.1 No fix listed
pypi zope(PyPI) = 5.1.2 No fix listed
pypi zope(PyPI) = 5.2 No fix listed
pypi zope(PyPI) >= 4.0, < 4.6.1 4.6.1
pypi zope(PyPI) = 5.0a2 No fix listed
pypi zope(PyPI) = 5.0a1 No fix listed
pypi zope(PyPI) = 4.0a6 No fix listed
pypi zope(PyPI) = 4.0a5 No fix listed
pypi zope(PyPI) = 4.0a4 No fix listed
pypi zope(PyPI) = 4.0a3 No fix listed
pypi zope(PyPI) = 4.0a2 No fix listed
pypi zope(PyPI) = 4.0a1 No fix listed
zope < 4.6.1 4.6.1
zope >= 5.0.0, < 5.2.1 5.2.1
zopefoundation Zope = >= 5.0.0, < 5.2.1 No fix listed
zopefoundation Zope = < 4.6.1 No fix listed

References