CVE-2021-32811
Remote Code Execution via Script (Python) objects under Python 3
Reported by github_m · Published August 2, 2021
AccessControl is fixed in 5.2 and 4.3 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| AccessControl | PyPI | 5.2, 4.3 |
| zope | PyPI | f72a18dda8e9bf2aedb46168761668464a4be988, 5.3, 4.6.3 |
| accesscontrol | zope | 5.2, 4.3 |
| zope | zope | 5.3, 4.6.3 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| zopefoundation | Zope | >= 4.0, < 4.6.3, >= 5.0, < 5.3 |
| PyPI | AccessControl | 4.0, 5.0 |
| zopefoundation | Zope | 4.0, 5.0 |
| PyPI | zope | 4.0.0, 5.0.0 |
Timeline
- Aug 2, 2021 CVE Published
- Aug 3, 2021 EPSS Score (30 in total, the first dated here)
- Sep 3, 2024 CVE Updated
- Mar 17, 2026 Security Advisory (2 in total, the first dated here)
- Aug 1, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-32811
vulnetix vdb fixes CVE-2021-32811
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-32811/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- x_refsource_MISC
- x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2021-32811 advisory
- https://github.com/zopefoundation/AccessControl/blob/master/CHANGES.rst#51-2021-07-30 url
- https://nvd.nist.gov/vuln/detail/CVE-2021-32807 advisory
- https://github.com/advisories/GHSA-qcx9-j53g-ccgf advisory
- https://github.com/zopefoundation/AccessControl/commit/b42dd4badf803bb9fb71ac34cd9cb0c249262f2c patch
- https://github.com/zopefoundation/AccessControl/commit/ae2dab0cc34e6dd1561c5b12d4a56cd140f87e1d patch
- https://github.com/zopefoundation/Zope/commit/869f947e586517566509e0ccdd4d99b60704cc02 patch
- https://github.com/pypa/advisory-database/tree/main/vulns/accesscontrol/PYSEC-2021-335.yaml advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/accesscontrol/PYSEC-2021-370.yaml advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/zope/PYSEC-2021-368.yaml advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/zope/PYSEC-2021-875.yaml advisory