Remote Code Execution via traversal in TAL expressions in Zope

zope Updated 02 Oct 2025

Summary

08/06/2021
Yes i
High
8.8

CVE-2021-32633: Remote Code Execution via traversal in TAL expressions. Affects zope across 2 version ranges.

< 4.6.1 >= 5.0, < 5.2.1

Fixed in 4.6.1 or 5.2.1, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Zope is an open-source web application server written in Python. It provides a platform for building and managing web applications. TAL (Template Attribute Language) is a templating language used in Zope to generate dynamic web content. TAL expressions allow the inclusion of Python code within templates to perform various operations. However, certain untrusted Python modules can be indirectly accessed through TAL expressions, leading to potential security vulnerabilities.

Vulnerability Detail

This vulnerability allows remote code execution via traversal in TAL expressions. While most Python modules are restricted from use in TAL expressions to prevent file system access, some untrusted modules can still be accessed indirectly through other Python modules. By default, only users with the Manager role can add or edit Zope Page Templates through the web, making only sites that allow untrusted users to perform these actions vulnerable. The impact of this vulnerability can be severe, as it allows an attacker to execute arbitrary code on the server.

How To Fix

Latest published version: 6.3.0 as of 23 Oct 2026

pip install --upgrade "zope==6.3.0"

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 4.6.1 4.6.1
    pip install --upgrade "zope==4.6.1"
  • >= 5.0, < 5.2.1 5.2.1
    pip install --upgrade "zope==5.2.1"

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

A workaround for this vulnerability is to restrict the ability to add or edit Zope Page Templates through the web to trusted users only. This can be achieved by adjusting the user and role permissions in Zope. Untrusted users should not be assigned the Manager role.

Conclusion

The vulnerability in Zope that allows remote code execution via traversal in TAL expressions has been addressed in the latest patched versions. It is recommended to update to these versions to mitigate the risk. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for zope →

Share this vulnerability

FAQ

Zope is an open-source web application server written in Python. It provides a platform for building and managing web applications.

TAL (Template Attribute Language) is a templating language used in Zope to generate dynamic web content. It allows the inclusion of Python code within templates.

The vulnerability allows remote code execution via traversal in TAL expressions. An attacker can execute arbitrary code on the server if they have the ability to add or edit Zope Page Templates through the web.

To fix the vulnerability, update to the latest patched version of Zope (5.21 or 4.6.1).

Yes, you can restrict the ability to add or edit Zope Page Templates through the web to trusted users only by adjusting user and role permissions.

Related vulnerabilities

Recent vulnerabilities recorded for zope.

How To Fix

Latest published version: 6.3.0 as of 23 Oct 2026

pip install --upgrade "zope==6.3.0"

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 4.6.1 4.6.1
    pip install --upgrade "zope==4.6.1"
  • >= 5.0, < 5.2.1 5.2.1
    pip install --upgrade "zope==5.2.1"

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback