CVE-2023-52892Phpseclib
High 7.5 No auth needed
Follow: this CVE · Phpseclib · Phpseclib We alert you by email or Slack (account required).
- 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.
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 |
< 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)
| Vendor | Product | Versions |
|---|---|---|
| phpseclib | phpseclib | ≥ 1.0.0 < 1.0.22 |
| phpseclib | phpseclib | ≥ 2.0.0 < 2.0.46 |
| phpseclib | phpseclib | ≥ 3.0.0 < 3.0.33 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Exploit Issue Tracking
- github.com Release Notes
- github.com Not Applicable