CVE-2026-84308phpseclib
Media 6.3
Seguir: esta CVE · phpseclib · phpseclib Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 38
- CVSS 3.1
- 6.3
- EPSS
- —
- Requiere autenticación
- Sí
- Publicada
- 1 sep 2026
- Actualizada
- 9 sep 2026
- Categoría
- Aplicación · Multiplataforma
- SSVC (CISA)
- Explotación: prueba de concepto · Automatizable: no · Impacto técnico: total
- Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
Qué pasa
phpseclib is a PHP secure communications library. Prior to 3.0.57 and 4.0.1, pure-PHP X25519 scalar multiplication in phpseclib/Math/PrimeField/Integer.php performs data-dependent conditional modular reductions in add() and subtract(). During the Montgomery ladder in phpseclib/Crypt/EC/BaseCurves/Montgomery.php, the reduction behavior of each step depends on the secret scalar prefix, creating per-step timing and libgmp call-count observations that can reveal a reused 251-bit clamped private scalar. The phpseclib/Crypt/EC/Formats/Keys/MontgomeryPrivate.php derivation path invokes the pure-PHP multiplication without a native-engine check, while phpseclib/Crypt/EC/Formats/Keys/PKCS8.php reaches it when ext-sodium is unavailable. Exploitation requires a reused or long-lived X25519 private key, knowledge of the corresponding public key, execution of the pure-PHP path, and a local observer capable of resolving individual ladder steps or libgmp entry-point calls. Ephemeral X25519 keys, including phpseclib's normal SSH exchange path, are not affected. Recovery of the scalar permanently compromises operations that reuse that key. This issue is fixed in versions 3.0.57 and 4.0.1.
Qué hacer
- Aplica la actualización de seguridad del fabricante para phpseclib.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| Packagist | phpseclib/phpseclib |
< 3.0.57 |
3.0.57 |
composer require "phpseclib/phpseclib:^3.0.57" |
| Packagist | phpseclib/phpseclib |
≥ 4.0.0 < 4.0.1 |
4.0.1 |
composer require "phpseclib/phpseclib:^4.0.1" |
Según OSV / GitHub Advisories (GHSA-q97c-8qh3-fpc6). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados
- phpseclib · phpseclib
Según el CNA que publicó la CVE. NVD todavía no cargó los CPE con versiones.
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.