CVE-2026-84308
Last modified
CVE-2026-84308 is a medium-severity vulnerability rated 6.3/10 on the CVSS scale. 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(). EPSS estimates a 0.21% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| phpseclib | phpseclib | < 3.0.57; >= 4.0.0, < 4.0.1 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-84308?
How severe is CVE-2026-84308?
How do I fix CVE-2026-84308?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-84302Discourse is an open-source discussion platform. Prior to 20…4.2
- CVE-2026-84303gRPC-Go is the Go language implementation of gRPC. Prior to …6.3
- CVE-2026-84304gRPC-Go is the Go language implementation of gRPC. Prior to …8.7
- CVE-2026-84305sqlparse is a non-validating SQL parser module for Python. P…5.1
- CVE-2026-84306Filament is a collection of full-stack components for accele…6.5
- CVE-2026-84307Filament is a collection of full-stack components for accele…3.7
- CVE-2026-84309pypdf is a free and open-source pure-python PDF library. Pri…5.5
- CVE-2026-8431An administrative user with access to configure webhooks can…7.2
- CVE-2026-84310pypdf is a free and open-source pure-python PDF library. Pri…3.3
- CVE-2026-84311pypdf is a free and open-source pure-python PDF library. Pri…3.3
- CVE-2026-84312Nginx UI is a web user interface for the Nginx web server. P…7.1
- CVE-2026-84313Nginx UI is a web user interface for the Nginx web server. P…8.8
Are you affected by CVE-2026-84308?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
