Advisory

GHSA-5pr9-v234-jw36

Also known as: CVE-2021-32633, GHSA-962m-m8jw-8wrr, PYSEC-2021-88

Summary

Remote Code Execution via traversal in TAL expressions

Details

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:

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-06-18 18:44 UTC
Modified
2026-07-09 16:56 UTC

Affected packages and fixes

zope

PyPI · All systems

Affected

  • introduced 0, fixed 4.6 (ecosystem)

Fixed versions

4.6

Fix

  • Fixed version 4.6
    pip install --upgrade zope==4.6

zope

PyPI · All systems

Affected

  • introduced 5.0, fixed 5.2 (ecosystem)

Fixed versions

5.2

Fix

  • Fixed version 5.2
    pip install --upgrade zope==5.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences