
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2021-32807 is a high-severity security vulnerability discovered in AccessControl, a Python package that defines security policies for Python code used in restricted code within Zope applications. The vulnerability was disclosed on July 30, 2021, affecting versions >=4.0, <4.3, and <5.2 of the package. The issue specifically impacts Python 3 implementations, with Python 2.7 remaining unaffected (GitHub Advisory).
The vulnerability stems from the AccessControl module's security policies for restricted code within Zope applications. While the module restricts access to Python modules and only exempts those deemed safe (like Python's string module), the full access to the string module inadvertently allowed access to the Formatter class. This class could be overridden and extended within Script (Python) objects in a way that provided access to other unsafe Python libraries, potentially leading to remote code execution (GitHub Advisory).
The vulnerability could potentially lead to remote code execution through access to unsafe Python libraries. However, the impact is limited by default configurations, as administrative privileges (Zope 'Manager' role) are required to add or edit Script (Python) objects through the web. Only sites that allow untrusted users to add/edit these scripts through the web - an unusual configuration - are at significant risk (GitHub Advisory).
The vulnerability has been patched in AccessControl versions 4.3 and 5.2. For unpatched systems, site administrators can mitigate the risk by ensuring that adding/editing Script (Python) objects through the web is restricted to trusted users only using standard Zope user/role permission mechanisms. The default Zope configuration already implements these restrictions (GitHub Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."