Intel

AIKIDO-2026-730961

phpseclib/phpseclib is vulnerable to Observable Timing Discrepancy

Observable Timing DiscrepancyCVE-2026-84308 Published Yesterday

63

Medium Risk

This Affects:

PHPphpseclib/phpseclib
3.0.0 - 3.0.56
Fixed in 3.0.57
4.0.0 - 4.0.0
Fixed in 4.0.1
Are you affected? Scan for Free

TL;DR

The pure-PHP implementation of X25519 scalar multiplication is not constant time. Field addition and subtraction perform data-dependent conditional modular reduction, so each Montgomery-ladder step takes time that depends on bits of the secret scalar. An observer able to measure per-step timing or libgmp call counts can recover the full X25519 private key, even using the standard base point and without chosen inputs. The fix blinds the Montgomery multiplication and adds constant-time handling so execution time no longer depends on private scalar bits.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you perform X25519 key exchange with a private key over the pure-PHP code path.

Background info

phpseclib/phpseclib is vulnerable to Observable Timing Discrepancy in versions 3.0.0 - 3.0.56 and 4.0.0 - 4.0.0.

How to fix this

Upgrade the phpseclib/phpseclib and/or the phpseclib library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform