CVEMETERBack to radar
OFFICIAL RECORD · PHP packages

CVE-2026-84308

PUBLISHEDOfficial status check: verifiedCVSS 3.1: 6.3 · medium

phpseclib — non-constant-time X25519 scalar multiplication permits full private-key recovery

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.

Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.

Severity and exploitation evidence

EPSS: 0.327% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.

CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T16:57:41.748Z. Public exploit availability is not used to set this status.

CVSS 3.1 · 6.3 · published by GitHub_M
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
Assessment source · checked 2026-11-19T12:59:15.765Z

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T16:57:41.748ZCISA KEV
cvssverified2026-11-19T12:59:15.765ZCVE Program
epssverified2026-11-19T16:04:55.369ZFIRST EPSS
patchesverified2026-11-19T12:52:36.001ZOSV
affectedverified2026-11-19T12:59:15.765ZCVE Program
lifecycleverified2026-11-19T12:59:15.765ZCVE Program

Affected versions and configuration

phpseclib phpseclib; default status: unknown: < 3.0.57 [affected; scheme: unspecified]; >= 4.0.0, < 4.0.1 [affected; scheme: unspecified]

Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.

CVE Program · cve-json · full conditions
{
  "affected": [
    {
      "vendor": "phpseclib",
      "product": "phpseclib",
      "versions": [
        {
          "status": "affected",
          "version": "< 3.0.57"
        },
        {
          "status": "affected",
          "version": ">= 4.0.0, < 4.0.1"
        }
      ]
    }
  ],
  "additionalContainers": [
    {
      "title": "CISA ADP Vulnrichment",
      "metrics": [
        {
          "other": {
            "type": "ssvc",
            "content": {
              "id": "CVE-2026-84308",
              "role": "CISA Coordinator",
              "options": [
                {
                  "Exploitation": "poc"
                },
                {
                  "Automatable": "no"
                },
                {
                  "Technical Impact": "total"
                }
              ],
              "version": "2.0.3",
              "timestamp": "2026-09-03T17:41:43.770409Z"
            }
          }
        }
      ],
      "references": [
        {
          "url": "https://github.com/phpseclib/phpseclib/security/advisories/GHSA-q97c-8qh3-fpc6",
          "tags": [
            "exploit"
          ]
        }
      ],
      "providerMetadata": {
        "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "shortName": "CISA-ADP",
        "dateUpdated": "2026-09-03T17:41:50.214Z"
      }
    }
  ]
}
Archived source JSON
OSV · osv · full conditions
{
  "id": "GHSA-q97c-8qh3-fpc6",
  "aliases": [
    "CVE-2026-84308"
  ],
  "affected": [
    {
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "3.0.57"
            }
          ]
        }
      ],
      "package": {
        "name": "phpseclib/phpseclib",
        "purl": "pkg:composer/phpseclib/phpseclib",
        "ecosystem": "Packagist"
      },
      "versions": [
        "0.3.0",
        "0.3.1",
        "0.3.10",
        "0.3.5",
        "0.3.6",
        "0.3.7",
        "0.3.8",
        "0.3.9",
        "1.0.0",
        "1.0.1",
        "1.0.10",
        "1.0.11",
        "1.0.12",
        "1.0.13",
        "1.0.14",
        "1.0.15",
        "1.0.16",
        "1.0.17",
        "1.0.18",
        "1.0.19",
        "1.0.2",
        "1.0.20",
        "1.0.21",
        "1.0.22",
        "1.0.23",
        "1.0.24",
        "1.0.25",
        "1.0.26",
        "1.0.27",
        "1.0.28",
        "1.0.29",
        "1.0.3",
        "1.0.30",
        "1.0.4",
        "1.0.5",
        "1.0.6",
        "1.0.7",
        "1.0.8",
        "1.0.9",
        "2.0.0",
        "2.0.1",
        "2.0.10",
        "2.0.11",
        "2.0.12",
        "2.0.13",
        "2.0.14",
        "2.0.15",
        "2.0.16",
        "2.0.17",
        "2.0.18",
        "2.0.19",
        "2.0.2",
        "2.0.20",
        "2.0.21",
        "2.0.22",
        "2.0.23",
        "2.0.24",
        "2.0.25",
        "2.0.26",
        "2.0.27",
        "2.0.28",
        "2.0.29",
        "2.0.3",
        "2.0.30",
        "2.0.31",
        "2.0.32",
        "2.0.33",
        "2.0.34",
        "2.0.35",
        "2.0.36",
        "2.0.37",
        "2.0.38",
        "2.0.39",
        "2.0.4",
        "2.0.40",
        "2.0.41",
        "2.0.42",
        "2.0.43",
        "2.0.44",
        "2.0.45",
        "2.0.46",
        "2.0.47",
        "2.0.48",
        "2.0.49",
        "2.0.5",
        "2.0.50",
        "2.0.51",
        "2.0.52",
        "2.0.53",
        "2.0.54",
        "2.0.55",
        "2.0.6",
        "2.0.7",
        "2.0.8",
        "2.0.9",
        "3.0.0",
        "3.0.1",
        "3.0.10",
        "3.0.11",
        "3.0.12",
        "3.0.13",
        "3.0.14",
        "3.0.15",
        "3.0.16",
        "3.0.17",
        "3.0.18",
        "3.0.19",
        "3.0.2",
        "3.0.20",
        "3.0.21",
        "3.0.22",
        "3.0.23",
        "3.0.3",
        "3.0.33",
        "3.0.34",
        "3.0.35",
        "3.0.36",
        "3.0.37",
        "3.0.38",
        "3.0.39",
        "3.0.4",
        "3.0.40",
        "3.0.41",
        "3.0.42",
        "3.0.43",
        "3.0.44",
        "3.0.45",
        "3.0.46",
        "3.0.47",
        "3.0.48",
        "3.0.49",
        "3.0.5",
        "3.0.50",
        "3.0.51",
        "3.0.52",
        "3.0.53",
        "3.0.54",
        "3.0.55",
        "3.0.56",
        "3.0.6",
        "3.0.7",
        "3.0.8",
        "3.0.9"
      ],
      "database_specific": {
        "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-q97c-8qh3-fpc6/GHSA-q97c-8qh3-fpc6.json"
      }
    },
    {
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "4.0.0"
            },
            {
              "fixed": "4.0.1"
            }
          ]
        }
      ],
      "package": {
        "name": "phpseclib/phpseclib",
        "purl": "pkg:composer/phpseclib/phpseclib",
        "ecosystem": "Packagist"
      },
      "versions": [
        "4.0.0"
      ],
      "database_specific": {
        "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-q97c-8qh3-fpc6/GHSA-q97c-8qh3-fpc6.json"
      }
    }
  ],
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N"
    }
  ],
  "upstream": [],
  "withdrawn": null,
  "references": [
    {
      "url": "https://github.com/phpseclib/phpseclib/security/advisories/GHSA-q97c-8qh3-fpc6",
      "type": "WEB"
    },
    {
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-84308",
      "type": "ADVISORY"
    },
    {
      "url": "https://github.com/phpseclib/phpseclib/commit/fb56bc5bb9009b54a6c26b31aeec8ed944f17373",
      "type": "WEB"
    },
    {
      "url": "https://github.com/phpseclib/phpseclib",
      "type": "PACKAGE"
    },
    {
      "url": "https://github.com/phpseclib/phpseclib/releases/tag/3.0.57",
      "type": "WEB"
    },
    {
      "url": "https://github.com/phpseclib/phpseclib/releases/tag/4.0.1",
      "type": "WEB"
    }
  ],
  "relatedGitRanges": [],
  "database_specific": {
    "cwe_ids": [
      "CWE-208",
      "CWE-385"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "nvd_published_at": "2026-09-01T20:17:24Z",
    "github_reviewed_at": "2026-09-08T21:24:29Z"
  }
}
Archived source JSON

Correction evidence

Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.

Evidence typeDistribution / releasePackageChannelVersion or source noteSource
ecosystem-boundaryPackagist / packagephpseclib/phpseclibNot a distribution channel3.0.57Official record
ecosystem-boundaryPackagist / packagephpseclib/phpseclibNot a distribution channel4.0.1Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history