CVE-2023-52892
Phpseclib vulnerability
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.
Affected products
Phpseclib. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Phpseclib runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/phpseclib/phpseclib/commit/6cd6e8ceab9f2b55c8cd81d2192bf98cbeaf4627 · Patch
- github.com/phpseclib/phpseclib/issues/1943 · Exploit
- github.com/phpseclib/phpseclib/releases/tag/3.0.33
- github.com/x509-name-testing/name_testing_artifacts
- nvd.nist.gov/vuln/detail/CVE-2023-52892
- github.com/advisories/GHSA-ff7q-6vwh-v9m4
- nvd.nist.gov/vuln/detail/CVE-2023-52892
- cve.org/CVERecord?id=CVE-2023-52892
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.