{"id":"CVE-2021-32811","published":"2021-08-02T21:55:11Z","modified":"2024-08-03T23:33:55Z","title":"Remote Code Execution via Script (Python) objects under Python 3","vendor":"zopefoundation","product":"Zope","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02296,"percentile":0.83688,"provenance":"source"},"cwes":[{"id":"CWE-915","name":"Improperly Controlled Modification of Dynamically-Determined Object Attributes"}],"references":[{"url":"https://github.com/zopefoundation/Zope/security/advisories/GHSA-g4gq-j4p2-j8fr","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/zopefoundation/AccessControl/security/advisories/GHSA-qcx9-j53g-ccgf","tags":["x_refsource_MISC"]},{"url":"https://github.com/zopefoundation/Zope/commit/f72a18dda8e9bf2aedb46168761668464a4be988","tags":["x_refsource_MISC"]}],"priority":{"score":22.0,"factors":[{"name":"EPSS percentile","points":16.74},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"zopefoundation","affectedVersions":[{"vendor":"zopefoundation","product":"Zope","versions":[">= 4.0, < 4.6.3",">= 5.0, < 5.3"]}],"affected":[{"ecosystem":"PyPI","package":"Zope","vulnerableRanges":[">=4.0, <4.6.3",">=5.0, <5.3"],"patched":["4.6.3","5.3"],"from":["GHSA-g4gq-j4p2-j8fr","PYSEC-2021-368"],"provenance":"source"},{"ecosystem":"PyPI","package":"accesscontrol","vulnerableRanges":[">=4.0, <4.3",">=5.0, <5.2"],"patched":["4.3","5.2"],"from":["PYSEC-2021-370"],"provenance":"source"}],"summary":{"text":"Zope, an open-source web application server, has a flaw in Script (Python) object handling under Python 3, affecting versions before 4.6.3 and 5.3 when the optional Products.PythonScripts add-on is installed. An attacker who has been granted the Zope Manager role or otherwise can add or edit Script (Python) objects through the web, which is restricted by default, could execute arbitrary code, with the attack requiring low privileges and a site that allows untrusted users to modify these scripts.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:54:30Z"},"euvd":{"id":"EUVD-2021-34766","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-zopefoundation-accesscontrol-cve-2021-32807","parents":[{"from":"CVE-2021-32807","to":"CVE-2021-32811","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-qcx9-j53g-ccgf","via":"related"},{"kind":"osv-related","provenance":"source","id":"GHSA-g4gq-j4p2-j8fr","via":"reference","url":"https://github.com/zopefoundation/AccessControl/security/advisories/GHSA-qcx9-j53g-ccgf"},{"kind":"osv-related","provenance":"source","id":"GHSA-qcx9-j53g-ccgf","via":"reference","url":"https://github.com/zopefoundation/Zope/security/advisories/GHSA-g4gq-j4p2-j8fr"}]}],"packageHistory":[{"cve":"CVE-2010-3198","published":"2010-09-08","fixed":"2.11.7","kev":false},{"cve":"CVE-2021-32633","published":"2021-05-21","fixed":"5.2","kev":false},{"cve":"CVE-2021-32674","published":"2021-06-08","fixed":"5.2.1","kev":false,"link":{"from":"CVE-2021-32674","to":"CVE-2021-32811","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:Zope","fromFixed":"4.6.1","toFixed":"4.6.3","daysApart":55},{"kind":"version-step","provenance":"source","package":"PyPI:Zope","fromFixed":"5.2.1","toFixed":"5.3","daysApart":55}]}},{"cve":"CVE-2021-32811","published":"2021-08-02","fixed":"5.3","kev":false},{"cve":"CVE-2023-41050","published":"2023-09-06","fixed":"5.8.4","kev":false},{"cve":"CVE-2023-42458","published":"2023-09-21","fixed":"5.8.5","kev":false},{"cve":"CVE-2023-44389","published":"2023-10-04","fixed":"5.8.6","kev":false}],"package":"PyPI:Zope"}}