llamaCVEVulnerability Intelligence
/
Advisory · GitHub · PyPI · openssl_encrypt

GHSA-8JPJ-W975-RWV5

Path traversal via unsanitized plugin_id in sandbox _is_safe_path

Parche disponible
Descargar PNG JSON
CVSS
—
high
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a 21 d de la divulgación
Exposición282 dDesde la divulgación, 10 feb 2026, 8:16 a. m.
Detección281 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Parche 1.4.0
Monitoreo
Detectada +1
10 feb 26
3 mar 26
18 nov 26
20 nov 26
10 feb 26
22 abr 26
2 jul 26
10 sept 26
20 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-8JPJ-W975-RWV5 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
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

Severity: HIGH

Summary

The `_is_safe_path` method in `openssl_encrypt/modules/plugin_system/plugin_sandbox.py` at lines 617-633 constructs a plugin config directory path using the unsanitized `plugin_id`.

Affected Code
# plugin_sandbox.py:617-620
config_dir = os.path.realpath(
    os.path.expanduser(f"~/.openssl_encrypt/plugins/{plugin_id}")
)

The `_validate_plugin` method in `plugin_manager.py` (line 819) only checks that `plugin_id` is a string of max 50 characters — it does not validate against path separators or traversal sequences.

Impact

A malicious plugin declaring `plugin_id = "a/../../../etc"` would make `config_dir` resolve to `/etc`, granting the plugin read/write access to arbitrary directories. Additionally, the "double-check" at lines 626-632 is dead code (inner condition can never be True since it's nested inside a block that already confirmed the opposite).

Recommended Fix
  • Validate `plugin_id` against path separators (`/`, `\`, `..`) in `_validate_plugin`
  • Use `os.path.basename()` to strip any path components
  • Fix the dead-code double-check
Fix

Fixed in commit `0c7418b` on branch `releases/1.4.x` — added _sanitize_plugin_id() that rejects path separators, .., null bytes, and non-alphanumeric characters; removed redundant duplicate startswith check.

Versiones

Rangos afectados

Afectada Corregida Última
openssl_encrypt< 1.4.0
1.4.0
1.4.9
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
pypiopenssl_encrypt
Corregida 1.4.0 21 d 1.4.9 no afectada
Versiones corregidas1.4.0
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://github.com/jahlives/openssl_encrypt/security/advisories/GHSA-8jpj-w975-rwv5

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.