Skip to content
OpenAdvisories
Medium · 5.8 CVE-2026-55599 EUVD-2026-38348GHSA-m557-wrgg-6rp4

phpseclib: X.509 certificate validation sends attacker-controlled outbound requests (server-side request forgery) via Authority Information Access

Published Jun 22, 2026 · Updated Jun 23, 2026 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
phpseclib phpseclib >= 0.1.1, < 1.0.30, >= 2.0.0, < 2.0.55, >= 3.0.0, < 3.0.54 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 php-phpseclib 2.0.55-1 —
Debian 14 php-phpseclib3 3.0.55-1 —
Debian 13 phpseclib +2 No fix yet —
Debian 12 phpseclib +2 No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 phpseclib No fix yet —
Ubuntu 25.10 phpseclib No fix yet —
Ubuntu 22.04 LTS phpseclib No fix yet —
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 26.04 LTS phpseclib No fix yet —
Ubuntu Pro 24.04 LTS phpseclib No fix yet —
Ubuntu Pro 20.04 LTS phpseclib No fix yet —
Ubuntu Pro 18.04 LTS phpseclib No fix yet —
Ubuntu Pro 16.04 LTS phpseclib No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling nextcloud-server-33 33.0.5-r3 —

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist phpseclib/phpseclib >= 0.1.1, < 1.0.30 1.0.30 GHSA-m557-wrgg-6rp4
Packagist phpseclib/phpseclib >= 2.0.0, < 2.0.55 2.0.55 GHSA-m557-wrgg-6rp4
Packagist phpseclib/phpseclib >= 3.0.0, < 3.0.54 3.0.54 GHSA-m557-wrgg-6rp4

Advisories 1

References