Vulnerability · Published Aug 2, 2021 · Assigned by GitHub_M

CVE-2021-32811Remote Code Execution via Script (Python) objects under Python 3

High 7.5

In plain English

A high-severity security flaw in Zope from zopefoundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.3% (higher than 83% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)2.3%top 16.7% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIaccesscontrol4.3, 5.2PYSEC-2021-370
PyPIzope4.6.3GHSA-g4gq-j4p2-j8fr
PyPIzope5.3GHSA-g4gq-j4p2-j8fr
PyPIzope4.6.3, 5.3PYSEC-2021-368

Affected products (as reported)

VendorProductVersions
zopefoundation Zope >= 4.0, < 4.6.3>= 5.0, < 5.3

Weakness: CWE-915 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

References