CVE-2026-41206 PySpector has a Plugin Code Execution Bypass via Incomplete Static Analysis in PluginSecurity.validate_plugin_code
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
Description
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ParzivalHack PySpector | < 0.1.8; = < 0.1.8 | 0.1.8 | Fixed |
| pypi pyspector(PyPI) | < 0.1.8; <= 0.1.7; = 0.1.1; = 0.1.2 +6 more | 0.1.8 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| ParzivalHack PySpector | = < 0.1.8 | No fix listed |
| pypi pyspector(PyPI) | < 0.1.8 | 0.1.8 |
| pypi pyspector(PyPI) | = 0.1.1 | No fix listed |
| pypi pyspector(PyPI) | = 0.1.2 | No fix listed |
| pypi pyspector(PyPI) | = 0.1.3 | No fix listed |
| pypi pyspector(PyPI) | = 0.1.4 | No fix listed |
| pypi pyspector(PyPI) | = 0.1.4.post1 | No fix listed |
| pypi pyspector(PyPI) | = 0.1.5 | No fix listed |
| pypi pyspector(PyPI) | = 0.1.6 | No fix listed |
| pypi pyspector(PyPI) | = 0.1.7 | No fix listed |
| pypi pyspector(PyPI) | <= 0.1.7 | No fix listed |
| ParzivalHack PySpector | < 0.1.8 | 0.1.8 |
References
- https://github.com/ParzivalHack/PySpector/security/advisories/GHSA-vp22-38m5-r39r exploit vendor-advisory
- https://github.com/ParzivalHack/PySpector/commit/3c9547157fc07396f22b26b3484a9a91eba98555 patch
- https://github.com/ParzivalHack/PySpector/commit/4e279e078c53d760fd321ff9b698d683c65ccb8e patch
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- pypi.org product
- github.com vendor-advisory