cve.bz

CVE-2026-84308 phpseclib phpseclib: Observable Timing Discrepancy

6.3 mediumEPSS 0.3%Fix available

Medium (6.3) in phpseclib phpseclib. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in phpseclib/phpseclib 3.0.57, 4.0.1.

On this page
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.

Severity

CVSS 3.1

6.3 medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 18th percentile. Scored 2026-11-30. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2026-09-03. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-208 Observable Timing Discrepancy
CWE-385 Covert Timing Channel
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-84308 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-84308?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-84308?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-84308 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
phpseclib< 3.0.57
phpseclib>= 4.0.0, < 4.0.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-q97c-8qh3-fpc6Packagistphpseclib/phpseclib<3.0.573.0.57
GHSA-q97c-8qh3-fpc6Packagistphpseclib/phpseclib>=4.0.0 <4.0.14.0.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13php-phpseclib3no fix listedDEBIAN-CVE-2026-84308
Debian14php-phpseclib33.0.57-1DEBIAN-CVE-2026-84308
Debian14php-phpseclib44.0.1-1DEBIAN-CVE-2026-84308
Ubuntu24.04:LTS, 26.04:LTSphp-phpseclib3no fix listedUBUNTU-CVE-2026-84308
Ubuntu26.10, Pro:22.04:LTSphpseclib, php-phpseclib, php-phpseclib3no fix listedUBUNTU-CVE-2026-84308
UbuntuPro:16.04:LTS, Pro:18.04:LTS, Pro:20.04:LTS and 2 morephpseclib, php-phpseclibno fix listedUBUNTU-CVE-2026-84308

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Attack patterns (CAPEC)

  • CAPEC-462 Cross-Domain Search Timing Severity: Medium
  • CAPEC-541 Application Fingerprinting Severity: Low
  • CAPEC-580 System Footprinting Likelihood: Low · Severity: Low

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON