Remote Code Execution via Script (Python) objects under Python 3
zopefoundation Zope
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| zope PyPI |
|
|
| accesscontrol PyPI |
|
zopefoundation Zope
| Product | Affected | Fixed in |
|---|---|---|
| zope PyPI |
|
|
| accesscontrol PyPI |
|
4.35.2Zope 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.
From the CVE record · GitHub_M
Zope deployments on Python 3 with the optional Products.PythonScripts add-on are vulnerable in the affected versions. An untrusted user who can add or edit Script (Python) objects through the web can achieve remote code execution; this normally requires the Zope Manager role, and the default permissions do not grant untrusted users that access.
Check Python 3 Zope deployments using Products.PythonScripts with Zope 4.0 through versions before 4.6.3 or 5.0 through versions before 5.3, including affected PyPI accesscontrol versions 4.0 through versions before 4.3 or 5.0 through versions before 5.2.