GHSA-J9MH-57CC-665X
HKDF key normalization uses no salt with static info parameter
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-J9MH-57CC-665X 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 `normalize_to_key_length_secure` function in `openssl_encrypt/modules/crypt_core.py` at lines 2082-2088 and the parallel KDF equivalent `_normalize_bytes` in `parallel_kdf.py` at lines 60-67 both use HKDF with `salt=None` and a static `info=b"v10_xor_normalize"`.
Affected Code
hkdf = HKDF(
algorithm=hashes.SHA256(),
length=target_length,
salt=None, # No salt
info=b"v10_xor_normalize", # Static info
backend=default_backend(),
)Impact
Per RFC 5869, when HKDF is used without a salt, a zero-filled salt of hash-length is used. This means all key normalizations use the same HKDF extract phase, reducing entropy extraction when input key material is not uniformly random. The static `info` parameter means normalization is fully deterministic for the same input, reducing margin against multi-target attacks.
Recommended Fix
- Pass the encryption salt as the HKDF salt parameter
- Include algorithm-specific context in the `info` parameter (e.g., algorithm name, version)
Fix
Fixed in commit `c2692d7` on branch `releases/1.4.x` — added salt parameter to HKDF key derivation in crypto_secure_memory.py; documented intentional salt=None for deterministic XOR normalization in parallel_kdf.py.
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-j9mh-57cc-665xLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
