GHSA-PHMR-P567-Q5G6
Pre-authentication memory/CPU exhaustion via unbounded KDF cost in crafted files
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-PHMR-P567-Q5G6 divulgada | |
| Remediación | Parche 1.4.9 | openssl-encrypt · 1 d desde divulgación | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Several code paths let a crafted file drive unbounded key-derivation cost past the pre-authentication memory ceiling (gitlab#128), OOM-killing or wedging the process before any password is verified:
- F9 (CWE-1284): Balloon `parallel_cost` came verbatim from the file's balloon.parallelism and was submitted as that many ThreadPoolExecutor tasks; the estimator never modeled parallelism, so a value like 10^8 allocated ~10^8 Future objects during key derivation.
- F28 (CWE-770): the decryption cost estimator modeled only derivation_config.kdf_config, but the executor also honors a kdf_config shadowed inside derivation_config.hash_config (its keys are flattened and generate_key_independent_xor reads hash_config['derivation_config']['kdf_config']); a crafted v14 file hid an Argon2 memory_cost of 1 TiB there.
- F29 (CWE-770): for legacy v1-v3 the estimator hard-coded kdf_config={} while the executor honors hash_config['argon2'|'scrypt'|'balloon']; a v3 file with argon2.memory_cost=128 GiB estimated ~0.
- F16 (CWE-405): the recovery path ran a full Argon2id unlock for every recovery slot (up to the array cap) before the slot-set MAC could reject a tampered set.
Fix (1.4.9): Balloon parallel_cost is hard-capped and modeled in the estimator; the estimator now folds in the shadowed and legacy KDF configs the executor actually consumes so the memory ceiling sees them; the recovery path caps the slot count before any KDF work, enforces the memory ceiling per slot, and the per-slot Argon2 memory cap is lowered to 1 GiB. Affects both the 1.4.x and 1.5.x lines. Tracked as gitlab#233.
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
pypiopenssl-encrypt |
Corregida | 1.4.9 | 1 d | 1.4.9 no afectada |
1.4.9Arsenal 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-phmr-p567-q5g6Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
