CVE-2021-32807
Python vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Mitigation and workarounds

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).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-5882-5rx9-xgxpCRITICAL10
  • PythonPython
  • crawl4ai
NoYesJan 16, 2026
CVE-2026-23949HIGH8.6
  • PythonPython
  • jaraco.context
NoYesJan 20, 2026
GHSA-vx9w-5cx4-9796HIGH8.6
  • PythonPython
  • crawl4ai
NoYesJan 16, 2026
CVE-2026-23535HIGH8
  • PythonPython
  • wlc
NoYesJan 16, 2026
CVE-2026-23490HIGH7.5
  • PythonPython
  • fence-agents-intelmodular
NoYesJan 16, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management