GHSA-V9R6-GRCH-FXW7
D-Bus EncryptFile derived keys without password stretching (unstretched SHA-256)
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-V9R6-GRCH-FXW7 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 |
The D-Bus CryptoService.EncryptFile handler hand-built its hash_config using flat key names (sha512_iterations, argon2_time_cost/argon2_memory_cost/argon2_parallelism, enable_hkdf, balloon_iterations) that the key-derivation core does not read. The core consumes flat hash-round integers (hash_config['sha256']) and nested KDF dicts (hash_config['argon2']={'enabled': True, ...}). As a result no KDF and no hash rounds were ever enabled, and because the dict was non-empty it also defeated the encryptor's "no config -> apply the STANDARD template" default. Every file encrypted through the D-Bus service was keyed by a single unstretched SHA-256 of the password/salt/pepper seed instead of Argon2id (t=3, m=64 MiB, p=4). quiet=True suppressed the core's only unstretched-key warning, so the downgrade was silent.
Impact: offline password guessing against a file encrypted via the D-Bus service is roughly six to seven orders of magnitude cheaper than the documented protection (~10^10 SHA-256/s on commodity GPUs vs ~10^3/s against Argon2id-64MiB). Preconditions: the D-Bus service is installed and used to encrypt files (session or system bus), and an affected file reaches an attacker. No key disclosure or code execution; AEAD integrity is intact -- only the password work factor is lost. Files encrypted through the normal CLI/GUI are unaffected.
Fix (1.4.9): the D-Bus key-derivation config moved to a dedicated dbus-free module that builds the config in the structure the core consumes, starting from the STANDARD template (always Argon2id). The handler now fails closed: it refuses to encrypt unless a hash-round or memory-hard/iterated KDF work factor is enabled, so no client option combination can produce an unstretched key. Client-supplied KDF cost overrides are additionally bounded so they may only raise cost above the STANDARD baseline (preventing both a downgrade-below-STANDARD path and an unbounded-work-factor DoS on the system bus).
Mitigation: re-encrypt any files produced through the 1.4.x D-Bus service after upgrading to 1.4.9 (or via the CLI, which was never affected); treat their passwords as exposed to accelerated offline guessing.
1.4.x only -- the D-Bus service was removed on the 1.5.x line. Tracked as gitlab#228; SECURITY.md ADVISORY 2026-20.
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-v9r6-grch-fxw7Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
