BreachSpiderVerified, not vibes

CVE-2021-32807 in Zope Accesscontrol

High 7.2

The module `AccessControl` defines security policies for Python code used in restricted code within Zope applications. Restricted code is any code that resides in Zope's object database, such as the contents of `Script (Python)` objects. The policies defined in `AccessControl` severely restrict access to Python modu...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.17.2
EPSS2.1%
EPSS percentile82th
FixUnknown

Remotely exploitable over the network, low complexity, high privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Zope Accesscontrol ≥ 4.0, < 4.3 ≥ 5.0, < 5.2

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

The module `AccessControl` defines security policies for Python code used in restricted code within Zope applications. Restricted code is any code that resides in Zope's object database, such as the contents of `Script (Python)` objects. The policies defined in `AccessControl` severely restrict access to Python modules and only exempt a few that are deemed safe, such as Python's `string` module. However, full access to the `string` module also allows access to the class `Formatter`, which can be overridden and extended within `Script (Python)` in a way that provides access to other unsafe Python libraries. Those unsafe Python libraries can be used for remote code execution. By default, you need to have the admin-level Zope "Manager" role to add or edit `Script (Python)` objects through the web. Only sites that allow untrusted users to add/edit these scripts through the web - which would be a very unusual configuration to begin with - are at risk. The problem has been fixed in AccessControl 4.3 and 5.2. Only AccessControl versions 4 and 5 are vulnerable, and only on Python 3, not Python 2.7. As a workaround, a site administrator can restrict adding/editing `Script (Python)` objects through the web using the standard Zope user/role permission mechanisms. Untrusted users should not be assigned the Zope Manager role and adding/editing these scripts through the web should be restricted to trusted users only. This is the default configuration in Zope.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2021-32807
BreachSpider IDBS-2021-GLOBAL-076301-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Published2021-07-30
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-915: CWE-915

CWE-1321: CWE-1321

Related attack patterns (CAPEC)

CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs via CWE-1321

CAPEC-77 Manipulating User-Controlled Variables via CWE-1321

CAPEC-180 Exploiting Incorrectly Configured Access Control Security Levels via CWE-1321

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

CVE-2021-32807 affects the AccessControl module in Zope applications, allowing unauthorized access to restricted code by exploiting insufficient security policies.

An attacker can exploit this vulnerability by crafting malicious Python scripts that bypass the security policies defined in the AccessControl module, potentially leading to unauthorized access to sensitive data or system functions.

Questions

What is CVE-2021-32807?

CVE-2021-32807 affects the AccessControl module in Zope applications, allowing unauthorized access to restricted code by exploiting insufficient security policies.

What is the CVSS score for CVE-2021-32807?

CVE-2021-32807 has CVSS 7.2 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H. EPSS: 2.1%.

Is CVE-2021-32807 actively exploited?

No confirmed active exploitation of CVE-2021-32807 as of 2026-09-25.

How do I remediate CVE-2021-32807?

Priority: HIGH.

What systems are affected by CVE-2021-32807?

CVE-2021-32807 affects Zope Accesscontrol.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Zope","product":"Accesscontrol","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.