{"schemaVersion":3,"id":"CVE-2026-84308","aliases":["UBUNTU-CVE-2026-84308","DEBIAN-CVE-2026-84308","CGA-7f47-qmf7-588j","CGA-r68v-39j5-fxgj","CGA-9g4q-9xpg-p4gj","CGA-fqv4-xpg7-59mh","CGA-jgf4-9m5q-4cc6","CGA-xx37-c6fx-7p5m"],"status":"published","duplicateOf":null,"title":"phpseclib — non-constant-time X25519 scalar multiplication permits full private-key recovery","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.","dates":{"published":"2026-09-01T19:28:09.378Z","modified":"2026-09-03T17:41:50.214Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.3,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.3,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":6.3,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","exploitability":2.6,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":6.3,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","exploitability":2.6,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":6.3,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","exploitability":2.6,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":6.3,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","exploitability":2.6,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.3,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00327,"percentile":0.24528,"severity":"low","asOf":"2026-10-22T00:00:00.000Z","change":{"pp":0.11499999999999999,"baselineDate":"2026-09-22T00:00:00.000Z","baselineScore":0.00212},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00212,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00212,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00212,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00212,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00212,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00212,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00212,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00212,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00212,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00212,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00327,"percentile":0.24528}],"last30":[{"date":"2026-09-22T00:00:00.000Z","score":0.00212,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00212,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00327,"percentile":0.24528}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-208","name":"Observable Timing Discrepancy","description":"Two separate operations in a product require different amounts of time to complete, in a way that is observable to an actor and reveals security-relevant information about the state of the product, such as whether a particular operation was successful or not.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/208.html"},{"id":"CWE-385","name":"Covert Timing Channel","description":"Covert timing channels convey information by modulating some aspect of system behavior over time, so that the program receiving the information can observe system behavior and infer protected information.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/385.html"}],"affected":[{"vendor":"chainguard","product":"nextcloud-server-32","name":"nextcloud-server-32","label":"nextcloud-server-32","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/nextcloud-server-32","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"nextcloud-server-33","name":"nextcloud-server-33","label":"nextcloud-server-33","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/nextcloud-server-33","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"nextcloud-server-34","name":"nextcloud-server-34","label":"nextcloud-server-34","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/nextcloud-server-34","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"wolfi","product":"nextcloud-server-33","name":"nextcloud-server-33","label":"nextcloud-server-33","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/nextcloud-server-33","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"debian","product":"php-phpseclib3","name":"php-phpseclib3","label":"php-phpseclib3","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/php-phpseclib3","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 3.0.57-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 3.0.57-1","eol":null,"hubHref":null},{"vendor":"debian","product":"php-phpseclib4","name":"php-phpseclib4","label":"php-phpseclib4","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/php-phpseclib4","purlType":"deb","versions":[{"text":"< 4.0.1-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.0.1-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"php-phpseclib","name":"php-phpseclib","label":"php-phpseclib","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/php-phpseclib","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"php-phpseclib3","name":"php-phpseclib3","label":"php-phpseclib3","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/php-phpseclib3","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"phpseclib","name":"phpseclib","label":"phpseclib","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/phpseclib","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"phpseclib","product":"phpseclib","name":"phpseclib","label":"phpseclib","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.0.57","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.0.0, < 4.0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.0.57 | ≥ 4.0.0, < 4.0.1","eol":null,"hubHref":"/vendor/phpseclib/phpseclib"}],"affectedCount":10,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/phpseclib/phpseclib/security/advisories/GHSA-q97c-8qh3-fpc6","label":"github.com/phpseclib/phpseclib/security/advisories/GHSA-q97c-8qh3-fpc6","hostname":"github.com","tags":["X Refsource CONFIRM","Advisory"]},{"url":"https://github.com/phpseclib/phpseclib/commit/fb56bc5bb9009b54a6c26b31aeec8ed944f17373","label":"github.com/phpseclib/phpseclib/commit/fb56bc5bb9009b54a6c26b31aeec8ed944f17373","hostname":"github.com","tags":["X Refsource MISC","FIX"]},{"url":"https://github.com/phpseclib/phpseclib/releases/tag/3.0.57","label":"github.com/phpseclib/phpseclib/releases/tag/3.0.57","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/phpseclib/phpseclib/releases/tag/4.0.1","label":"github.com/phpseclib/phpseclib/releases/tag/4.0.1","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://ubuntu.com/security/CVE-2026-84308","label":"ubuntu.com/security/CVE-2026-84308","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-84308","label":"www.cve.org/CVERecord?id=CVE-2026-84308","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-84308","label":"security-tracker.debian.org/tracker/CVE-2026-84308","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/84xxx/CVE-2026-84308.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2026/84xxx/CVE-2026-84308.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-84308","label":"nvd.nist.gov/vuln/detail/CVE-2026-84308","hostname":"nvd.nist.gov","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-09-01T19:28:09.378Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-09-03T17:41:50.214Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":25,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T18:00:33.439Z","stale":false,"partial":false}}