Skip to content
Laskyr

phpseclib/phpseclib security advisory

CVE-2026-55599: Phpseclib: X.509 certificate validation sends attacker-controlled outbound requests (server-side request forgery) via Authority…

CVE-2026-55599 is a medium-severity SSRF vulnerability in the PHP package phpseclib/phpseclib (CVSS 5.8), published 22 June 2026. The advisory does not name a fixed version. It can be exploited without an account.

medium 5.8 published 2026-06-22 · updated 2026-06-26

The advisory does not name a fixed version

This SSRF issue affects phpseclib/phpseclib in 3 release lines: >= 0.1.1, <= 1.0.29; >= 2.0.0, <= 2.0.54; >= 3.0.0, <= 3.0.53. The newest release (4.0.3) is outside the affected range.

Affected versions
>= 0.1.1, <= 1.0.29
>= 2.0.0, <= 2.0.54
>= 3.0.0, <= 3.0.53
Fixed in
not stated
Newest release
4.0.3
Severity
Medium · CVSS 5.8
Type
Server-side request forgery (SSRF)
CWE-918
Exploited in the wild
Not on the CISA KEV list
checked 2026-11-04

Is your phpseclib/phpseclib version affected?

Run composer show phpseclib/phpseclib in your project, then enter the version. We check it against this and every other known phpseclib/phpseclib advisory.

Who can exploit CVE-2026-55599

CVSS vector (scored by GitHub): CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N

Your app is only exposed if it uses the affected part of phpseclib/phpseclib. The advisory below says which part that is. If you are not sure, upgrade anyway: it costs less than finding out.

How to fix CVE-2026-55599 in phpseclib/phpseclib

  1. Find the installed version: composer show phpseclib/phpseclib. If you never required it yourself, composer why phpseclib/phpseclib shows which package pulls it in.
  2. Update it: composer update phpseclib/phpseclib --with-all-dependencies.
  3. If Composer will not go that high, your composer.json constraint is holding it back. Widen it (for example "phpseclib/phpseclib": "^4.0.3" if you can take that version), or upgrade the package that requires it.
  4. Run composer audit. It reads the same advisory data and should no longer list CVE-2026-55599.
  5. Commit composer.lock and deploy it. On the server, run composer install --no-dev from the lock file, not composer update.

If you cannot upgrade yet

General hardening for SSRF issues while the upgrade waits. None of it replaces the fix.

The CVE-2026-55599 advisory

phpseclib is a PHP secure communications library. From 0.1.1 until 1.0.30, 2.0.55, and 3.0.54, when an application validates an untrusted X.509 certificate with phpseclib, X509::validateSignature() reads a URL out of that certificate's Authority Information Access (AIA) extension and connects to it. Attacker who supplies certificate fully controls host, port, and path of that connection. URL fetching is enabled by default, and no destination is blocked. An unauthenticated attacker can therefore make a validating server open connections to internal hosts and ports it should never reach, for example loopback 127.0.0.1, cloud metadata address 169.254.169.254, and internal-only services. This is a server-side request forgery (SSRF) caused by an insecure default. This vulnerability is fixed in 1.0.30, 2.0.55, and 3.0.54.

Description from the CVE record, published by GitHub (the CVE Numbering Authority), via the NVD entry for CVE-2026-55599. Advisory title: “phpseclib: X.509 certificate validation sends attacker-controlled outbound requests (server-side request forgery) via Authority Information Access”.

References

Other phpseclib/phpseclib advisories

Related

Need help patching or upgrading? Laskyr does PHP and Laravel security fixes and upgrades. Tell us what you run and we reply with a plan and a price.

Ask about a fix

Where this data comes from

First hour checklist

If the site was just hacked, read the emergency kit before you delete files. The page is free. Email is optional.

Read the emergency kit