GHSA-9PGJ-V69P-Q586
Plugin import guard blocked modules not synchronized with AST analyzer
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-9PGJ-V69P-Q586 divulgada | |
| Remediación | Parche 1.4.0 | openssl_encrypt · 21 d desde divulgación | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Severity: HIGH
Summary
The `PluginImportGuard` in `openssl_encrypt/modules/plugin_system/plugin_sandbox.py` at lines 69-94 blocks a different set of modules than the AST analyzer's `DANGEROUS_MODULES` set in `plugin_ast_analyzer.py` at lines 63-84.
Details
Modules blocked by AST analyzer but NOT by the import guard at runtime:
- `sys` — provides `sys.modules` to reach any imported module
- `shutil` — file operations
- `multiprocessing` — process spawning
- `importlib` — dynamic imports
- `pickle` — arbitrary code execution via `__reduce__`
- `signal`, `resource`, `platform`, `pipes`, `pty`, `fcntl`, `pwd`, `grp`
The import guard's `ALWAYS_BLOCKED` only contains: `ctypes`, `__builtin__`, `__builtins__`, `subprocess`, `os`, `socket`.
Impact
If a plugin bypasses AST analysis (via string obfuscation, encoding, or `__import__` indirection), the runtime import guard provides no protection for most dangerous modules.
Recommended Fix
- Synchronize the import guard's blocked modules with the AST analyzer's `DANGEROUS_MODULES`
- Add `sys`, `shutil`, `multiprocessing`, `importlib`, `pickle` to `ALWAYS_BLOCKED`
Fix
Fixed in commit `e0c999e` on branch `releases/1.4.x` — created shared plugin_security_constants.py as single source of truth for blocked modules; both AST analyzer and runtime import guard now reference the same set.
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
pypiopenssl_encrypt |
Corregida | 1.4.0 | 21 d | 1.4.9 no afectada |
1.4.0Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/jahlives/openssl_encrypt/security/advisories/GHSA-9pgj-v69p-q586Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
