CVE-2023-52892
Name confusion in x509 Subject Alternative Name fields
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
7.5
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.
- Record
CVE-2023-52892- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-436
- Updated
- 2026-11-02
EUVDEUVD-2024-2038
7.5
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.
- Record
EUVD-2024-2038- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-ff7q-6vwh-v9m4
8.7
Name confusion in x509 Subject Alternative Name fields
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.
- Record
GHSA-ff7q-6vwh-v9m4- CVSS 4.0
- 8.7 High
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N - CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-436
- Updated
- 2026-11-02
NVD
7.5
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.
- Record
CVE-2023-52892- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-436
- Updated
- 2026-11-02
OSV
7.5
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.
- Record
CVE-2023-52892- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVDEBIAN-CVE-2023-52892
7.5
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.
- Record
DEBIAN-CVE-2023-52892- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
Show 5 moreShow less
OSVGHSA-ff7q-6vwh-v9m4
8.7
Name confusion in x509 Subject Alternative Name fields
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.
- Record
GHSA-ff7q-6vwh-v9m4- CVSS 4.0
- 8.7 High
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N - CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-436
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2023-52892
7.5
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.
- Record
UBUNTU-CVE-2023-52892- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVCLSA-2026-1779065206 No score
TuxCare security update for phpseclib/phpseclib (4 CVEs)
TuxCare rebuilt phpseclib/phpseclib to address 4 CVEs. Fixed in 0.3.10-p1+tuxcare.
- Record
CLSA-2026-1779065206- Updated
- 2026-11-02
OSVUSN-7404-1 No score
phpseclib vulnerabilities
It was discovered that phpseclib did not correctly handle RSA PKCS#1 v1.5 signature verification. An attacker could possibly use this issue to bypass authentication. This issue only affected Ubuntu 20.04 LTS. (CVE-2021-30130)
It was discovered that phpseclib did not correctly handle certain characters in certain TLS fields, which could lead to name confusion. An attacker could possibly use this issue to bypass authentication. (CVE-2023-52892)
It was discovered that phpseclib incorrectly limited the size of prime numbers generated by isPrime. An attacker could possibly use this issue to cause a denial of service. (CVE-2024-27354)
It was discovered that phpseclib did not correctly handle processing the ASN.1 object identifier of a certificate. An attacker could possibly use this issue to cause a denial of service. This issue only affected Ubuntu 20.04 LTS and Ubuntu 22.04 LTS. (CVE-2024-27355)
- Record
USN-7404-1- Updated
- 2026-11-02
OSVUSN-8769-1 No score
phpseclib vulnerability
It was discovered that phpseclib did not perform padding validation in constant time when using AES in CBC mode. A remote attacker could possibly use this issue to conduct a padding oracle timing attack and obtain sensitive information.
- Record
USN-8769-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
phpseclib/phpseclibPackagist |
before 1.0.22 | 1.0.22 |
phpseclib/phpseclibPackagist |
2.0.0 up to 2.0.46 | 2.0.46 |
phpseclib/phpseclibPackagist |
3.0.0 up to 3.0.33 | 3.0.33 |
phpseclib/phpseclibTuxCare:Packagist From an advisory covering 4 CVEs |
0.3.10 up to 0.3.10-p1+tuxcare | 0.3.10-p1+tuxcare |
php-phpseclibDebian:12 |
before 2.0.42-1+deb12u3, plus listed versions 2.0.42-12.0.42-1+deb12u12.0.42-1+deb12u2 |
2.0.42-1+deb12u3 |
php-phpseclibDebian:13 |
before 2.0.46-1 | 2.0.46-1 |
php-phpseclibDebian:14 |
before 2.0.46-1 | 2.0.46-1 |
php-phpseclib3Debian:12 |
before 3.0.19-1+deb12u4, plus listed versions 3.0.19-13.0.19-1+deb12u13.0.19-1+deb12u23.0.19-1+deb12u3 |
3.0.19-1+deb12u4 |
php-phpseclib3Debian:13 |
before 3.0.33-1 | 3.0.33-1 |
php-phpseclib3Debian:14 |
before 3.0.33-1 | 3.0.33-1 |
Show 31 moreShow less
| Package | Affected | Fixed |
|---|---|---|
phpseclibDebian:12 |
before 1.0.20-1+deb12u3, plus listed versions 1.0.20-11.0.20-1+deb12u11.0.20-1+deb12u2 |
1.0.20-1+deb12u3 |
phpseclibDebian:13 |
before 1.0.22-1 | 1.0.22-1 |
phpseclibDebian:11 From an advisory covering 2 CVEs |
before 1.0.19-3+deb11u3, plus listed versions 1.0.19-31.0.19-3+deb11u11.0.19-3+deb11u2 |
1.0.19-3+deb11u3 |
phpseclib/phpseclibPackagist |
before 1.0.22, plus listed versions 0.3.00.3.10.3.100.3.50.3.6 Show 25 moreShow less0.3.70.3.80.3.91.0.01.0.11.0.101.0.111.0.121.0.131.0.141.0.151.0.161.0.171.0.181.0.191.0.21.0.201.0.211.0.31.0.41.0.51.0.61.0.71.0.81.0.9 |
1.0.22 |
phpseclib/phpseclibPackagist |
2.0.0 up to 2.0.46, plus listed versions 2.0.12.0.102.0.112.0.122.0.13 Show 40 moreShow less2.0.142.0.152.0.162.0.172.0.182.0.192.0.22.0.202.0.212.0.222.0.232.0.242.0.252.0.262.0.272.0.282.0.292.0.32.0.302.0.312.0.322.0.332.0.342.0.352.0.362.0.372.0.382.0.392.0.42.0.402.0.412.0.422.0.432.0.442.0.452.0.52.0.62.0.72.0.82.0.9 |
2.0.46 |
phpseclib/phpseclibPackagist |
3.0.0 up to 3.0.33, plus listed versions 3.0.13.0.103.0.113.0.123.0.13 Show 18 moreShow less3.0.143.0.153.0.163.0.173.0.183.0.193.0.23.0.203.0.213.0.223.0.233.0.33.0.43.0.53.0.63.0.73.0.83.0.9 |
3.0.33 |
php-phpseclibUbuntu:Pro:16.04:LTS |
before 2.0.1-1ubuntu0.1~esm2, plus listed versions 2.0.1-12.0.1-1build1 |
2.0.1-1ubuntu0.1~esm2 |
phpseclibUbuntu:Pro:16.04:LTS |
before 1.0.1-3ubuntu0.1+esm1, plus listed versions 0.3.10-31.0.0-21.0.0-31.0.1-11.0.1-31.0.1-3ubuntu0.1 |
1.0.1-3ubuntu0.1+esm1 |
php-phpseclibUbuntu:Pro:18.04:LTS |
before 2.0.9-1ubuntu0.1~esm2, plus listed versions 2.0.6-12.0.7-12.0.9-1 |
2.0.9-1ubuntu0.1~esm2 |
phpseclibUbuntu:Pro:18.04:LTS |
before 1.0.9-1ubuntu0.1~esm1, plus listed versions 1.0.7-11.0.8-11.0.9-1 |
1.0.9-1ubuntu0.1~esm1 |
php-phpseclibUbuntu:Pro:20.04:LTS |
before 2.0.23-2ubuntu0.1~esm2, plus listed versions 2.0.21-22.0.23-2 |
2.0.23-2ubuntu0.1~esm2 |
phpseclibUbuntu:Pro:20.04:LTS |
before 1.0.18-2ubuntu0.1~esm1, plus listed versions 1.0.16-21.0.18-2 |
1.0.18-2ubuntu0.1~esm1 |
phpseclibUbuntu:22.04:LTS |
before 1.0.20-1+deb12u3build0.22.04.1, plus listed versions 1.0.19-3ubuntu21.0.19-3ubuntu31.0.20-1 |
1.0.20-1+deb12u3build0.22.04.1 |
php-phpseclibUbuntu:Pro:22.04:LTS |
before 2.0.36-1ubuntu0.1~esm2, plus listed versions 2.0.30-2ubuntu12.0.34-12.0.35-12.0.36-1 |
2.0.36-1ubuntu0.1~esm2 |
php-phpseclib3Ubuntu:Pro:22.04:LTS |
before 3.0.13-1ubuntu0.1~esm1, plus listed versions 3.0.9-13.0.10-13.0.12-23.0.13-1 |
3.0.13-1ubuntu0.1~esm1 |
phpseclibUbuntu:Pro:22.04:LTS |
before 1.0.20-1ubuntu0.1~esm1, plus listed versions 1.0.19-3ubuntu21.0.19-3ubuntu31.0.20-1 |
1.0.20-1ubuntu0.1~esm1 |
php-phpseclibUbuntu:Pro:16.04:LTS From an advisory covering 4 CVEs |
before 2.0.1-1ubuntu0.1~esm2, plus listed versions 2.0.1-12.0.1-1build1 |
2.0.1-1ubuntu0.1~esm2 |
phpseclibUbuntu:Pro:16.04:LTS From an advisory covering 4 CVEs |
before 1.0.1-3ubuntu0.1+esm1, plus listed versions 0.3.10-31.0.0-21.0.0-31.0.1-11.0.1-31.0.1-3ubuntu0.1 |
1.0.1-3ubuntu0.1+esm1 |
php-phpseclibUbuntu:Pro:18.04:LTS From an advisory covering 4 CVEs |
before 2.0.9-1ubuntu0.1~esm2, plus listed versions 2.0.6-12.0.7-12.0.9-1 |
2.0.9-1ubuntu0.1~esm2 |
phpseclibUbuntu:Pro:18.04:LTS From an advisory covering 4 CVEs |
before 1.0.9-1ubuntu0.1~esm1, plus listed versions 1.0.7-11.0.8-11.0.9-1 |
1.0.9-1ubuntu0.1~esm1 |
php-phpseclibUbuntu:Pro:20.04:LTS From an advisory covering 4 CVEs |
before 2.0.23-2ubuntu0.1~esm2, plus listed versions 2.0.21-22.0.23-2 |
2.0.23-2ubuntu0.1~esm2 |
phpseclibUbuntu:Pro:20.04:LTS From an advisory covering 4 CVEs |
before 1.0.18-2ubuntu0.1~esm1, plus listed versions 1.0.16-21.0.18-2 |
1.0.18-2ubuntu0.1~esm1 |
php-phpseclibUbuntu:Pro:22.04:LTS From an advisory covering 4 CVEs |
before 2.0.36-1ubuntu0.1~esm2, plus listed versions 2.0.30-2ubuntu12.0.34-12.0.35-12.0.36-1 |
2.0.36-1ubuntu0.1~esm2 |
php-phpseclib3Ubuntu:Pro:22.04:LTS From an advisory covering 4 CVEs |
before 3.0.13-1ubuntu0.1~esm1, plus listed versions 3.0.9-13.0.10-13.0.12-23.0.13-1 |
3.0.13-1ubuntu0.1~esm1 |
phpseclibUbuntu:Pro:22.04:LTS From an advisory covering 4 CVEs |
before 1.0.20-1ubuntu0.1~esm1, plus listed versions 1.0.19-3ubuntu21.0.19-3ubuntu31.0.20-1 |
1.0.20-1ubuntu0.1~esm1 |
phpseclibUbuntu:Pro:16.04:LTS From an advisory covering 5 CVEs |
before 1.0.1-3ubuntu0.1+esm1, plus listed versions 0.3.10-31.0.0-21.0.0-31.0.1-11.0.1-31.0.1-3ubuntu0.1 |
1.0.1-3ubuntu0.1+esm1 |
phpseclibUbuntu:Pro:18.04:LTS From an advisory covering 5 CVEs |
before 1.0.9-1ubuntu0.1~esm2, plus listed versions 1.0.7-11.0.8-11.0.9-11.0.9-1ubuntu0.1~esm1 |
1.0.9-1ubuntu0.1~esm2 |
phpseclibUbuntu:Pro:20.04:LTS From an advisory covering 5 CVEs |
before 1.0.18-2ubuntu0.1~esm2, plus listed versions 1.0.16-21.0.18-21.0.18-2ubuntu0.1~esm1 |
1.0.18-2ubuntu0.1~esm2 |
phpseclibUbuntu:22.04:LTS From an advisory covering 5 CVEs |
before 1.0.20-1+deb12u3build0.22.04.1, plus listed versions 1.0.19-3ubuntu21.0.19-3ubuntu31.0.20-1 |
1.0.20-1+deb12u3build0.22.04.1 |
phpseclibUbuntu:Pro:24.04:LTS From an advisory covering 5 CVEs |
before 1.0.23-1ubuntu0.1~esm1, plus listed versions 1.0.21-21.0.22-11.0.23-1 |
1.0.23-1ubuntu0.1~esm1 |
phpseclibUbuntu:Pro:26.04:LTS From an advisory covering 5 CVEs |
before 1.0.24-1ubuntu0.1~esm1, plus listed versions 1.0.23-61.0.24-1 |
1.0.24-1ubuntu0.1~esm1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2023-52892 is a high vulnerability (CVSS 7.5) in Phpseclib, published June 27, 2024. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.38%, the 31st percentile. Fixed in phpseclib/phpseclib 1.0.22.
References
github.com/phpseclib/phpseclib/issues/1943
github.com/phpseclib/phpseclib/releases/tag/3.0.33
github.com/phpseclib/phpseclib/commit/6cd6e8ceab9f2b55c8cd81d2192bf98cbeaf4627
github.com/x509-name-testing/name_testing_artifacts
nvd.nist.gov/vuln/detail/CVE-2023-52892
github.com/advisories/GHSA-ff7q-6vwh-v9m4
Show 12 moreShow less
github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52892.json
security-tracker.debian.org/tracker/CVE-2023-52892
github.com/phpseclib/phpseclib
ubuntu.com/security/CVE-2023-52892
cve.org/CVERecord?id=CVE-2023-52892
ubuntu.com/security/notices/USN-7404-1
ubuntu.com/security/notices/USN-8769-1
ubuntu.com/security/CVE-2021-30130
ubuntu.com/security/CVE-2024-27354
ubuntu.com/security/CVE-2024-27355
ubuntu.com/security/CVE-2023-48795
ubuntu.com/security/CVE-2026-32935