CVE-2026-55599Phpseclib
Medium 5.8 No auth needed
Follow: this CVE · Phpseclib · Phpseclib We alert you by email or Slack (account required).
- Priority
- 50
- CVSS 3.1
- 5.8
- EPSS
- —
- Auth required
- No
- Published
- Jun 22, 2026
- Updated
- Jun 26, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-918
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Phpseclib.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | phpseclib/phpseclib |
≥ 0.1.1 < 1.0.30 |
1.0.30 |
composer require "phpseclib/phpseclib:^1.0.30" |
| Packagist | phpseclib/phpseclib |
≥ 2.0.0 < 2.0.55 |
2.0.55 |
composer require "phpseclib/phpseclib:^2.0.55" |
| Packagist | phpseclib/phpseclib |
≥ 3.0.0 < 3.0.54 |
3.0.54 |
composer require "phpseclib/phpseclib:^3.0.54" |
Per OSV / GitHub Advisories (GHSA-m557-wrgg-6rp4). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| phpseclib | phpseclib | ≥ 0.1.1 < 1.0.30 |
| phpseclib | phpseclib | ≥ 2.0.0 < 2.0.55 |
| phpseclib | phpseclib | ≥ 3.0.0 < 3.0.54 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Mitigation Vendor Advisory