DEBIAN-CVE-2026-84308

Source
https://security-tracker.debian.org/tracker/CVE-2026-84308
Import Source
https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-84308.json
JSON Data
https://api.osv.dev/v1/vulns/DEBIAN-CVE-2026-84308
Upstream
Published
2026-09-01T20:17:24Z
Modified
2026-09-10T08:47:33Z
Severity
  • 6.3 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Debian:12 / php-phpseclib3

Package

Name
php-phpseclib3
Purl
pkg:deb/debian/php-phpseclib3?arch=source&distro=bookworm

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

3.*
3.0.19-1
3.0.19-1+deb12u1
3.0.19-1+deb12u2
3.0.19-1+deb12u3
3.0.19-1+deb12u4
3.0.19-1+deb12u6
3.0.20-1
3.0.21-1
3.0.21-2
3.0.22-1
3.0.23-1
3.0.33-1
3.0.34-1
3.0.35-1
3.0.36-1
3.0.37-1
3.0.38-1
3.0.39-1
3.0.41-1
3.0.42-1
3.0.43-1
3.0.43-2
3.0.44-1
3.0.44-2
3.0.45-1
3.0.46-1
3.0.46-2
3.0.47-1
3.0.48-1
3.0.49-1
3.0.50-1
3.0.51-1
3.0.52-1
3.0.52-2
3.0.53-1
3.0.55-1
3.0.56-1
3.0.57-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Database specific

source
"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-84308.json"

Debian:13 / php-phpseclib3

Package

Name
php-phpseclib3
Purl
pkg:deb/debian/php-phpseclib3?arch=source&distro=trixie

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

3.*
3.0.43-2
3.0.43-2+deb13u1
3.0.43-2+deb13u3
3.0.44-1
3.0.44-2
3.0.45-1
3.0.46-1
3.0.46-2
3.0.47-1
3.0.48-1
3.0.49-1
3.0.50-1
3.0.51-1
3.0.52-1
3.0.52-2
3.0.53-1
3.0.55-1
3.0.56-1
3.0.57-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Database specific

source
"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-84308.json"

Debian:14 / php-phpseclib3

Package

Name
php-phpseclib3
Purl
pkg:deb/debian/php-phpseclib3?arch=source&distro=forky

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
3.0.57-1

Affected versions

3.*
3.0.43-2
3.0.44-1
3.0.44-2
3.0.45-1
3.0.46-1
3.0.46-2
3.0.47-1
3.0.48-1
3.0.49-1
3.0.50-1
3.0.51-1
3.0.52-1
3.0.52-2
3.0.53-1
3.0.55-1
3.0.56-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Database specific

source
"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-84308.json"

Debian:14 / php-phpseclib4

Package

Name
php-phpseclib4
Purl
pkg:deb/debian/php-phpseclib4?arch=source&distro=forky

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
4.0.1-1

Affected versions

4.*
4.0.0-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Database specific

source
"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-84308.json"