CVE-2023-52892: High severity composer/phpseclib/phpseclib vulnerability

Published Jun 27, 2024
·
Updated

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 Software

9 affected componentsFixes available
composer/phpseclib/phpseclib>=3.0.0<3.0.33
3.0.33
composer/phpseclib/phpseclib>=2.0.0<2.0.46
2.0.46
composer/phpseclib/phpseclib<1.0.22
1.0.22
debian/php-phpseclib<=2.0.30-2+deb11u2, <=2.0.30-2+deb11u1, <=2.0.42-1+deb12u2, <=2.0.42-1+deb12u1
2.0.48-3
debian/php-phpseclib3<=3.0.19-1+deb12u3, <=3.0.19-1+deb12u2
3.0.43-2
debian/phpseclib<=1.0.19-3+deb11u2, <=1.0.19-3+deb11u1, <=1.0.20-1+deb12u2, <=1.0.20-1+deb12u1
1.0.23-6
phpseclib phpseclib>=1.0.0<1.0.22
phpseclib phpseclib>=2.0.0<2.0.46
phpseclib phpseclib>=3.0.0<3.0.33

Event History

Jun 27, 2024
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·10:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 PM
RemedyAffected Software
Jun 28, 2024
Advisory Published
via GitHub·12:33 AM
Apr 6, 2025
Data Sourced
via Ubuntu·05:23 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2023-52892?

CVE-2023-52892 has been classified as a moderate severity vulnerability affecting specific versions of phpseclib.

2

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.

3

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.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203