CVE-2021-32811: Remote Code Execution via Script (Python) objects under Python 3
Vulnerability summary
CVE-2021-32811 is a high (CVSS 7.5) vulnerability in zope accesscontrol. EPSS estimates a 2.30% chance of exploitation in the next 30 days, higher than 83.2% of scored vulnerabilities.
Not severe (CVSS 7.5, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 0 · Related 1Timeline
- 02-08-2021PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
Description
Zope is an open-source web application server. Zope versions prior to versions 4.6.3 and 5.3 have a remote code execution security issue. In order to be affected, one must use Python 3 for one's Zope deployment, run Zope 4 below version 4.6.3 or Zope 5 below version 5.3, and have the optional `Products.PythonScripts` add-on package installed. By default, one must 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 are at risk. Zope releases 4.6.3 and 5.3 are not vulnerable. 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.
CVSS metrics
6 scores · 4 sources · 3 versions- OSV · PypiEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated7.2HighCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:HDiffers
- NVDNIST7.2HighCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:HDiffers
EPSS trend
Probability
2.30%
Chance of exploitation in the next 30 days
Percentile
83%
Versus all other CVEs
30-day change
No change 0.00 pp
From 2.30% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-915Improperly Controlled Modification of Dynamically-Determined Object AttributesThe product receives input from an upstream component that specifies multiple attributes, properties, or fields that are to be initialized or updated in an object, but it does not properly control which attributes can be modified.
- CWE-1321Improperly Controlled Modification of Object Prototype AttributesThe product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype.
Affected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
PyPI2 products
- accesscontrol≥ 5.0, < 5.2
- zope≥ 4.0, < 4.6.3 | < f72a18dda8e9bf2aedb46168761668464a4be988 | ≥ 5.0, < 5.3
Zope2 products
- accesscontrol≥ 4.0, < 4.3 | ≥ 5.0, < 5.2
- zope≥ 4.0, < 4.6.3 | ≥ 5.0, < 5.3
Ubuntu1 product
- zope2.13All versions (No fix recorded)
Zopefoundation1 product
- zope≥ 4.0, < 4.6.3 | ≥ 5.0, < 5.3
4 vendors · 6 products
References
9 links- github.com/zopefoundation/Zope/security/advisories/GHSA-g4gq-j4p2-j8frX Refsource CONFIRMWEBAdvisoryREPORTThird Party Advisory
- github.com/zopefoundation/AccessControl/security/advisories/GHSA-qcx9-j53g-ccgfX Refsource MISCWEBREPORTThird Party Advisory
- github.com/zopefoundation/Zope/commit/f72a18dda8e9bf2aedb46168761668464a4be988X Refsource MISCWEBFIXREPORTPatchThird Party Advisory