Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-32674

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-32674
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:46 UTC · Revision 1

Source evidence

CVE-2021-32674

core-osv · Original source

Published 8 Jun 2021, 18:15 UTC

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.

osv:CVE-2021-32674
Complete source record
{
  "id": "b0755d71cdf1bbd934fbaae5537b17e42616f386e6209d3dfdba017fa1c731ae",
  "url": "https://osv.dev/vulnerability/CVE-2021-32674",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-32674",
    "summary": "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.",
    "evidence": "osv:CVE-2021-32674",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-32674",
      "aliases": [
        "CVE-2021-32674",
        "GHSA-5vq5-pg3r-9ph3",
        "GHSA-rpcg-f9q6-2mq6",
        "PYSEC-2021-104"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/zopefoundation/zope",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "52085f3083f0b1f468109c1b127e140a249edf36"
                },
                {
                  "fixed": "fabdc34486765392176721e2ea101f3572302aec"
                },
                {
                  "fixed": "1d897910139e2c0b11984fc9b78c1da1365bec21"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:zope:zope:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "4.6.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:zope:zope:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.0.0"
                      },
                      {
                        "fixed": "5.2.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "1d897910139e2c0b11984fc9b78c1da1365bec21"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "4.6",
            "5.2",
            "5.1.2",
            "4.5.5",
            "5.1.1",
            "4.5.4",
            "4.5.3",
            "5.1",
            "4.5.2",
            "5.0",
            "4.5.1",
            "4.5",
            "4.4.4",
            "4.4.3",
            "4.4.2",
            "4.4.1",
            "5.0a2",
            "4.4",
            "5.0a1",
            "4.3",
            "4.2.1",
            "4.2",
            "4.1.3",
            "4.1.2",
            "4.1.1",
            "4.1",
            "4.0",
            "4.0b10",
            "4.0b9",
            "4.0b8",
            "4.0b7",
            "4.0b6",
            "4.0b5",
            "4.0b4",
            "4.0b3",
            "4.0b2",
            "4.0b1",
            "4.0a6",
            "4.0a5",
            "4.0a4",
            "4.0a3",
            "4.0a2",
            "4.0a1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-32674.json"
          }
        }
      ],
      "modified": "2026-10-20T10:54:42.409224645Z",
      "provider": "osv",
      "references": [
        "https://github.com/zopefoundation/Zope/security/advisories/GHSA-5pr9-v234-jw36",
        "https://github.com/zopefoundation/Zope/security/advisories/GHSA-rpcg-f9q6-2mq6",
        "https://github.com/zopefoundation/Zope/commit/1d897910139e2c0b11984fc9b78c1da1365bec21",
        "https://pypi.org/project/Zope/"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-32674",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 385939,
  "published_at": "2021-06-08T18:15:08.307+00:00"
}