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.
Published Jun 28, 2024 · Updated Aug 6, 2024
Affected packages
phpseclib/phpseclib
- Ecosystem
- Composer (PHP)
- Affected
- < 1.0.22
- Fixed in
- 1.0.22
- Check
composer show phpseclib/phpseclib
phpseclib/phpseclib
- Ecosystem
- Composer (PHP)
- Affected
- >= 2.0.0, < 2.0.46
- Fixed in
- 2.0.46
- Check
composer show phpseclib/phpseclib
phpseclib/phpseclib
- Ecosystem
- Composer (PHP)
- Affected
- >= 3.0.0, < 3.0.33
- Fixed in
- 3.0.33
- Check
composer show phpseclib/phpseclib
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-52892
- https://github.com/phpseclib/phpseclib/issues/1943
- https://github.com/phpseclib/phpseclib/commit/6cd6e8ceab9f2b55c8cd81d2192bf98cbeaf4627
- https://github.com/phpseclib/phpseclib/releases/tag/3.0.33
- https://github.com/x509-name-testing/name_testing_artifacts
- https://github.com/advisories/GHSA-ff7q-6vwh-v9m4
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2026-84308
phpseclib — non-constant-time X25519 scalar multiplication permits full private-key recovery
medium6.3Sep 8, 2026CVE-2026-55599
phpseclib: X.509 certificate validation sends attacker-controlled outbound requests (server-side request forgery) via Authority Information Access
medium5.8Jun 16, 2026CVE-2023-49316
Phpseclib needs guardrails on large binaryfield integers
high7.5May 8, 2026CVE-2024-27355
phpseclib guardrails needed on OID length
high7.5May 8, 2026CVE-2024-27354
phpseclib: guardrails needed on isPrime and randomPrime
high7.5May 6, 2026CVE-2026-44167
phpseclib has a CVE-2024-27355 mitigation bypass — OID amplification DoS in ASN1::decodeOID()
high7.5May 5, 2026
