Skip to main content
EPSS 0.3%top 76%

Php phpseclib: Prior to 3.0.57 and 4.0.1, pure-PHP X25519 scalar multiplication in phpseclib/Math/PrimeField/Integer.php performs data-dependent conditional… (CVE-2026-84308)

0
Medium
Published: 09/01/2026 (09/01/2026, 20:17:00 UTC)
Source: GCVE Database
Product: php-phpseclib

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 v3.1

Score 6.3medium

Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N

Affected software

Ubuntu:Pro:14.04:LTSmore threats →ghsa
php5
pkg:deb/ubuntu/php5?arch=source&distro=esm-infra-legacy/trusty
Affected versions
=5.5.3+dfsg-1ubuntu2=5.5.3+dfsg-1ubuntu3=5.5.6+dfsg-1ubuntu1=5.5.6+dfsg-1ubuntu2=5.5.8+dfsg-2ubuntu1=5.5.9+dfsg-1ubuntu1=5.5.9+dfsg-1ubuntu2=5.5.9+dfsg-1ubuntu3=5.5.9+dfsg-1ubuntu4=5.5.9+dfsg-1ubuntu4.1=5.5.9+dfsg-1ubuntu4.2=5.5.9+dfsg-1ubuntu4.3=5.5.9+dfsg-1ubuntu4.4=5.5.9+dfsg-1ubuntu4.5=5.5.9+dfsg-1ubuntu4.6=5.5.9+dfsg-1ubuntu4.7=5.5.9+dfsg-1ubuntu4.9=5.5.9+dfsg-1ubuntu4.11=5.5.9+dfsg-1ubuntu4.12=5.5.9+dfsg-1ubuntu4.13=5.5.9+dfsg-1ubuntu4.14=5.5.9+dfsg-1ubuntu4.16=5.5.9+dfsg-1ubuntu4.17=5.5.9+dfsg-1ubuntu4.19=5.5.9+dfsg-1ubuntu4.20=5.5.9+dfsg-1ubuntu4.21=5.5.9+dfsg-1ubuntu4.22=5.5.9+dfsg-1ubuntu4.23=5.5.9+dfsg-1ubuntu4.24=5.5.9+dfsg-1ubuntu4.25=5.5.9+dfsg-1ubuntu4.26=5.5.9+dfsg-1ubuntu4.27=5.5.9+dfsg-1ubuntu4.29=5.5.9+dfsg-1ubuntu4.29+esm1=5.5.9+dfsg-1ubuntu4.29+esm2=5.5.9+dfsg-1ubuntu4.29+esm3=5.5.9+dfsg-1ubuntu4.29+esm4=5.5.9+dfsg-1ubuntu4.29+esm5=5.5.9+dfsg-1ubuntu4.29+esm6=5.5.9+dfsg-1ubuntu4.29+esm8=5.5.9+dfsg-1ubuntu4.29+esm10=5.5.9+dfsg-1ubuntu4.29+esm11=5.5.9+dfsg-1ubuntu4.29+esm12=5.5.9+dfsg-1ubuntu4.29+esm13=5.5.9+dfsg-1ubuntu4.29+esm14=5.5.9+dfsg-1ubuntu4.29+esm15=5.5.9+dfsg-1ubuntu4.29+esm16
Ubuntu:Pro:16.04:LTSmore threats →ghsa
phpseclib
pkg:deb/ubuntu/phpseclib?arch=source&distro=esm-apps-legacy/xenial
Affected versions
=0.3.10-3=1.0.0-2=1.0.0-3=1.0.1-1=1.0.1-3=1.0.1-3ubuntu0.1=1.0.1-3ubuntu0.1+esm1
Ubuntu:Pro:18.04:LTSmore threats →ghsa
php7.2
pkg:deb/ubuntu/php7.2?arch=source&distro=esm-infra/bionic
Affected versions
=7.2.1-1ubuntu2=7.2.2-1ubuntu1=7.2.2-1ubuntu2=7.2.3-1ubuntu1=7.2.5-0ubuntu0.18.04.1=7.2.7-0ubuntu0.18.04.1=7.2.7-0ubuntu0.18.04.2=7.2.10-0ubuntu0.18.04.1=7.2.15-0ubuntu0.18.04.1=7.2.15-0ubuntu0.18.04.2=7.2.17-0ubuntu0.18.04.1=7.2.19-0ubuntu0.18.04.1=7.2.19-0ubuntu0.18.04.2=7.2.24-0ubuntu0.18.04.1=7.2.24-0ubuntu0.18.04.2=7.2.24-0ubuntu0.18.04.3=7.2.24-0ubuntu0.18.04.4=7.2.24-0ubuntu0.18.04.6=7.2.24-0ubuntu0.18.04.7=7.2.24-0ubuntu0.18.04.8=7.2.24-0ubuntu0.18.04.9=7.2.24-0ubuntu0.18.04.10=7.2.24-0ubuntu0.18.04.11=7.2.24-0ubuntu0.18.04.12=7.2.24-0ubuntu0.18.04.13=7.2.24-0ubuntu0.18.04.15=7.2.24-0ubuntu0.18.04.16=7.2.24-0ubuntu0.18.04.17=7.2.24-0ubuntu0.18.04.17+esm1=7.2.24-0ubuntu0.18.04.17+esm2=7.2.24-0ubuntu0.18.04.17+esm3=7.2.24-0ubuntu0.18.04.17+esm4=7.2.24-0ubuntu0.18.04.17+esm5=7.2.24-0ubuntu0.18.04.17+esm6=7.2.24-0ubuntu0.18.04.17+esm7=7.2.24-0ubuntu0.18.04.17+esm8=7.2.24-0ubuntu0.18.04.17+esm9=7.2.24-0ubuntu0.18.04.17+esm10=7.2.24-0ubuntu0.18.04.17+esm11=7.2.24-0ubuntu0.18.04.17+esm12
Ubuntu:Pro:18.04:LTSmore threats →ghsa
phpseclib
pkg:deb/ubuntu/phpseclib?arch=source&distro=esm-apps/bionic
Affected versions
=1.0.7-1=1.0.8-1=1.0.9-1=1.0.9-1ubuntu0.1~esm1=1.0.9-1ubuntu0.1~esm2
Ubuntu:Pro:20.04:LTSmore threats →ghsa
php7.4
pkg:deb/ubuntu/php7.4?arch=source&distro=esm-infra/focal
Affected versions
=7.4.3-4build1=7.4.3-4build2=7.4.3-4ubuntu1=7.4.3-4ubuntu1.1=7.4.3-4ubuntu2.2=7.4.3-4ubuntu2.4=7.4.3-4ubuntu2.5=7.4.3-4ubuntu2.6=7.4.3-4ubuntu2.7=7.4.3-4ubuntu2.8=7.4.3-4ubuntu2.9=7.4.3-4ubuntu2.10=7.4.3-4ubuntu2.11=7.4.3-4ubuntu2.12=7.4.3-4ubuntu2.13=7.4.3-4ubuntu2.15=7.4.3-4ubuntu2.16=7.4.3-4ubuntu2.17=7.4.3-4ubuntu2.18=7.4.3-4ubuntu2.19=7.4.3-4ubuntu2.20=7.4.3-4ubuntu2.22=7.4.3-4ubuntu2.23=7.4.3-4ubuntu2.24=7.4.3-4ubuntu2.26=7.4.3-4ubuntu2.28=7.4.3-4ubuntu2.29=7.4.3-4ubuntu2.29+esm1=7.4.3-4ubuntu2.29+esm2=7.4.3-4ubuntu2.29+esm3
Ubuntu:Pro:20.04:LTSmore threats →ghsa
phpseclib
pkg:deb/ubuntu/phpseclib?arch=source&distro=esm-apps/focal
Affected versions
=1.0.16-2=1.0.18-2=1.0.18-2ubuntu0.1~esm1=1.0.18-2ubuntu0.1~esm2
Ubuntu:22.04:LTSmore threats →ghsa
php8.1
pkg:deb/ubuntu/php8.1?arch=source&distro=jammy
Affected versions
=8.1.0~rc4-1ubuntu2=8.1.0-1=8.1.2-1ubuntu1=8.1.2-1ubuntu2=8.1.2-1ubuntu2.1=8.1.2-1ubuntu2.2=8.1.2-1ubuntu2.3=8.1.2-1ubuntu2.4=8.1.2-1ubuntu2.5=8.1.2-1ubuntu2.6=8.1.2-1ubuntu2.8=8.1.2-1ubuntu2.9=8.1.2-1ubuntu2.10=8.1.2-1ubuntu2.11=8.1.2-1ubuntu2.13=8.1.2-1ubuntu2.14=8.1.2-1ubuntu2.15=8.1.2-1ubuntu2.17=8.1.2-1ubuntu2.18=8.1.2-1ubuntu2.19=8.1.2-1ubuntu2.20=8.1.2-1ubuntu2.21=8.1.2-1ubuntu2.22=8.1.2-1ubuntu2.23=8.1.2-1ubuntu2.24=8.1.2-1ubuntu2.25
Ubuntu:Pro:22.04:LTSmore threats →ghsa
phpseclib
pkg:deb/ubuntu/phpseclib?arch=source&distro=esm-apps/jammy
Affected versions
=1.0.19-3ubuntu2=1.0.19-3ubuntu3=1.0.20-1=1.0.20-1ubuntu0.1~esm1
Ubuntu:24.04:LTSmore threats →ghsa
php8.3
pkg:deb/ubuntu/php8.3?arch=source&distro=noble
Affected versions
=8.3.0-1=8.3.0-1ubuntu1=8.3.4-1=8.3.4-1build1=8.3.6-0maysync1=8.3.6-0ubuntu0.24.04.1=8.3.6-0ubuntu0.24.04.2=8.3.6-0ubuntu0.24.04.3=8.3.6-0ubuntu0.24.04.4=8.3.6-0ubuntu0.24.04.5=8.3.6-0ubuntu0.24.04.6=8.3.6-0ubuntu0.24.04.7=8.3.6-0ubuntu0.24.04.8=8.3.6-0ubuntu0.24.04.9=8.3.6-0ubuntu0.24.04.10
Ubuntu:24.04:LTSmore threats →ghsa
phpseclib
pkg:deb/ubuntu/phpseclib?arch=source&distro=noble
Affected versions
=1.0.21-2=1.0.22-1=1.0.23-1
Ubuntu:26.04:LTSmore threats →ghsa
php8.5
pkg:deb/ubuntu/php8.5?arch=source&distro=resolute
Affected versions
=8.5.2-0ubuntu1=8.5.4-0ubuntu1=8.5.4-0ubuntu1.1=8.5.4-0ubuntu1.2
Ubuntu:26.04:LTSmore threats →ghsa
phpseclib
pkg:deb/ubuntu/phpseclib?arch=source&distro=resolute
Affected versions
=1.0.23-6=1.0.24-1
Ubuntu:Pro:16.04:LTSmore threats →ghsa
php-phpseclib
pkg:deb/ubuntu/php-phpseclib?arch=source&distro=esm-apps-legacy/xenial
Affected versions
=2.0.1-1=2.0.1-1build1=2.0.1-1ubuntu0.1~esm1=2.0.1-1ubuntu0.1~esm2
Ubuntu:Pro:18.04:LTSmore threats →ghsa
php-phpseclib
pkg:deb/ubuntu/php-phpseclib?arch=source&distro=esm-apps/bionic
Affected versions
=2.0.6-1=2.0.7-1=2.0.9-1=2.0.9-1ubuntu0.1~esm2=2.0.9-1ubuntu0.1~esm3
Ubuntu:Pro:20.04:LTSmore threats →ghsa
php-phpseclib
pkg:deb/ubuntu/php-phpseclib?arch=source&distro=esm-apps/focal
Affected versions
=2.0.21-2=2.0.23-2=2.0.23-2ubuntu0.1~esm2=2.0.23-2ubuntu0.1~esm3
Ubuntu:Pro:22.04:LTSmore threats →ghsa
php-phpseclib
pkg:deb/ubuntu/php-phpseclib?arch=source&distro=esm-apps/jammy
Affected versions
=2.0.30-2ubuntu1=2.0.34-1=2.0.35-1=2.0.36-1=2.0.36-1ubuntu0.1~esm2=2.0.36-1ubuntu0.1~esm3
Ubuntu:Pro:22.04:LTSmore threats →ghsa
php-phpseclib3
pkg:deb/ubuntu/php-phpseclib3?arch=source&distro=esm-apps/jammy
Affected versions
=3.0.9-1=3.0.10-1=3.0.12-2=3.0.13-1=3.0.13-1ubuntu0.1~esm1
Ubuntu:24.04:LTSmore threats →ghsa
php-phpseclib
pkg:deb/ubuntu/php-phpseclib?arch=source&distro=noble
Affected versions
=2.0.44-1=2.0.45-1=2.0.46-1=2.0.47-1
Ubuntu:24.04:LTSmore threats →ghsa
php-phpseclib3
pkg:deb/ubuntu/php-phpseclib3?arch=source&distro=noble
Affected versions
=3.0.21-2=3.0.33-1=3.0.34-1=3.0.35-1=3.0.37-1
Ubuntu:26.04:LTSmore threats →ghsa
php-phpseclib
pkg:deb/ubuntu/php-phpseclib?arch=source&distro=resolute
Affected versions
=2.0.48-3=2.0.49-1=2.0.51-1
Ubuntu:26.04:LTSmore threats →ghsa
php-phpseclib3
pkg:deb/ubuntu/php-phpseclib3?arch=source&distro=resolute
Affected versions
=3.0.43-2=3.0.44-1=3.0.47-1=3.0.49-1=3.0.49-1ubuntu1
Ubuntu:22.04:LTSmore threats →ghsa
phpseclib
pkg:deb/ubuntu/phpseclib?arch=source&distro=jammy
Affected versions
=1.0.19-3ubuntu2=1.0.19-3ubuntu3=1.0.20-1=1.0.20-1ubuntu0.1~esm1=1.0.20-1+deb12u3build0.22.04.1
Ubuntu:Pro:24.04:LTSmore threats →ghsa
php-phpseclib
pkg:deb/ubuntu/php-phpseclib?arch=source&distro=esm-apps/noble
Affected versions
=2.0.44-1=2.0.45-1=2.0.46-1=2.0.47-1=2.0.47-1ubuntu0.1~esm1
Ubuntu:Pro:24.04:LTSmore threats →ghsa
phpseclib
pkg:deb/ubuntu/phpseclib?arch=source&distro=esm-apps/noble
Affected versions
=1.0.21-2=1.0.22-1=1.0.23-1=1.0.23-1ubuntu0.1~esm1
Ubuntu:26.10more threats →ghsa
php-phpseclib
pkg:deb/ubuntu/php-phpseclib?arch=source&distro=stonking
Affected versions
=2.0.51-1=2.0.54-1=2.0.55-1
Ubuntu:26.10more threats →ghsa
php-phpseclib3
pkg:deb/ubuntu/php-phpseclib3?arch=source&distro=stonking
Affected versions
=3.0.49-1ubuntu1=3.0.57-1
Ubuntu:26.10more threats →ghsa
phpseclib
pkg:deb/ubuntu/phpseclib?arch=source&distro=stonking
Affected versions
=1.0.24-1=1.0.29-1=1.0.30-1
Ubuntu:Pro:26.04:LTSmore threats →ghsa
php-phpseclib
pkg:deb/ubuntu/php-phpseclib?arch=source&distro=esm-apps/resolute
Affected versions
=2.0.48-3=2.0.49-1=2.0.51-1=2.0.51-1ubuntu0.1~esm1
Ubuntu:Pro:26.04:LTSmore threats →ghsa
phpseclib
pkg:deb/ubuntu/phpseclib?arch=source&distro=esm-apps/resolute
Affected versions
=1.0.23-6=1.0.24-1=1.0.24-1ubuntu0.1~esm1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

Technical Details

Gcve Source
db.gcve.eu
Osv Id
UBUNTU-CVE-2026-84308
Osv Schema Version
1.7.0
Ecosystems
["Ubuntu:Pro:14.04:LTS","Ubuntu:Pro:16.04:LTS","Ubuntu:Pro:18.04:LTS","Ubuntu:Pro:20.04:LTS","Ubuntu:22.04:LTS","Ubuntu:Pro:22.04:LTS","Ubuntu:24.04:LTS","Ubuntu:26.04:LTS"]

Threat ID: 6a998f6dacd9273b491935e3

Added to database: 09/03/2026, 15:17:01 UTC

Last updated: 10/19/2026, 18:48:24 UTC

Views: 57

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses