6.3

CVE-2026-84308: phpseclib Observable Timing Discrepancy

CVSS: 6.3v3.1MediumDeferred
AliasesUBUNTU-CVE-2026-84308DEBIAN-CVE-2026-84308CGA-7f47-qmf7-588j
Published 01-09-2026Last modified 03-09-2026

Vulnerability summary

CVE-2026-84308 is a medium (CVSS 6.3) Observable Timing Discrepancy vulnerability in phpseclib. EPSS estimates a 0.33% chance of exploitation in the next 30 days, higher than 24.4% of scored vulnerabilities.

Overall risk
25/100
0100
Medium · default modelHow is this calculated?
CVSS score
6.3/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.33%
0%100%
Low · +0.11 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Timeline

  1. 01-09-2026
    PublishedVulnerability first disclosed.
  2. 03-09-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

6 scores · 6 sources · 1 version

EPSS trend

Probability

0.33%

Chance of exploitation in the next 30 days

Percentile

24%

Versus all other CVEs

30-day change

+0.11 pp

From 0.21% on 21-09-2026

21-09-202621-10-2026
EPSS score
0.33%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Chainguard3 products
  • nextcloud-server-32All versions (No fix recorded)
  • nextcloud-server-33All versions (No fix recorded)
  • nextcloud-server-34All versions (No fix recorded)
Ubuntu3 products
  • php-phpseclibAll versions (No fix recorded)
  • php-phpseclib3All versions (No fix recorded)
  • phpseclibAll versions (No fix recorded)
Debian2 products
  • php-phpseclib3All versions (No fix recorded) | < 3.0.57-1
  • php-phpseclib4< 4.0.1-1
Phpseclib1 product
Wolfi1 product
  • nextcloud-server-33All versions (No fix recorded)

5 vendors · 10 products

References

9 links