What’s Vulnerable › Vulnerabilities

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

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.

Affected products

How to fix

Upgrade to a fixed version: phpseclib 1.0.22, 2.0.46, 3.0.33; Packagist Phpseclib/Phpseclib 1.0.22, 2.0.46, 3.0.33. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2023-52892 or the next vulnerability affects your stack