# CVE-2023-52892: Name confusion in x509 Subject Alternative Name fields

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 33% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-06-27T00:00:00.000Z
- Modified: 2026-06-17T06:43:52.450Z
- Also known as: GHSA-ff7q-6vwh-v9m4
- Weaknesses: CWE-436
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- phpseclib phpseclib: before 1.0.22; from 2.0 before 2.0.46; from 3.0 before 3.0.33; from 1.0.0 before 1.0.22; from 2.0.0 before 2.0.46; from 3.0.0 before 3.0.33
- phpseclib/phpseclib (Packagist): before 1.0.22; from 2.0.0 before 2.0.46; from 3.0.0 before 3.0.33

## Every score

- CISA-ADP: 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`
- GitHub: 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`
- GitHub: CVSS:4.0 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`

## References

- <https://github.com/phpseclib/phpseclib/issues/1943> (exploit, issue-tracking, web)
- <https://github.com/phpseclib/phpseclib/releases/tag/3.0.33> (release-notes, web)
- <https://github.com/phpseclib/phpseclib/commit/6cd6e8ceab9f2b55c8cd81d2192bf98cbeaf4627> (patch, web)
- <https://github.com/x509-name-testing/name_testing_artifacts> (not-applicable, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-52892> (advisory)
- <https://github.com/phpseclib/phpseclib> (package)

## Sources

- CVE List: [CVE-2023-52892](https://www.cve.org/CVERecord?id=CVE-2023-52892), CVE Terms of Use, modified 2024-08-21
- GitHub Advisory Database: [GHSA-ff7q-6vwh-v9m4](https://github.com/advisories/GHSA-ff7q-6vwh-v9m4), CC-BY-4.0, modified 2024-06-28
- NVD: [CVE-2023-52892](https://nvd.nist.gov/vuln/detail/CVE-2023-52892), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-52892 · Whole record: https://cve.day/CVE-2023-52892.json · Rebuilt by cve.day 2026-11-25T22:58:34.186Z
