CVE-2021-32807
Apache Zope Remote Python Code Execution
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.
INFO
Published Date :
July 30, 2021, 10:15 p.m.
Last Modified :
Nov. 21, 2024, 6:07 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
5.9
Exploitability Score :
1.2
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2021-32807
.
URL | Resource |
---|---|
https://github.com/zopefoundation/AccessControl/blob/master/CHANGES.rst#51-2021-07-30 | Release Notes Third Party Advisory |
https://github.com/zopefoundation/AccessControl/commit/b42dd4badf803bb9fb71ac34cd9cb0c249262f2c | Patch Third Party Advisory |
https://github.com/zopefoundation/AccessControl/security/advisories/GHSA-qcx9-j53g-ccgf | Third Party Advisory |
https://github.com/zopefoundation/AccessControl/blob/master/CHANGES.rst#51-2021-07-30 | Release Notes Third Party Advisory |
https://github.com/zopefoundation/AccessControl/commit/b42dd4badf803bb9fb71ac34cd9cb0c249262f2c | Patch Third Party Advisory |
https://github.com/zopefoundation/AccessControl/security/advisories/GHSA-qcx9-j53g-ccgf | Third Party Advisory |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2021-32807
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2021-32807
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://github.com/zopefoundation/AccessControl/blob/master/CHANGES.rst#51-2021-07-30 Added Reference https://github.com/zopefoundation/AccessControl/commit/b42dd4badf803bb9fb71ac34cd9cb0c249262f2c Added Reference https://github.com/zopefoundation/AccessControl/security/advisories/GHSA-qcx9-j53g-ccgf -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
Reanalysis by [email protected]
Dec. 02, 2022
Action Type Old Value New Value Removed CWE NIST CWE-915 Added CWE NIST CWE-1321 -
Initial Analysis by [email protected]
Aug. 10, 2021
Action Type Old Value New Value Added CVSS V2 NIST (AV:N/AC:L/Au:S/C:P/I:P/A:P) Added CVSS V3.1 NIST AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H Changed Reference Type https://github.com/zopefoundation/AccessControl/blob/master/CHANGES.rst#51-2021-07-30 No Types Assigned https://github.com/zopefoundation/AccessControl/blob/master/CHANGES.rst#51-2021-07-30 Release Notes, Third Party Advisory Changed Reference Type https://github.com/zopefoundation/AccessControl/commit/b42dd4badf803bb9fb71ac34cd9cb0c249262f2c No Types Assigned https://github.com/zopefoundation/AccessControl/commit/b42dd4badf803bb9fb71ac34cd9cb0c249262f2c Patch, Third Party Advisory Changed Reference Type https://github.com/zopefoundation/AccessControl/security/advisories/GHSA-qcx9-j53g-ccgf No Types Assigned https://github.com/zopefoundation/AccessControl/security/advisories/GHSA-qcx9-j53g-ccgf Third Party Advisory Added CWE NIST CWE-915 Added CPE Configuration OR *cpe:2.3:a:zope:accesscontrol:*:*:*:*:*:*:*:* versions from (including) 4.0 up to (excluding) 4.3 *cpe:2.3:a:zope:accesscontrol:*:*:*:*:*:*:*:* versions from (including) 5.0 up to (excluding) 5.2
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2021-32807
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2021-32807
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
1.38 }} 0.16%
score
0.86021
percentile