ext/openssl: Memory corruption in openssl_encrypt with AES-WRAP-PAD
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in PHP 8.2.32, PHP 8.3.32, PHP 8.4.23 and 1 more.
In PHP versions 8.2.* before 8.2.32, 8.3.* before 8.3.32, 8.4.* before 8.4.23, 8.5.* before 8.5.8, the AES-WRAP-PAD algorithm implementation in OpenSSL extension contains a buffer allocation flaw. The output buffer for the AES key-wrap-with-padding operation is sized from the plaintext length without accounting for RFC 5649 expansion. This may cause OpenSSL to write beyond allocated memory, corrupting heap metadata and triggering application abort.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| PHP | PHP | >=8.2.0 <8.2.32, >=8.3.0 <8.3.32, >=8.4.0 <8.4.23, >=8.5.0 <8.5.8 | 8.2.32, 8.3.32, 8.4.23, 8.5.8 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in PHP, strongest first
Embed
A live severity badge for an advisory, README or ticket