GHSA-ffg3-p8fm-mjx2
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with script-authoring Plone account
-
DeliveryNavigate to Python Script editor or TTW TALES context
-
ExploitCraft introspection-based sandbox escape payload
-
ExecutionSubmit payload for server-side execution
-
PersistRestrictedPython guard bypassed
-
ImpactExecute arbitrary code as web server process
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation completeness
|
| Exploitation Conditions | Exploitation requires an authenticated account in the Plone or Zope application with permission to create, edit, or execute Python Script objects or TALES Python expressions through the web interface - this is a non-default, explicitly granted role (typically Manager or a custom role with 'Add Python Scripts' ZMI permission). The vulnerability exists specifically in the RestrictedPython sandbox execution path; deployments that do not expose through-the-web Python scripting to any untrusted users are not reachable by this attack. Exploitation is limited to the network-accessible Plone/Zope HTTP interface; no local system access is required. Authentication level (whether PR:L editor-class or PR:H manager-only) is not confirmed from the provided input and should be verified against the advisory. |
| Impact | The stated vendor severity is 8.3 high. No official CVSS vector was provided in the input, so metric-level analysis is inferred rather than confirmed. A sandbox escape that achieves arbitrary code execution on the host server carries intrinsically high impact (C:H/I:H/A:H with scope change), but the realistic attack complexity depends heavily on the exploitation primitive - RestrictedPython escapes typically require non-trivial Python introspection chains (AC:H or AC:L depending on sophistication). Critically, exploitation requires the attacker to already have permission to create or edit Python Scripts or TALES expressions in Plone, which is a non-default, privileged role (typically Manager or at minimum a delegated Script author role). This PR:L or PR:H prerequisite materially limits the realistic attacker population. No EPSS data, KEV listing, or public POC were provided, meaning exploitation probability signals beyond the vendor severity score are absent. The scope-changing nature (S:C) of breaking out of a language sandbox is the primary severity driver. For organizations where only trusted administrators author Python scripts, operational risk is low despite the high theoretical score; for multi-tenant or contributor-model Plone sites, risk is substantially elevated. |
| Exploit ScenarioDerived | An attacker with a Plone account that has 'Script (Python)' authoring permissions - for example, a content editor on a multi-contributor site - navigates to the Zope Management Interface or Plone's script editor and submits a crafted Python script containing an introspection-based sandbox bypass (e.g., traversing __class__.__mro__ or abusing guard function gaps). Upon execution, the payload escapes the RestrictedPython sandbox and runs arbitrary code as the web server process user, potentially enabling full server compromise. No public proof-of-concept was identified in the provided input, but the class of bypass is well-documented in Python sandbox research. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 23, 2026
Sandbox escape in RestrictedPython (zopefoundation/RestrictedPython, GHSA-ffg3-p8fm-mjx2) allows an authenticated attacker who can execute code within the restricted Python environment to break out of that sandbox and execute arbitrary Python on the underlying host. This affects Plone deployments that rely on RestrictedPython to safely run through-the-web (TTW) Python Scripts and TALES expressions. Disclosed June 2026 as part of a coordinated Plone security release; no public exploit code or CISA KEV listing identified at time of analysis, but the 8.3 high severity and scope-changing nature make it a meaningful risk for any Zope/Plone installation where untrusted or semi-trusted users can author Python scripts.
RemediationAI
Upgrade RestrictedPython to the patched version identified in the GitHub Security Advisory at https://github.com/zopefoundation/RestrictedPython/security/advisories/GHSA-ffg3-p8fm-mjx2 - the exact fixed version is not confirmed in the provided input and must be read from the advisory directly. For Plone deployments, the coordinated release announced June 23, 2026 via oss-security (https://seclists.org/oss-sec/2026/q2/1009) should be applied in full, as multiple components were patched simultaneously. As a compensating control prior to patching, restrict or remove the 'Add Python Scripts' permission from all non-administrative roles in the Zope/Plone ZMI; this eliminates the attack surface by preventing untrusted users from submitting code for sandbox execution, at the cost of disabling legitimate TTW scripting for those roles. Review existing through-the-web Script (Python) objects for suspicious introspection patterns as a detection measure.
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
RestrictedPython (zopefoundation/RestrictedPython) is a Python library that compiles and executes Python source code in a sandboxed environment by rewriting the AST and intercepting potentially dangerous operations via a restricted builtins dictionary and guard functions. Zope and Plone use it as the execution engine for user-authored 'Script (Python)' objects and TALES Python expressions evaluated server-side. A sandbox escape means that a crafted Python expression or script bypasses the guard functions - commonly achieved through attribute access chains, __class__ traversal, or abuse of Python introspection - and reaches unrestricted interpreter primitives. No CWE was supplied in the input, but this class of vulnerability is consistent with CWE-693 (Protection Mechanism Failure) or CWE-284 (Improper Access Control) at the sandbox boundary. Exact affected RestrictedPython versions are not stated in the provided input; the advisory at GHSA-ffg3-p8fm-mjx2 should be consulted for the precise version range.
Know when Python 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:R/S:C/C:H/I:H/A:L
Network-delivered via web interface; AC:H reflects non-trivial sandbox escape craft; PR:L for required script-authoring role; S:C for full sandbox boundary break.
Primary rating from Vendor (CNA).
CVSS VectorVendor
Lifecycle Timeline
2Description PRE-NVD
Blast Radius
ecosystem impact- 1 pypi packages depend on restrictedpython (1 direct, 0 indirect)
Ecosystem-wide dependent count for version 8.3.
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
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2026-42434
NVD
CVE.org
EPSS
VulDB
Exploit-DB