Skip to main content

phpseclib CVE-2026-55599

| EUVDEUVD-2026-38348 MEDIUM
Server-Side Request Forgery (SSRF) (CWE-918)
2026-06-22 GitHub_M
5.8
CVSS 3.1 · Vendor: GitHub_M
Share

Severity by source

Vendor (GitHub_M) PRIMARY
5.8 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
vuln.today AI
5.8 MEDIUM

Network-delivered crafted certificate, no auth or interaction required (PR:N/UI:N); scope change (S:C) reflects SSRF reaching internal systems; confidentiality limited to probing, not direct exfiltration.

3.1 AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
None
Availability
None

Lifecycle Timeline

3
Patch available
Jun 22, 2026 - 22:02 EUVD
Source Code Evidence Fetched
Jun 22, 2026 - 21:22 vuln.today
Analysis Generated
Jun 22, 2026 - 21:22 vuln.today

DescriptionCVE.org

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.

AnalysisAI

Server-side request forgery in phpseclib's X.509 validation allows unauthenticated network attackers to force the validating server to open arbitrary outbound connections to attacker-controlled hosts, including internal loopback addresses (127.0.0.1) and cloud metadata endpoints (169.254.169.254). The flaw exists because X509::validateSignature() unconditionally fetches URLs embedded in the Authority Information Access extension of untrusted certificates with no blocklist or destination filtering - and this behavior is enabled by default across all three maintained release branches. No CISA KEV listing exists at time of analysis, and no weaponized public exploit was referenced, though the GitHub advisory provides exact file and line references making the trigger path immediately reproducible.

Technical ContextAI

phpseclib (composer package phpseclib/phpseclib) is a pure-PHP cryptographic library providing TLS, SSH, and X.509 certificate operations. The root cause (CWE-918, Server-Side Request Forgery) lies in the certificate chain-building logic: when validateSignatureCountable() cannot find a trusted CA for the certificate under validation, it calls testForIntermediate(), which reads the caIssuers field from the certificate's Authority Information Access (AIA) OID extension and passes that value directly to the internal fetchURL() method. The URL originates entirely from attacker-controlled certificate content and is never sanitized - no blocklist for RFC-1918 ranges, loopback, link-local (169.254.0.0/16), or restricted ports exists in fetchURL(). The disable_url_fetch flag that would suppress this behavior defaults to false, meaning every phpseclib deployment validating untrusted certificates is exposed unless explicitly hardened. Affected CPE: cpe:2.3:a:phpseclib:phpseclib:*:*:*:*:*:*:*:* across branches 1.x (≤1.0.29), 2.x (≤2.0.54), and 3.x (≤3.0.53), with the 4.0 development line also confirmed vulnerable per commit 74ada1a6 in GHSA-m557-wrgg-6rp4.

RemediationAI

Upgrade phpseclib to the patched release corresponding to the branch in use: 1.0.30 for the 1.x branch, 2.0.55 for the 2.x branch, or 3.0.54 for the 3.x branch, as confirmed by the vendor advisory at https://github.com/phpseclib/phpseclib/security/advisories/GHSA-m557-wrgg-6rp4. If an immediate upgrade is not feasible, explicitly set the disable_url_fetch flag to true on all X509 instances before calling validateSignature() - this disables AIA-driven outbound fetching, but as a trade-off, any certificate chain that requires fetching intermediate CAs at runtime will fail validation, necessitating pre-loading all expected intermediate certificates into the trust store manually. As a defense-in-depth layer independent of patching, enforce egress filtering on the PHP application host to block outbound connections to RFC-1918 private ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), loopback (127.0.0.0/8), and link-local ranges (169.254.0.0/16); this limits SSRF blast radius against internal infrastructure and cloud metadata services but does not prevent SSRF to external attacker-controlled hosts.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

Share

CVE-2026-55599 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy