REDHAT-BUG-2541652: Medium severity PHP PHP vulnerability

Published Sep 25, 2026
·
Updated

phpopensslmatcheswildcardname() in ext/openssl/xpssl.c underflows the length argument passed to memchr() when a TLS server certificate presents a wildcard name whose literal characters are together longer than the hostname being verified. A malicious server presenting such a certificate makes the PHP client read up to SIZEMAX bytes past the end of a heap allocation. The path is reachable from any default client stream, because verifypeername is enabled by default.

Affected Software

1 affected component
PHP PHP

Event History

Sep 25, 2026
Data Sourced
via Red Hat·09:01 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which PHP deployments are exposed to this issue?

PHP clients that use default client streams are exposed because peer-name verification is enabled by default. The vulnerable path is reached while verifying a TLS server certificate hostname.

2

What does an attacker need to exploit the flaw?

An attacker needs to operate or impersonate a TLS server that presents a certificate containing a wildcard name whose literal characters are longer than the hostname the PHP client is verifying. This causes an underflow in the length supplied to memchr().

3

What is the likely impact on a vulnerable client?

The PHP client can read beyond the end of a heap allocation, potentially attempting to read up to SIZE_MAX bytes past that allocation. The provided information does not specify further impact such as disclosure, crash behavior, or code execution.

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