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.
Other sources
Name confusion in x509 Subject Alternative Name fields
— Packagist
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
composer/phpseclib/phpseclibto a version that resolves this vulnerability.Fixed in 3.0.33 - Upgrade
Upgrade
composer/phpseclib/phpseclibto a version that resolves this vulnerability.Fixed in 2.0.46 - Upgrade
Upgrade
composer/phpseclib/phpseclibto a version that resolves this vulnerability.Fixed in 1.0.22 - Upgrade
Upgrade
debian/php-phpseclibto a version that resolves this vulnerability.Fixed in 2.0.42-1+deb12u5Fixed in 2.0.42-1+deb12u3Fixed in 2.0.48-3+deb13u3Fixed in 2.0.48-3+deb13u1Fixed in 2.0.55-1 - Upgrade
Upgrade
debian/php-phpseclib3to a version that resolves this vulnerability.Fixed in 3.0.19-1+deb12u6Fixed in 3.0.19-1+deb12u4Fixed in 3.0.43-2+deb13u3Fixed in 3.0.43-2+deb13u1Fixed in 3.0.57-1 - Upgrade
Upgrade
debian/phpseclibto a version that resolves this vulnerability.Fixed in 1.0.20-1+deb12u5Fixed in 1.0.20-1+deb12u3Fixed in 1.0.23-6+deb13u3Fixed in 1.0.23-6+deb13u1Fixed in 1.0.30-1 - Upgrade
Upgrade
phpseclibto a version that resolves this vulnerability.Fixed in 1.0.22 - Upgrade
Upgrade
phpseclibto a version that resolves this vulnerability.Fixed in 2.0.46 - Upgrade
Upgrade
phpseclibto a version that resolves this vulnerability.Fixed in 3.0.33
Event History
Frequently Asked Questions
What is the severity of CVE-2023-52892?
CVE-2023-52892 has been classified as a moderate severity vulnerability affecting specific versions of phpseclib.
How do I fix CVE-2023-52892?
To remediate CVE-2023-52892, upgrade to phpseclib version 1.0.22, 2.0.46, or 3.0.33.
Which versions are affected by CVE-2023-52892?
CVE-2023-52892 affects phpseclib versions before 1.0.22, 2.x before 2.0.46, and 3.x before 3.0.33.
What problems does CVE-2023-52892 cause in TLS certificates?
CVE-2023-52892 allows certain characters in Subject Alternative Name fields of TLS certificates to be misinterpreted, leading to potential name confusion during X.509 certificate host verification.
Is CVE-2023-52892 related to regular expressions?
Yes, CVE-2023-52892 involves the incorrect handling of special characters in regular expressions within the Subject Alternative Name fields.