Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain restricted-code authoring rights
-
DeliverySubmit restricted Python using str subclass
-
ExploitInvoke format/format_map with crafted field spec
-
ExecutionBypass policy getattr/getitem via str subclass
-
ImpactDisclose sandbox-external objects
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V15 - Secure Coding and Architecture Protection mechanism completeness
|
| Exploitation Conditions | Requires a deployment that lets untrusted users create and execute AccessControl-controlled Python code (RestrictedPython / through-the-web scripting), and the attacker must already hold that code-authoring privilege (PR:H). The attack works by reaching str.format or str.format_map through a str subclass, which pre-7.4 bypassed the policy-restricted getattr/getitem guards. Limiting factors: applications that do NOT expose restricted-code authorship to untrusted parties are not exploitable; impact is confined to information disclosure of objects reachable from formatting values (no code execution, no integrity/availability impact). Affects zopefoundation AccessControl versions prior to 7.4; fixed in 7.4. |
| Impact | This is a genuine but access-gated sandbox-escape/information-disclosure flaw, not a mass-exploitation priority. The CVSS 3.1 vector (AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N = 6.8) is well-calibrated: network-reachable and low-complexity, but PR:H because exploitation requires an attacker who is already an untrusted user permitted to create and execute AccessControl-controlled (RestrictedPython / through-the-web) code - a meaningful precondition that most Zope/Plone deployments do NOT grant to untrusted parties. The scope change (S:C) is justified: a controlled format string escapes the security sandbox to reach objects outside it. Impact is confidentiality-only (C:H, I:N, A:N) - it discloses reachable objects, not code execution or write access. No EPSS score, no CISA KEV listing, and no public POC were provided; per precision rules this is 'no public exploit identified at time of analysis.' CWE-693 (Protection Mechanism Failure) accurately captures that a guard was bypassed rather than a memory-safety bug. Net: real for anyone offering TTW scripting to untrusted users, but low urgency for the typical deployment where restricted-code authorship is limited to trusted admins. |
| Exploit ScenarioDerived | A Zope/Plone application permits untrusted users to author and run AccessControl-restricted Python (through-the-web scripting). The attacker submits restricted code that builds a str subclass instance and invokes its format/format_map with a payload like '{0.__class__.__init__.__globals__}', which resolves attributes via unrestricted getattr/getitem and leaks objects outside the sandbox. No public exploit code was identified at time of analysis, but the fix's own test (X('{0.__class__}')) illustrates the exact technique. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 16, 2026
Information disclosure in Zope AccessControl (zopefoundation AccessControl) versions prior to 7.4 allows authenticated users who already hold through-the-web Python code-authoring privileges to break out of the restricted-execution sandbox and read objects that the security policy is supposed to hide. Reaching str.format or str.format_map through a str subclass bypasses AccessControl's policy-restricted getattr and getitem guards, so a crafted format string can recursively walk attributes and subscriptions to disclose objects reachable from the values available to the formatting call. The impact is confined to confidentiality (CVSS 6.8, C:H with no integrity or availability impact); Vendor-released patch: 7.4, and no public exploit identified at time of analysis.
RemediationAI
Upgrade to AccessControl 7.4 or later (for example 'pip install -U "AccessControl>=7.4"'), which is the vendor-released patch containing commit f980450eea416718be62847f34dfd51822938e43; consult https://github.com/zopefoundation/AccessControl/security/advisories/GHSA-pq59-9fq7-m886 and https://github.com/zopefoundation/AccessControl/releases/tag/7.4 for the authoritative fix details. If an immediate upgrade is not possible, the decisive compensating control is to stop exposing restricted-code authorship to untrusted parties: remove or tightly restrict the roles and permissions that allow creating and executing AccessControl-controlled Python code (TTW Python Scripts, restricted Page Template expressions, and similar sandboxed scripting), accepting the functional trade-off that legitimate script authors lose that capability or must submit code for administrative review, and audit existing persisted scripts for crafted format strings using str subclasses, since the pre-7.4 sandbox cannot be made safe while untrusted code execution remains enabled. Be aware that defensively blocking or asserting away str.format / str.format_map for RestrictedPython code can break existing templates and scripts that rely on ordinary string formatting, so such a workaround should be deployed as a targeted policy restriction rather than a blanket ban, and verified against production content first.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
AccessControl is the security framework underpinning Zope / RestrictedPython deployments: it replaces built-in attribute and item access with policy-aware versions (guarded_getattr / guarded_getitem) implemented twice, once in pure Python (src/AccessControl/ImplPython.py) and once in C (src/AccessControl/cAccessControl.c), and consults an assertion table (ContainerAssertions) to decide which attributes may be touched. The root cause is a protection mechanism failure (CWE-693): str.format and str.format_map invoke CPython's own formatting engine, which resolves format fields such as {0.__class__} using unrestricted getattr and getitem rather than the guarded operations, and pre-7.4 AccessControl never intercepted these two names when they were obtained from a str subclass instead of a plain str. Commit f980450eea416718be62847f34dfd51822938e43 closes the gap by special-casing the names 'format' and 'format_map' inside guarded_getattr: for str instances it dispatches to the SafeFormatter helpers safe_format / safe_format_map, and for a class that is str or a str subclass it raises Unauthorized outright, with the C implementation additionally routing through the PyUnicode_Type entry of ContainerAssertions. Accompanying tests (testZopeGuards.py) confirm that X('{0.__class__}').format and '{foo.__class__}'.format_map on a str subclass now raise Unauthorized, illustrating exactly the attribute-traversal vector the fix removes.
Know when Zope gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N
PR:H because the attacker must already be permitted to author/run restricted Python; S:C for the sandbox escape; C:H info disclosure only, so I:N/A:N.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
Zope AccessControl provides a general security framework for use in Zope. Prior to 7.4, applications that allow untrusted users to create and execute AccessControl-controlled Python code do not safely guard str.format and str.format_map when those methods are reached through a str subclass. In both ImplPython.py and cAccessControl.c, Python formatting can recursively access attributes and subscriptions using unrestricted getattr and getitem behavior instead of the policy-restricted getattr and getitem operations. A controlled format string can therefore disclose objects reachable from values available to the formatting operation. This issue is fixed in version 7.4.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Multiple cross-site request forgery (CSRF) vulnerabilities in Zope Management Interface 4.3.7 and earlier, and Plone bef
Zope is an open-source web application server. Rated high severity (CVSS 8.8), this vulnerability is remotely exploitabl
RestrictedPython is a restricted execution environment for Python to run untrusted code. Rated high severity (CVSS 8.7),
Grok 7.6.6 through 9.2.0 has a heap-based buffer overflow in grk::FileFormatDecompress::apply_palette_clr (called from g
Products.PluggableAuthService is a pluggable Zope authentication and authorization framework. Rated medium severity (CVS
RestrictedPython is a tool that helps to define a subset of the Python language which allows users to provide a program
SQLAlchemyDA is a generic database adapter for ZSQL methods. Rated critical severity (CVSS 9.8), this vulnerability is r
Zope is an open-source web application server. Rated medium severity (CVSS 5.4), this vulnerability is remotely exploita
Zope before 2.13.19, as used in Plone before 4.2.3 and 4.3 before beta 1, does not reseed the pseudo-random number gener
Zope is an open-source web application server. Rated high severity (CVSS 8.8), this vulnerability is remotely exploitabl
AccessControl provides a general security framework for use in Zope. Rated high severity (CVSS 7.7), this vulnerability
RestrictedPython is a restricted execution environment for Python to run untrusted code. Rated high severity (CVSS 7.7),
EUVD-2026-80790
GHSA-pq59-9fq7-m886
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB