VulnWatch by ve1ve2
medium 5.3 EPSS 0.28%

GHSA-7jrw-539f-x6vr / CVE-2026-14355: ext/openssl: Memory corruption (zend_mm_heap corrupted) in openssl_encrypt with AES-WRAP-PAD

Source:
PHP releases (GitHub php/php-src tags)
Published:
Fetched:
Updated:
Affects:
php php-src

https://github.com/php/php-src/security/advisories/GHSA-7jrw-539f-x6vr ↗

repo-advisorysecurityrepo:php/php-srcstack

ext/openssl: Memory corruption (zend_mm_heap corrupted) in openssl_encrypt with AES-WRAP-PAD ### Summary Usate of AES-WRAP-PAD can result in memory corruption and abort of application. ### Details The output buffer for the AES key-wrap-with-padding operation is sized from the plaintext length without accounting for RFC 5649 expansion. Key-wrap-with-pad rounds the plaintext up to the next 8-byte boundary and prepends an 8-byte AIV, so ciphertext length is roundup(len, 8) + 8, not a function of the raw input length. The zend_string PHP allocates is therefore too small for what OpenSSL's EVP_EncryptUpdate/EVP_EncryptFinal writes. OpenSSL writes the full wrapped output past the end of the undersized heap allocation, corrupting adjacent Zend MM heap metadata. This surfaces as the zend_mm_heap corrupted abort — the allocator detecting corrupted bookkeeping on a later operation, not at the moment of the overflow. Further details in https://github.com/php/php-src/issues/22186 ### Impact If the attacker is able to find implementation using this rarely used algorithm, it can potentially abort the application and possibly cause DoS for the application. Patched: 8.2.32, 8.3.32, 8.4.23, 8.5.8

Linked vulnerabilities (2)

CVE-2026-14355 medium 5.3 EPSS 0.28% (p21) NVDCVE.orgGHSA
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

php8.2 - security update

Aliases: GHSA-7jrw-539f-x6vr
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L

ext/openssl: Memory corruption (zend_mm_heap corrupted) in openssl_encrypt with AES-WRAP-PAD

Aliases: CVE-2026-14355