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

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.59%, higher than 76% of CVEs (2026-12-01)
- Published: 2021-06-08T17:45:12.000Z
- Modified: 2026-07-09T16:56:40.219Z
- Also known as: GHSA-5vq5-pg3r-9ph3, GHSA-rpcg-f9q6-2mq6, PYSEC-2021-104
- Weaknesses: CWE-12, CWE-22
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- zopefoundation Zope: >= 5.0.0, < 5.2.1; < 4.6.1
- zope (PyPI): before 4.6.1; from 5.0 before 5.2.1; before 1d897910139e2c0b11984fc9b78c1da1365bec21; from 4.0 before 4.6.1
- zope zope: before 4.6.1; from 5.0.0 before 5.2.1

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`

## References

- <https://github.com/zopefoundation/Zope/security/advisories/GHSA-rpcg-f9q6-2mq6> (advisory, third-party-advisory, web)
- <https://github.com/zopefoundation/Zope/security/advisories/GHSA-5pr9-v234-jw36> (third-party-advisory, web)
- <https://github.com/zopefoundation/Zope/commit/1d897910139e2c0b11984fc9b78c1da1365bec21> (fix, patch, third-party-advisory, web)
- <https://pypi.org/project/Zope/> (package, product)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-32674> (advisory)
- <https://github.com/zopefoundation/Zope> (package)
- <https://pypi.org/project/Zope> (web)
- <https://github.com/advisories/GHSA-5vq5-pg3r-9ph3> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/zope/PYSEC-2021-104.yaml> (web)
- <https://github.com/advisories/GHSA-rpcg-f9q6-2mq6> (advisory)

## Sources

- CVE List: [CVE-2021-32674](https://www.cve.org/CVERecord?id=CVE-2021-32674), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-5vq5-pg3r-9ph3](https://github.com/advisories/GHSA-5vq5-pg3r-9ph3), CC-BY-4.0, modified 2026-07-09
- GitHub Advisory Database: [GHSA-rpcg-f9q6-2mq6](https://github.com/advisories/GHSA-rpcg-f9q6-2mq6), CC-BY-4.0, modified 2026-07-09
- NVD: [CVE-2021-32674](https://nvd.nist.gov/vuln/detail/CVE-2021-32674), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-104](https://osv.dev/vulnerability/PYSEC-2021-104), CC-BY-4.0, modified 2026-07-09

---

Page: https://cve.day/CVE-2021-32674 · Whole record: https://cve.day/CVE-2021-32674.json · Rebuilt by cve.day 2026-11-25T22:58:01.690Z
