cve.bz

CVE-2021-32807 zope accesscontrol: Prototype Pollution

7.2 highEPSS 2.1%Fix available

High (7.2) in zope accesscontrol. EPSS 2.1% estimated probability of exploitation activity in the next 30 days. Fixed in accesscontrol 4.3, 5.2.

On this page
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.

Severity

CVSS 3.1

7.2 high
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
EPSS
2.1% (unchanged from 2.1% a week ago; 2.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 82nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-1321 Improperly Controlled Modification of Object Prototype Attributes (Prototype Pollution)
CWE-915 Improperly Controlled Modification of Dynamically-Determined Object Attributes
OWASP Top 10
A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-32807 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-32807?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-32807?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-32807 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
zope:accesscontrolfrom 4.0 before 4.3
zope:accesscontrolfrom 5.0 before 5.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-qcx9-j53g-ccgfPyPIaccesscontrol>=4.0 <4.34.3
GHSA-qcx9-j53g-ccgfPyPIaccesscontrol>=5.0 <5.25.2
GHSA-qcx9-j53g-ccgfPyPIzope>=4.0 <4.34.3
GHSA-qcx9-j53g-ccgfPyPIzope>=5.0 <5.25.2
PYSEC-2021-335PyPIaccesscontrol>=4.0 <4.3
>=5.0 <5.2
4.3, 5.2
PYSEC-2021-875PyPIzope>=4.0 <4.3
>=5.0 <5.2
4.3, 5.2

Attack patterns (CAPEC)

  • CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs Likelihood: High · Severity: High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-180 Exploiting Incorrectly Configured Access Control Security Levels Likelihood: High · Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON