PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-84308 phpseclib CVE debrief

The CVE-2026-84308 vulnerability affects phpseclib, a PHP secure communications library, specifically in its pure-PHP X25519 scalar multiplication implementation. This vulnerability allows a local observer to potentially recover a reused 251-bit clamped private scalar, compromising operations that reuse that key. The issue arises from data-dependent conditional modular reductions in the add() and subtract() functions, creating per-step timing and libgmp call-count observations. This vulnerability is fixed in phpseclib versions 3.0.57 and 4.0.1. Developers and administrators using phpseclib for secure communications should be aware of this vulnerability and take action to update their installations, particularly for systems that reuse X25519 private keys or have long-lived keys, as these are more susceptible to exploitation.

Vendor
phpseclib
Product
Unknown
CVSS
MEDIUM 6.3
CISA KEV
Not listed in stored evidence
Original CVE published
2026-09-01
Original CVE updated
2026-09-03
Advisory published
2026-09-01
Advisory updated
2026-09-03

Who should care

Developers and administrators using phpseclib for secure communications should be aware of this vulnerability and take action to update their installations. Particular attention should be paid to systems that reuse X25519 private keys or have long-lived keys, as these are more susceptible to exploitation.

Technical summary

The phpseclib library, prior to versions 3.0.57 and 4.0.1, contains a timing attack vulnerability in its pure-PHP X25519 scalar multiplication implementation. This vulnerability allows a local observer to potentially recover a reused 251-bit clamped private scalar, compromising operations that reuse that key. The vulnerability is due to data-dependent conditional modular reductions in the add() and subtract() functions, which create per-step timing and libgmp call-count observations. This issue is fixed in versions 3.0.57 and 4.0.1 of phpseclib.

Defensive priority

Medium-priority defensive actions recommended due to potential for local observers to resolve individual ladder steps or libgmp entry-point calls, allowing recovery of the scalar and permanent compromise of operations that reuse that key.

Recommended defensive actions

  • Update phpseclib to version 3.0.57 or 4.0.1 to fix the vulnerability
  • Use native-engine checks for pure-PHP multiplication
  • Avoid reusing X25519 private keys
  • Monitor for local observers capable of resolving individual ladder steps or libgmp entry-point calls
  • Review compensating controls for exposed systems while remediation is scheduled and verified
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review
  • Track exceptions, retest remediated assets, and close the item only after evidence is documented

Evidence notes

Evidence from official CVE Program record and NIST NVD detail page indicates a timing attack vulnerability in phpseclib's pure-PHP X25519 scalar multiplication. Local observers may resolve individual ladder steps or libgmp entry-point calls to reveal a reused 251-bit clamped private scalar. Ephemeral X25519 keys are not affected.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-84308 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-84308

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-84308 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-84308

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.