GHSA-623H-CHJ7-HFX8
Process isolation (default mode) applies zero sandbox restrictions to plugins
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-623H-CHJ7-HFX8 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: CRITICAL
Summary
In `openssl_encrypt/modules/plugin_system/plugin_sandbox.py`, the default plugin execution mode (`use_process_isolation=True`) at lines 702-801 spawns a child process via `multiprocessing` but never applies any sandbox restrictions. All sandbox restrictions (import guard, file/network/process restrictions, resource limits) only apply in the non-default threading mode.
Affected Code
# plugin_sandbox.py:144-160 -- the _plugin_worker function (used by default)
def _plugin_worker(plugin, context, result_queue):
try:
result = plugin.execute(context) # NO sandbox setup!
result_queue.put(("success", result))
except Exception as e:
result_queue.put(("error", str(e)))This function calls `plugin.execute(context)` directly without:
- Setting up `_create_sandbox_environment()`
- Installing the `PluginImportGuard`
- Restricting file operations
- Restricting network operations
- Restricting process execution
- Setting resource limits
In contrast, the threading path (non-default) applies all these restrictions.
Impact
Since process isolation is the default mode, most plugins run with no sandboxing whatsoever — full access to filesystem, network, subprocess execution, and all Python modules. The entire sandbox infrastructure is effectively bypassed.
Recommended Fix
- Apply `_create_sandbox_environment()` at the beginning of `_plugin_worker`
- Install the `PluginImportGuard` in the child process
- Apply all file, network, and process restrictions
- Set resource limits via `RLIMIT_AS`
---
Resolution
Resolved in commit `1fbf976` on branch `feature/v1.4.x-development`.
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-623h-chj7-hfx8Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
