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().
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
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
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
- Received
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-8430SPIP versions prior to 4.4.14 contain a remote code executio…9.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…6.9
- CVE-2026-8431An administrative user with access to configure webhooks can…9.4
- CVE-2026-8432Concrete CMS 9 before 9.5.0 is vulnerable to Cross Site Requ…8.8
- CVE-2026-8433Concrete CMS 9 before 9.5.0 is vulnerable to Cross Site Requ…8.8
- CVE-2026-8434Concrete CMS 9 before 9.5.0 is vulnerable to Cross Site Requ…8.8
- CVE-2026-8435Concrete CMS 9 before 9.5.0 is vulnerable to Cross Site Requ…6.5
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
