GHSA-743F-89FG-X288
Custom PBKDF2 loop uses iterations=1 per call — non-standard construction
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-743F-89FG-X288 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 PBKDF2 key derivation loop in `openssl_encrypt/modules/crypt_core.py` at lines 3852-3860 uses `iterations=1` per PBKDF2HMAC call inside an outer loop. This creates a non-standard KDF construction whose security properties have not been formally analyzed.
Affected Code
# crypt_core.py:3852-3860
password = PBKDF2HMAC(
algorithm=hashes.SHA256(),
length=key_length,
salt=iteration_specific_salt,
iterations=1,
backend=default_backend(),
).derive(password)Resolution: Won't Fix — Deprecated KDF (Decryption Only)
PBKDF2 is a deprecated KDF retained solely for backward-compatible decryption of existing encrypted files. It is no longer available for new encryptions, which use Argon2id instead. The chained-salt construction is fixed by the existing file format and cannot be changed without breaking decryption of legacy files. Since no new data will be encrypted with this construction, the practical risk is limited to the existing corpus of PBKDF2-derived files.
Fix
Fixed in commit `5cf9dcb` on branch `releases/1.4.x` — new encryptions (format_version >= 10) use standard PBKDF2HMAC with 600,000 iterations; legacy loop retained for backward-compatible decryption.
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-743f-89fg-x288Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
