Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-7jrw-539f-x6vr

Опубликовано: 02 июл. 2026
Источник: github
Github: Не прошло ревью
CVSS3: 4.8

Описание

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.

Пакеты

Наименование

php

php
Затронутые версииВерсия исправления

>=8.2.0, <8.2.32

8.2.32

Наименование

php

php
Затронутые версииВерсия исправления

>=8.3.0, <8.3.32

8.3.32

Наименование

php

php
Затронутые версииВерсия исправления

>=8.4.0, <8.4.23

8.4.23

Наименование

php

php
Затронутые версииВерсия исправления

>=8.5.0, <8.5.8

8.5.8

EPSS

Процентиль: 20%
0.00279
Низкий

4.8 Medium

CVSS3

Связанные уязвимости

CVSS3: 5.6
ubuntu
27 дней назад

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.

CVSS3: 5.6
nvd
27 дней назад

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.

msrc
24 дня назад

ext/openssl: Memory corruption in openssl_encrypt with AES-WRAP-PAD

CVSS3: 5.6
debian
27 дней назад

In PHP versions 8.2.* before 8.2.32, 8.3.* before 8.3.32, 8.4.* before ...

suse-cvrf
9 дней назад

Security update for php7

EPSS

Процентиль: 20%
0.00279
Низкий

4.8 Medium

CVSS3