Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker crafts malicious plugin code
-
DeliveryPlugin bypasses incomplete AST blocklist
-
ExploitUser installs plugin in PySpector
-
ExecutionPlugin executes during PySpector runtime
-
ImpactArbitrary code runs with process privileges
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation completeness
|
| Exploitation Conditions | An attacker must have write access to the filesystem location where plugins are stored or supplied to PySpector, and a user must actively install and execute the malicious plugin. The vulnerability is not remotely exploitable without prior compromise of a system running PySpector or prior social engineering to trick a user into installing a malicious plugin from an untrusted source. The AST-based blocklist is incomplete, meaning the validator fails to check for all dangerous Python constructs - the specific constructs that bypass the check are not enumerated in the provided CVE data, but common bypasses for similar validators include alternative import methods (__import__), exec/eval alternatives (compile, ast.literal_eval chaining), or indirect code execution via __getattr__/__setattr__ hooks. Exploitation requires PySpector to be installed, configured to load plugins, and set to execute user-supplied or untrusted plugin code. |
| Impact | The CVSS 6.9 score (CVSS 4.0 with attack vector Local, privilege requirement Low, user interaction required) reflects moderate severity mitigated by local attack vector and authentication requirements. However, this score understates the real-world risk in supply-chain and multi-user environments: CWE-184 (incomplete blocklist) is a fundamental class of vulnerability where defenders cannot enumerate all bypass techniques, making patches and updates critical. The vulnerability requires local file write access (PR:L) and user interaction to install/execute the plugin (UI:A), which limits opportunistic exploitation but not targeted attacks. In development environments, plugin repositories, or shared CI/CD systems where users can supply plugins, an attacker with commit or file-system access can reliably achieve code execution. The patch availability (version 0.1.8 released) is the primary mitigation signal. No EPSS score, KEV status, or public exploit details are provided, suggesting limited public exploitation at time of analysis, but the attack prerequisite (supplying a plugin file) is straightforward in collaborative development settings. CVSS vector shows no scope change (SC:N), meaning impact is limited to the PySpector process itself rather than the host system, but process-level RCE still poses significant risk if PySpector runs with elevated privileges or processes sensitive code. |
| Exploit ScenarioDerived | A developer with access to a shared PySpector plugin repository submits a malicious plugin file containing code that bypasses the AST validator (using Python constructs not in the blocklist, such as alternative import mechanisms or runtime code generation techniques). When another user installs and executes the plugin in PySpector versions prior to 0.1.8, the validator fails to detect the attack, and the malicious code runs with the privileges of the PySpector process, allowing the attacker to exfiltrate data, modify analysis results, or compromise the developer's environment. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 23, 2026
PySpector versions prior to 0.1.8 allow arbitrary code execution within the PySpector process when a malicious plugin is supplied and executed. The plugin security validator uses incomplete AST-based static analysis that fails to block dangerous Python constructs, permitting attackers with write access to plugin files to bypass the blocklist and achieve remote code execution. The vulnerability is fixed in version 0.1.8.
RemediationAI
Upgrade PySpector to version 0.1.8 or later, which includes fixes to the plugin security validator blocklist and improved AST-based checks for dangerous constructs (confirmed by commits 3c9547157fc07396f22b26b3484a9a91eba98555 and 4e279e078c53d760fd321ff9b698d683c65ccb8e on GitHub). Until upgrade is possible, restrict write access to plugin directories to trusted developers only, audit all installed plugins for suspicious constructs (imports, exec/eval calls, __import__ usage, compile() calls, or unusual AST patterns), and consider running PySpector in an isolated environment or container with limited privileges. If running PySpector in a shared development environment, enforce code review requirements for plugin submissions and use filesystem-level access controls (ACLs or Unix permissions) to prevent unauthorized plugin modification.
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
PySpector is a static analysis security testing (SAST) framework for Python that validates plugins through AST (Abstract Syntax Tree) analysis before execution. The vulnerable component is the PluginSecurity.validate_plugin_code function, which maintains a blocklist of dangerous Python constructs to prevent unsafe code execution. The root cause (CWE-184: Incomplete List of Disallowed Inputs) stems from an incomplete blocklist implementation - the validator fails to enumerate and block all Python language constructs that could be abused for code execution. Attackers can use alternative Python constructs not covered by the blocklist to execute arbitrary code within the PySpector process, effectively bypassing the security gate that should prevent malicious plugins from running.
Know when Pyspector 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
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N
Primary rating from Vendor (GitHub_M) · only source for this CVE.
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
4DescriptionCVE.org
PySpector is a static analysis security testing (SAST) Framework engineered for modern Python development workflows. The plugin security validator in PySpector uses AST-based static analysis to prevent dangerous code from being loaded as plugins. Prior to version 0.1.8, the blocklist implemented in PluginSecurity.validate_plugin_code is incomplete and can be bypassed using several Python constructs that are not checked. An attacker who can supply a plugin file can achieve arbitrary code execution within the PySpector process when that plugin is installed and executed. Version 0.1.8 fixes the issue.
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
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
EUVD-2026-25160
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB