php_openssl_matches_wildcard_name() in ext/openssl/xp_ssl.c underflows the length argument passed to memchr() when a TLS server certificate presents a...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Alpine:v3.22php82 |
< 8.2.35-r0→ 8.2.35-r0 |
8.2.35-r0 |
| Alpine:v3.22php83 |
< 8.3.36-r0→ 8.3.36-r0 |
8.3.36-r0 |
| Alpine:v3.23php83 |
< 8.3.36-r0→ 8.3.36-r0 |
8.3.36-r0 |
| Alpine:v3.24php83 |
< 8.3.35-r0→ 8.3.35-r0 |
8.3.35-r0 |
| Alpine:v3.22php84 |
< 8.4.27-r0→ 8.4.27-r0 |
8.4.27-r0 |
| Alpine:v3.23php84 |
< 8.4.27-r0→ 8.4.27-r0 |
8.4.27-r0 |
| Alpine:v3.24php84 |
< 8.4.26-r0→ 8.4.26-r0 |
8.4.26-r0 |
| Alpine:v3.23php85 |
< 8.5.12-r0→ 8.5.12-r0 |
8.5.12-r0 |
| Alpine:v3.24php85 |
< 8.5.11-r0→ 8.5.11-r0 |
8.5.11-r0 |
Original description The description as published by the source.
php_openssl_matches_wildcard_name() in ext/openssl/xp_ssl.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 SIZE_MAX bytes past the end of a heap allocation. The path is reachable from any default client stream, because verify_peer_name is enabled by default.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- advisory security.alpinelinux.org