Caption: composer why phpseclib/phpseclib first. If the package is missing, stop. The CVE floor is 3.0.57 / 4.0.1. The audit floor this week is 3.0.58 / 4.0.3. Illuminate does not ship this CVE.
I did not time a Montgomery ladder tonight. I opened Ubuntu 24.04.5 and installed archive php8.3-cli plus archive composer. php -v printed PHP 8.3.6, built 18 Nov 2026 23:42:07. PHP_VERSION_ID is 80306. Package 8.3.6-0ubuntu0.24.04.14. No php-fpm on this box. Distro Composer is still 2.7.1-2. php -m printed sodium, gmp, and openssl. function_exists('sodium_crypto_box_publickey_from_secretkey') is true. disable_functions is empty.
This site’s lib/composer.json does not require phpseclib/phpseclib. composer why in that directory printed No dependencies installed. That is the honest miss, same shape as a MySQL CodeCanyon box that never added SFTP.
Then I made a throwaway Composer tree and pinned 3.0.56. composer audit --locked printed two advisories and exited 1. That is the error I would actually hit in CI: a policy failure, not a red FPM stack trace. Pin 3.0.57 and the CVE line goes away. The other line does not. Pin 3.0.58 and audit prints No security vulnerability advisories found. That is the wall this week: the August CVE tag is not the November audit floor.
I opened the 3.0.56 tree. MontgomeryPrivate.php still called multiplyPoint() with no engine check. IS_INVISIBLE was true. PKCS8.php already gated on sodium_crypto_box_publickey_from_secretkey. In 3.0.57, MontgomeryPrivate::load calls deriveMontgomeryPublicKey() on the Common trait: libsodium, then OpenSSL, then PHP. PrimeField\Integer::add() uses a mask instead of compare($modulo) >= 0. I am not claiming a stopwatch proof. I am claiming the files match the 26 Aug note.
Lab note only. I did not write a remote exploit. I did not paste a raw MontgomeryPrivate key. I did not hook hrtime() on the ladder.
What changed
terrafrost published GHSA-q97c-8qh3-fpc6 on 26 Aug 2026. GitHub tagged 3.0.57 at 2026-08-26T12:16:18Z and 4.0.1 at 12:17:08Z. Both notes say Curve25519/448: improve timing attack resistance (CVE-2026-84308). Packagist time is 2026-08-26T12:13:21+00:00 for 3.0.57 and 2026-08-26T12:15:13+00:00 for 4.0.1. The GitHub Advisory Database row is later: published_at 2026-09-08T21:24:29Z. That is the timestamp composer audit printed as Reported at. CVE.org updated 2026-09-01. GitHub’s advisory API gives nvd_published_at 2026-09-01T20:17:24Z.
What I will treat as locked:
- CVE-2026-84308 / GHSA-q97c-8qh3-fpc6. Package:
phpseclib/phpseclib, notlaravel/framework. Severity Medium. CVSS 6.3 (CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N). CWE-208 and CWE-385. Packagist PKSA-12sz-bcny-pk4m. The repo advisory’s own table is 3.0.0 through 3.0.56 and 4.0.0. Patched in 3.0.57 and 4.0.1. The GitHub Advisory Database / Packagist range is the sloppier below 3.0.57, or 4.0.0 only. That second form is why 2.0.57 still failscomposer auditon this CVE even though the 2.0.57 changelog never mentions Curve25519 timing. - The leak is the pure-PHP X25519 ladder, not SSH. Field
add()/subtract()took a data-dependent modular reduction. An observer with per-ladder-step resolution (or libgmp call counts) can recover a reused 251-bit clamped scalar. Ephemeral X25519 — the normal TLS and SSH case — defeats it. The advisory says phpseclib’s own SSH path generates a fresh scalar per exchange and is not affected. Required: long-lived key, known public key, the pure-PHP path actually running, and a local co-resident observer. The reporters call it a hardening issue and demonstrated side channel, not a completed remote exploit. - Which loader hits the ladder.
EC::loadFormat('MontgomeryPrivate', $raw32)ran it in every extension configuration, butMontgomeryPrivate::IS_INVISIBLEis true (I printed that on 3.0.56).PublicKeyLoader::loadskips that format.PKCS8/PublicKeyLoader/EC::createKeyran the ladder only when ext-sodium was absent.DH::computeSecretneededEC::forceEngine('PHP')or bothopenssl_pkey_deriveandsodium_crypto_scalarmultgone. This lab has sodium and OpenSSL. PKCS8 on this CLI is not the vulnerable path. Shared hosting that put sodium indisable_functionsstill is. - 3.0.57 is not this week’s
composer auditfloor. Sibling GHSA-w3p9-g4p2-h3rr published 2 Nov 2026, High, no CVE id. Packagist PKSA-h7cz-q7zq-mdkt. Unbounded PBKDF iteration count on encrypted PKCS#8 / PFX / CMS. Affected includes 3.0.0 through 3.0.57 and 4.0.0 through 4.0.2. Patched in 3.0.58 / 4.0.3 / 2.0.56 / 1.0.31. I did not paste the iteration-bomb PoC. - Latest tags on 27 Nov 2026 are 3.0.59 and 4.0.4, both 20 Nov 2026 (Packagist 3.0.59 07:39:42Z, 4.0.4 07:41:04Z). Changelog is PHP 8.6 updates, RSA/ChaCha20/X509/SSH2/SFTP. Not a third 84308 patch. I will not invent 3.0.60.
What I will treat as rumor: a Laravel-core CVE; that Storage::disk('sftp') is owned because Flysystem uses phpseclib for SSH; that sodium on CLI proves the FPM pool; that 2.0.57 is a silent 84308 fix because Packagist still matches below 3.0.57.
Laravel’s filesystem docs still say composer require league/flysystem-sftp-v3 "^3.0" before an SFTP disk. Packagist league/flysystem-sftp-v3 3.36.0 (2026-09-02T07:49Z) requires phpseclib/phpseclib: ^3.0. That is the usual Laravel pull. It is optional. Core laravel/framework does not require phpseclib. composer why is the check. If why prints Flysystem SFTP, the SSH session is still ephemeral. The lock can still be old. Those are two different facts. Repo advisory and tags: 26 Aug. CVE record: 1 Sep. The row composer audit sees: 8 Sep. A lock frozen on 3.0.56 in July is still 3.0.56 in November.
What I would change in a real Laravel/PHP app this week
Three edits. None of them is composer update laravel/framework. None of them is a timing test.
1. Prove the package is in the lock. Then see the version. Then see sodium on the binary Nginx uses.
php -v
php -m | grep -i sodium
php -r 'echo function_exists("sodium_crypto_box_publickey_from_secretkey") ? "sodium-gate-yes" : "sodium-gate-no", PHP_EOL;'
php -i | grep '^disable_functions'
composer show phpseclib/phpseclib
composer why phpseclib/phpseclib
composer audit --locked
# the pool in the vhost, not the CLI I just installed
php-fpm8.3 -m | grep -i sodium # or php-fpm8.5
This lab printed:
PHP 8.3.6 (cli) (built: Nov 18 2026 23:42:07)
sodium-gate-yes
disable_functions => no value => no value
# this site lib/: Package "phpseclib/phpseclib" not found
# throwaway 3.0.56: Found 2 security vulnerability advisories
# throwaway 3.0.57: Found 1 security vulnerability advisory (GHSA-w3p9 only)
# throwaway 3.0.58 / 3.0.59 / 4.0.3 / 4.0.4: No security vulnerability advisories found
# throwaway 2.0.57: still CVE-2026-84308 (Packagist range below 3.0.57)
If show says the package is not found, I stop. This week’s CVE does not apply.
2. Stop treating 3.0.57 as a green composer audit.
function phpseclibNov2026SecurityFloorMet(string $version): bool
{
if ($version === '') {
return false;
}
// GHSA-w3p9 still hits 3.0.57 / 4.0.1 / 4.0.2.
if (str_starts_with($version, '4.')) {
return version_compare($version, '4.0.3', '>=');
}
if (str_starts_with($version, '3.')) {
return version_compare($version, '3.0.58', '>=');
}
// Repo GHSA-q97c lists 3.0.0–3.0.56 and 4.0.0 only.
// Packagist still matches 2.x as below 3.0.57. Audit will not go green on 2.0.57.
return false;
}
// Before — CVE tag is not the audit floor.
// phpseclibNov2026SecurityFloorMet('3.0.56'); // false
// phpseclibNov2026SecurityFloorMet('3.0.57'); // false
// phpseclibNov2026SecurityFloorMet('4.0.1'); // false
I ran that helper here. 3.0.56 / 4.0.0 → false. 3.0.57 / 4.0.1 → false. 3.0.58 / 3.0.59 / 4.0.3 / 4.0.4 → true. 2.0.56 / 2.0.57 → false. A CVE-only check returns true for 3.0.57, because that tag is the 84308 floor. That is not a pass. The deploy brake is the audit dump.
$out = [];
exec('composer show phpseclib/phpseclib --no-ansi 2>/dev/null', $out);
$version = '';
foreach ($out as $line) {
if (preg_match('/^versions\s*:\s*\*\s*([0-9]+\.[0-9]+\.[0-9]+)/', $line, $m)) {
$version = $m[1];
break;
}
}
if ($version === '') {
fwrite(STDERR, "phpseclib/phpseclib is not in this lock.\n");
exit(0);
}
if (! phpseclibNov2026SecurityFloorMet($version)) {
fwrite(STDERR, "phpseclib {$version} is below the 2 Nov 2026 phpseclib security floor.\n");
exit(1);
}
That exit 1 is a deploy brake. The patch is the lock. --locked reads composer.lock, not leftover vendor/.
3. Bump the one package. Stay on the major you already locked.
composer update phpseclib/phpseclib --with-dependencies
composer show phpseclib/phpseclib
composer audit --locked
I want versions : * 3.0.59 on a ^3.0 constraint (Flysystem SFTP), or 4.0.4 on ~4.0. I would not jump 3.x to 4.x this week — 4.0 changed the namespace to \phpseclib4. I would not stop at 3.0.57. 3.0.59 still declares PHP 5.6.1 or newer. 4.0.4 wants PHP 8.1 or newer. Stay on the major the lock already has.
What would bite on a self-hosted VPS
Caption: composer why first. Missing package is not this CVE. 3.0.57 still fails audit. 2.0.57 still flags 84308 because Packagist range is below 3.0.57. I did not paste a key.
First bite: the package is not there. Most of my Laravel boxes never required Flysystem SFTP. composer why empty means walk away. Writing “Laravel has an X25519 leak” into Slack from a MySQL-only app is the failure mode.
Second bite: 3.0.57 feels patched. It is, for CVE-2026-84308. composer audit --locked still exits 1 on GHSA-w3p9. CI that gates on audit stays red. I would bump to 3.0.59 (or 4.0.4) and not argue with the August tag. I did not paste the sibling’s encrypted-key example. A passphrase on my own SFTP key is not that case. Audit still wants the newer tag.
Third bite: CLI sodium, FPM without it. PKCS8 is gated on sodium_crypto_box_publickey_from_secretkey. This CLI has it. Ubuntu archive compiled it in; noble has no separate php8.3-sodium package. A panel that put sodium_* in disable_functions is the minority the advisory names. php -m on SSH is not php-fpm8.3 -m. Shared hosting that will not show the FPM modules has no polyfill in app/. If the host will not enable sodium, I still bump the lock so the PHP ladder is the patched one.
Fourth bite: 2.x never greens. Latest 2.0 is 2.0.57 (20 Nov). composer audit still prints CVE-2026-84308 because Packagist uses below 3.0.57. The repo advisory did not list 2.0 as affected. Jumping 2.x to 3.x is an API change (\phpseclib to \phpseclib3), not a one-line lock bump. composer update also does not reload php-fpm. This lab has no FPM. On a real box I would systemctl reload the pool Nginx uses.
Laravel SFTP via Flysystem is the ephemeral SSH path the advisory says is not affected. I would still bump so audit is clean. I would not claim a remote break-in on Storage::put().
Three months after the tag
Caption: 3.0.57 and 4.0.1 on 26 Aug. CVE.org 1 Sep. GitHub Advisory Database 8 Sep. GHSA-w3p9 and 3.0.58 on 2 Nov. I am writing 27 Nov. Packagist still has 3.0.59 / 4.0.4 as latest. I did not invent 3.0.60.
Honest target this week: phpseclib/phpseclib 3.0.59 or 4.0.4 in the lock, composer audit --locked exit 0, sodium loaded in the FPM pool Nginx uses. I would not invent a Laravel-core CVE. I would not put a throwaway 8.6 CLI on production FPM because 3.0.59 mentions PHP 8.6 in the changelog.
What is running on this lab now: archive PHP 8.3.6 (.14), sodium on, Composer 2.7.1-2, throwaway trees at 3.0.59 and 4.0.4 that audit clean, and this website’s own lib/ still without the package. Next I would grep a real Laravel lock. If why is empty I would close the ticket. If why is Flysystem SFTP on 3.0.56 I would bump and reload FPM.
Are you on this in production?
If the lock already has 3.0.58+ (or 4.0.3+) and composer audit --locked is clean, you are on the Packagist floor. If you stopped at 3.0.57 / 4.0.1 after the August note, you are on the CVE and not on audit. If composer why phpseclib/phpseclib is empty, you are not in this CVE at all. If you are still on 2.0.57, Packagist will keep printing CVE-2026-84308. If CLI has sodium and the FPM pool does not, you are not on the PKCS8 gate. Shared hosting that will not show php-fpm -m is the last camp. I did not flip a client cluster tonight. I want to know which of those you are in.
Did you hit the same wall?
I would get stuck on composer audit still red after 3.0.57, or on composer why empty while a Slack thread claimed Laravel was leaking X25519 keys. Did you hit the same thing, or a different one — FPM without sodium, disable_functions eating sodium_crypto_*, a 2.0 lock that never greens, Flysystem SFTP on ^3.0 that Composer will not float past 3.0.56 because of a platform pin? Tell me in the comments. I read them.
If the blocker is the VPS itself (platform PHP, a lock you cannot bump, a host that will not enable sodium on the pool), I do this class of bump for a living: Hire for deploy.
References
- GHSA-q97c-8qh3-fpc6 (repo advisory published 26 Aug 2026), CVE-2026-84308, Medium 6.3: https://github.com/phpseclib/phpseclib/security/advisories/GHSA-q97c-8qh3-fpc6
- GitHub Advisory Database GHSA-q97c-8qh3-fpc6 (
published_at2026-09-08T21:24:29Z,nvd_published_at2026-09-01T20:17:24Z): https://github.com/advisories/GHSA-q97c-8qh3-fpc6 - CVE.org CVE-2026-84308 (updated 2026-09-01): https://www.cve.org/CVERecord?id=CVE-2026-84308
- phpseclib 3.0.57 (2026-08-26T12:16:18Z): https://github.com/phpseclib/phpseclib/releases/tag/3.0.57
- phpseclib 4.0.1 (2026-08-26T12:17:08Z): https://github.com/phpseclib/phpseclib/releases/tag/4.0.1
- Fix commit fb56bc5 (2026-08-22T16:37:16Z): https://github.com/phpseclib/phpseclib/commit/fb56bc5bb9009b54a6c26b31aeec8ed944f17373
- Packagist phpseclib/phpseclib (3.0.59 2026-11-20T07:39:42+00:00, 4.0.4 2026-11-20T07:41:04+00:00; retrieved 27 Nov 2026): https://packagist.org/packages/phpseclib/phpseclib
- Packagist security advisory PKSA-12sz-bcny-pk4m (CVE-2026-84308,
reportedAt2026-09-08 21:24:29): https://packagist.org/api/security-advisories/?packages[]=phpseclib/phpseclib - GHSA-w3p9-g4p2-h3rr (published 2 Nov 2026), High, no CVE id, PKSA-h7cz-q7zq-mdkt: https://github.com/phpseclib/phpseclib/security/advisories/GHSA-w3p9-g4p2-h3rr
- phpseclib 3.0.58 (2026-11-02T10:50Z GitHub; Packagist 2026-11-02T10:45:48+00:00): https://github.com/phpseclib/phpseclib/releases/tag/3.0.58
- phpseclib 4.0.3 (2026-11-02T10:50Z GitHub; Packagist 2026-11-02T10:46:03+00:00): https://github.com/phpseclib/phpseclib/releases/tag/4.0.3
- phpseclib 3.0.59 (2026-11-20T07:45:16Z): https://github.com/phpseclib/phpseclib/releases/tag/3.0.59
- phpseclib 4.0.4 (2026-11-20T07:46:15Z): https://github.com/phpseclib/phpseclib/releases/tag/4.0.4
- phpseclib 2.0.57 (2026-11-20T07:44Z; changelog has no CVE-2026-84308 note): https://github.com/phpseclib/phpseclib/releases/tag/2.0.57
- Composer audit CLI docs: https://getcomposer.org/doc/03-cli.md#audit
- league/flysystem-sftp-v3 3.36.0 (2026-09-02T07:49 UTC), requires
phpseclib/phpseclib: ^3.0: https://packagist.org/packages/league/flysystem-sftp-v3 - Laravel 13 filesystem docs, SFTP driver prerequisite (retrieved 27 Nov 2026): https://laravel.com/docs/13.x/filesystem