CVE-2023-52892 json
Name confusion in x509 Subject Alternative Name fields
published 2024-06-27 2 y ago modified 2026-06-17 4 mo ago also GHSA-ff7q-6vwh-v9m4 , EUVD-2024-2038
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 31%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- packagist phpseclib/phpseclib 1.0.22, 2.0.46, 3.0.33
- phpseclib phpseclib 1.0.22, 2.0.46, 3.0.33
- phpseclib Debian 12 1.0.20-1+deb12u3
- phpseclib Debian 13 1.0.22-1
- php-phpseclib Debian 12 2.0.42-1+deb12u3
- php-phpseclib Debian 14, Debian 13 2.0.46-1
- php-phpseclib3 Debian 12 3.0.19-1+deb12u4
- php-phpseclib3 Debian 14, Debian 13 3.0.33-1
debian advisories DEBIAN-CVE-2023-52892
- phpseclib Ubuntu 22.04 LTS 1.0.20-1+deb12u3build0.22.04.1
- phpseclib Ubuntu Pro 16.04 LTS 1.0.1-3ubuntu0.1+esm1
- phpseclib Ubuntu Pro 18.04 LTS 1.0.9-1ubuntu0.1~esm1
- phpseclib Ubuntu Pro 20.04 LTS 1.0.18-2ubuntu0.1~esm1
- phpseclib Ubuntu Pro 22.04 LTS 1.0.20-1ubuntu0.1~esm1
- php-phpseclib Ubuntu Pro 16.04 LTS 2.0.1-1ubuntu0.1~esm2
- php-phpseclib Ubuntu Pro 18.04 LTS 2.0.9-1ubuntu0.1~esm2
- php-phpseclib Ubuntu Pro 20.04 LTS 2.0.23-2ubuntu0.1~esm2
ubuntu advisories UBUNTU-CVE-2023-52892
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2023-52892 updated
php-seclib: Incorrect allowed input via Subject Alternative Name fields
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- total
- Assessed
- 2 y ago
Exploit prediction
0.38% chance of exploitation in the next 30 days, higher than 31% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/phpseclib/phpseclib/issues/1943 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | phpseclib/phpseclib | <1.0.22 >=2.0.0, <2.0.46 >=3.0.0, <3.0.33 |
1.0.22 2.0.46 3.0.33 |
Affected products
- phpseclib phpseclib
Classification
- Weakness
-
- CWE-436 Interpretation Conflict
References
-
github.com
/phpseclib/phpseclib/commit/6cd6e8ceab9f2b55c8cd81d2192bf98cbeaf4627
web, patch
-
github.com
/phpseclib/phpseclib/issues/1943
web, exploit, issue-tracking
-
github.com
/phpseclib/phpseclib/releases/tag/3.0.33
web, release-notes
-
github.com
/x509-name-testing/name_testing_artifacts
web, not-applicable
-
nvd.nist.gov
/vuln/detail/CVE-2023-52892
advisory
-
github.com
/phpseclib/phpseclib
package
Sources
- CVE List CVE-2023-52892
- GitHub Advisory GHSA-ff7q-6vwh-v9m4
- NVD CVE-2023-52892
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.