Packagist (PHP)Worst: High14 advisories
phpseclib/phpseclib: known vulnerabilities
phpseclib/phpseclib has 14 reviewed security advisories in the GitHub Advisory Database — 11 high, 2 moderate, 1 low. The most recent was published 2026-09-01. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the phpseclib/phpseclib versions running across your servers, containers and images, and ranks what to patch first.
How to fix phpseclib/phpseclib
Upgrade phpseclib/phpseclib to a release at or above the fixed version shown for each advisory below. For Packagist (PHP):
composer require phpseclib/phpseclib:^4.0.1 (composer audit)
SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.
Advisories (14)
phpseclib — non-constant-time X25519 scalar multiplication permits full private-key recovery
Moderate 6.3 CWE-208 CWE-385
— Affected: from 4.0.0 up to 4.0.1. Fixed in 4.0.1. Published 2026-09-01. GHSA-q97c-8qh3-fpc6 · CVE-2026-84308
phpseclib: X.509 certificate validation sends attacker-controlled outbound requests (server-side request forgery) via Authority Information Access
Moderate 5.8 CWE-918
— Affected: from 3.0.0 up to 3.0.54. Fixed in 3.0.54. Published 2026-06-22. GHSA-m557-wrgg-6rp4 · CVE-2026-55599
phpseclib has a CVE-2024-27355 mitigation bypass — OID amplification DoS in ASN1::decodeOID()
High 7.5 CWE-400
— Affected: from 3.0.0 up to 3.0.52. Fixed in 3.0.52. Published 2026-05-12. GHSA-3qpq-r242-jqj7 · CVE-2026-44167
Phpseclib needs guardrails on large binaryfield integers
High 7.5 CWE-400 CWE-834
— Affected: from 3.0.0 up to 3.0.34. Fixed in 3.0.34. Published 2026-05-08. GHSA-2f25-pfq3-c7h8 · CVE-2023-49316
phpseclib guardrails needed on OID length
High 7.5 CWE-400
— Affected: from 0.1.1 up to 1.0.23. Fixed in 1.0.23. Published 2026-05-08. GHSA-f2qx-66wf-wvvx · CVE-2024-27355
phpseclib: guardrails needed on isPrime and randomPrime
High 7.5 CWE-400
— Affected: from 3.0.0 up to 3.0.36. Fixed in 3.0.36. Published 2026-05-06. GHSA-2528-jw5q-ww88 · CVE-2024-27354
phpseclib has a variable-time HMAC comparison in SSH2::get_binary_packet() using != instead of hash_equals()
Low 3.7 CWE-208
— Affected: from 3.0.0 up to 3.0.51. Fixed in 3.0.51. Published 2026-04-10. GHSA-r854-jrxh-36qx · CVE-2026-40194
phpseclib's AES-CBC unpadding susceptible to padding oracle timing attack
High CWE-208
— Affected: from 0.1.1 up to 1.0.27. Fixed in 1.0.27. Published 2026-03-20. GHSA-94g3-g5v7-q4jg · CVE-2026-32935
Name confusion in x509 Subject Alternative Name fields
High 7.5 CWE-436
— Affected: from 3.0.0 up to 3.0.33. Fixed in 3.0.33. Published 2024-06-27. GHSA-ff7q-6vwh-v9m4 · CVE-2023-52892
Duplicate Advisory: phpseclib: guardrails needed on isPrime and randomPrime
High 7.5 CWE-400
— Affected: from 3.0.0 up to 3.0.36. Fixed in 3.0.36. Published 2024-03-01. GHSA-hg35-mp25-qf6h
Duplicate Advisory: phpseclib does not properly limit the ASN1 OID length
High 7.5 CWE-400
— Affected: from 1.0.0 up to 1.0.23. Fixed in 1.0.23. Published 2024-03-01. GHSA-jr22-8qgm-4q87
Duplicate Advisory: phpseclib vulnerable to denial of service
High 7.5 CWE-400 CWE-834
— Affected: from 3.0.0 up to 3.0.34. Fixed in 3.0.34. Published 2023-11-27. GHSA-jpr7-q523-hx25
phpseclib Infinite Loop vulnerability
High 7.5 CWE-835
— Affected: from 3.0.0 up to 3.0.19. Fixed in 3.0.19. Published 2023-03-03. GHSA-hm7p-r324-hhf3 · CVE-2023-27560
Improper Certificate Validation in phpseclib
High 7.5 CWE-295 CWE-347
— Affected: before 2.0.31. Fixed in 2.0.31. Published 2021-04-06. GHSA-vf4w-fg7r-5v94 · CVE-2021-30130
Find phpseclib/phpseclib across your fleet
Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA,
CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month.
Start free.