CVE-2024-2757
JSON

7.5high

PHP mb_encode_mimeheader runs endlessly for some inputs

Severity
7.5high CVSS:3.1 by php
Exploit likelihood
1.92% (higher than 80% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
php
Also known as
BIT-LIBPHP-2024-2757BIT-PHP-2024-2757BIT-PHP-MIN-2024-2757GHSA-fjp9-9hwx-59fq

Description

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.

Affected

Product or packageVersionsReported by
PHP Group PHPfrom 8.3.* before 8.3.5CVE List
php_group php8.3CVE List
php phpfrom 8.3.0 before 8.3.5NVD
libphp (Bitnami)from 8.3.0 before 8.3.5Bitnami Vulnerability Database
php (Bitnami)from 8.3.0 before 8.3.5Bitnami Vulnerability Database
php-min (Bitnami)from 8.3.0 before 8.3.5Bitnami Vulnerability Database

All scores

php7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Bitnami Vulnerability Databasehigh rating

Classification

CWE-400

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En PHP 8.3.* anterior a 8.3.5, la función mb_encode_mimeheader() se ejecuta sin cesar para algunas entradas que contienen cadenas largas de caracteres que no son espacios seguidos de un espacio. Esto podría provocar un posible ataque DoS si un usuario hostil envía datos a una aplicación que utiliza esta función.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-2757 changed 2025-11-04CVE Terms of Use
NVDCVE-2024-2757 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-LIBPHP-2024-2757 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-PHP-2024-2757 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-PHP-MIN-2024-2757 changed 2026-09-08Apache-2.0