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

exploitDog

github логотип

GHSA-fjp9-9hwx-59fq

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

Описание

mb_encode_mimeheader runs endlessly for some inputs

Summary

Certain inputs provided to mb_encode_mimeheader trigger an endless loop.

Details

A discernible pattern has not yet been identified, but a specific string consistently reproduces the issue.

PoC

In PHP 8.3.3, execute:

<?php mb_internal_encoding('UTF-8'); mb_encode_mimeheader(",9868949,9868978,9869015,9689100,9869121,9869615,9870690,9867116,98558119861183. ", "utf-8", "B");

The mb_encode_mimeheader function seems to enter an infinite loop and fails to return.

Impact

Given that this function is integral to numerous email processing routines, including those handling potentially untrusted user inputs, this vulnerability could be exploited for denial-of-service attacks. For instance, CakePHP 5 relies on this function to encode email subjects. https://github.com/cakephp/cakephp/blob/5.x/src/Mailer/Message.php#L815

Пакеты

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

< 8.3.5

8.3.6

EPSS

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

7.5 High

CVSS3

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

CVSS3: 7.5
ubuntu
около 1 года назад

In PHP 8.3.* before 8.3.5, function mb_encode_mimeheader() runs endlessly for some inputs that contain long strings of non-space characters followed by a space. This could lead to a potential DoS attack if a hostile user sends data to an application that uses this function.

CVSS3: 7.5
redhat
около 1 года назад

In PHP 8.3.* before 8.3.5, function mb_encode_mimeheader() runs endlessly for some inputs that contain long strings of non-space characters followed by a space. This could lead to a potential DoS attack if a hostile user sends data to an application that uses this function.

CVSS3: 7.5
nvd
около 1 года назад

In PHP 8.3.* before 8.3.5, function mb_encode_mimeheader() runs endlessly for some inputs that contain long strings of non-space characters followed by a space. This could lead to a potential DoS attack if a hostile user sends data to an application that uses this function.

CVSS3: 7.5
msrc
12 месяцев назад

Описание отсутствует

CVSS3: 7.5
debian
около 1 года назад

In PHP 8.3.* before 8.3.5, functionmb_encode_mimeheader() runs endless ...

EPSS

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

7.5 High

CVSS3