llamaCVEVulnerability Intelligence
/
Advisory · GitHub · PyPI · openssl-encrypt

GHSA-J48Q-4C78-RHF9

openssl-encrypt: Dynamic .so loading for Whirlpool uses broad glob pattern without integrity verification

Parche disponible
Descargar PNG JSON
CVSS
—
medium
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a -28 d de la divulgación
Exposición232 dDesde la divulgación, 31 mar 2026, 6:31 p. m.
Detección230 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Remediación
Parche 1.4.0
Monitoreo
Detectada
3 mar 26
31 mar 26
1 sept 26
17 nov 26
19 nov 26
3 mar 26
8 may 26
12 jul 26
15 sept 26
19 nov 26
FechaFaseEventoDetalle
Remediación Parche 1.4.0 openssl-encrypt · -28 d desde divulgación
Divulgación Publicada GHSA-J48Q-4C78-RHF9 divulgada
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

Severity: HIGH

Summary

The Whirlpool hash implementation in `openssl_encrypt/modules/registry/hash_registry.py` at lines 570-589 uses glob patterns to find `.so` modules in site-packages and loads the first match via `importlib` without verifying module integrity.

Affected Code
for site_pkg in site.getsitepackages():
    pattern = os.path.join(site_pkg, "whirlpool*py313*.so")
    py313_modules = glob.glob(pattern)
    if py313_modules:
        module_path = py313_modules[0]  # Takes first match
        loader = ExtensionFileLoader("whirlpool", module_path)
        spec = importlib.util.spec_from_file_location("whirlpool", module_path, loader=loader)
        whirlpool_module = importlib.util.module_from_spec(spec)
        spec.loader.exec_module(whirlpool_module)
Impact

The glob pattern `"whirlpool*py313*.so"` is broad and takes the first match without verifying:
- File hash/signature
- File ownership/permissions
- Whether it's a legitimate module

If an attacker can place a malicious `.so` file matching this pattern in any site-packages directory, it will be loaded and native code executed.

Recommended Fix
  • Verify the module's integrity (hash or signature) before loading
  • Use a specific filename rather than a glob pattern
  • Check file permissions and ownership
Fix

Fixed in commit `963d0d1` on branch `releases/1.4.x` — added os.path.realpath() to resolve symlinks and validation that found .so files are within known site-packages directories before loading.

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 -28 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
Otrahttps://github.com/jahlives/openssl_encrypt/security/advisories/GHSA-j48q-4c78-rhf9
Otrahttps://github.com/jahlives/openssl_encrypt/commit/963d0d1278b722ea134272f9df65fddcd3e6ab47
Otrahttps://github.com/jahlives/openssl_encrypt

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