Skip to content
OpenAdvisories
High · 7.5 CVE-2021-32811 EUVD-2021-34766GHSA-g4gq-j4p2-j8frPYSEC-2021-368PYSEC-2021-370

Remote Code Execution via Script (Python) objects under Python 3

Published Aug 2, 2021 · Updated Aug 3, 2024 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
zopefoundation Zope >= 4.0, < 4.6.3, >= 5.0, < 5.3 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS zope2.13 No fix yet —
Ubuntu 16.04 LTS zope2.13 No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI accesscontrol >= 4.0, < 4.3 · >= 5.0, < 5.2 4.3, 5.2 PYSEC-2021-370
PyPI zope >= 4.0, < 4.6.3 4.6.3 GHSA-g4gq-j4p2-j8fr
PyPI zope >= 5.0, < 5.3 5.3 GHSA-g4gq-j4p2-j8fr
PyPI zope >= 4.0, < 4.6.3 · >= 5.0, < 5.3 4.6.3, 5.3 PYSEC-2021-368

References