Skip to main content
CVE-2026-84308VulnerabilityPublished Updated

Php phpseclib: Prior to 3.0.57 and 4.0.1, pure-PHP X25519 scalar multiplication in

Affects php-phpseclibSource GCVE Database

0
Compare

Not known to be exploited · CVSS 6.3 Medium · fixed in 3.0.57 : update php-phpseclib when convenient.

Data as of 3 Dec 2026, 18:37 UTC

CVSS 3.1 base score
6.3Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 26% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 3.0.57, 4.0.1
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 1 Sep 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 3 Dec 2026.

What to do

Upgrade phpseclib/phpseclib to 3.0.57; phpseclib/phpseclib to 4.0.1.

Affected software

ProductAffectedFixed in
Ubuntu Pro 14.04 LTSphp5pkg:deb/ubuntu/php5?arch=source&distro=esm-infra-legacy/trustyOther threatsAffected
  • 5.5.3+dfsg-1ubuntu2 – 5.5.9+dfsg-1ubuntu4.29+esm16
47 affected builds
Fixed in–
Ubuntu Pro 16.04 LTSphpseclibpkg:deb/ubuntu/phpseclib?arch=source&distro=esm-apps-legacy/xenialOther threatsAffected
  • 0.3.10-3 – 1.0.1-3ubuntu0.1+esm2
8 affected builds
Fixed in–
Ubuntu Pro 18.04 LTSphp7.2pkg:deb/ubuntu/php7.2?arch=source&distro=esm-infra/bionicOther threatsAffected
  • 7.2.1-1ubuntu2 – 7.2.24-0ubuntu0.18.04.17+esm12
40 affected builds
Fixed in–
Ubuntu Pro 18.04 LTSphpseclibpkg:deb/ubuntu/phpseclib?arch=source&distro=esm-apps/bionicOther threatsAffected
  • 1.0.7-1 – 1.0.9-1ubuntu0.1~esm2
5 affected builds
Fixed in–
Ubuntu Pro 20.04 LTSphp7.4pkg:deb/ubuntu/php7.4?arch=source&distro=esm-infra/focalOther threatsAffected
  • 7.4.3-4build1 – 7.4.3-4ubuntu2.29+esm3
30 affected builds
Fixed in–
Ubuntu Pro 20.04 LTSphpseclibpkg:deb/ubuntu/phpseclib?arch=source&distro=esm-apps/focalOther threatsAffected
  • 1.0.16-2 – 1.0.18-2ubuntu0.1~esm2
4 affected builds
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

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.

References

Community reviews

Loading reviews…