GHSA-CX72-M6XJ-3VF6
Non-cryptographic random module imported in PQC crypto module
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-CX72-M6XJ-3VF6 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 `random` module (Mersenne Twister PRNG, not cryptographically secure) is imported at line 15 of `openssl_encrypt/modules/pqc.py`. While no direct `random.*` calls were found in current code, the import creates a hazard — future developers may use `random.randint()` instead of `secrets.randbelow()` without realizing the security implications.
Affected Code
# pqc.py:15
import randomImpact
The Mersenne Twister's state can be recovered from approximately 624 outputs. If any cryptographic operation inadvertently uses `random` instead of `secrets` or `os.urandom`, the generated values would be predictable.
Recommended Fix
- Remove `import random` from the PQC module
- Add a linting rule to prevent `import random` in cryptographic modules
Fix
Fixed in commit `472c088` on branch `releases/1.4.x` — removed `import random` from PQC module as part of the CRIT-3 simulation mode removal.
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-cx72-m6xj-3vf6Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
