Live threats

All CVEs / Phpseclib

CVE-2023-52892Phpseclib

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
0.6%
probability of exploitation in 30 days · percentile 43
Auth required
No
Published
Jun 27, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-436
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

In phpseclib before 1.0.22, 2.x before 2.0.46, and 3.x before 3.0.33, some characters in Subject Alternative Name fields in TLS certificates are incorrectly allowed to have a special meaning in regular expressions (such as a + wildcard), leading to name confusion in X.509 certificate host verification.

Original NVD text.

What to do

  1. Apply the vendor's security update for Phpseclib.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist phpseclib/phpseclib < 1.0.22 1.0.22 composer require "phpseclib/phpseclib:^1.0.22"
Packagist phpseclib/phpseclib ≥ 2.0.0 < 2.0.46 2.0.46 composer require "phpseclib/phpseclib:^2.0.46"
Packagist phpseclib/phpseclib ≥ 3.0.0 < 3.0.33 3.0.33 composer require "phpseclib/phpseclib:^3.0.33"

Per OSV / GitHub Advisories (GHSA-ff7q-6vwh-v9m4). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
phpseclibphpseclib≥ 1.0.0 < 1.0.22
phpseclibphpseclib≥ 2.0.0 < 2.0.46
phpseclibphpseclib≥ 3.0.0 < 3.0.33

Official sources

References

Links published by the sources. Open them with care.