CVE-2024-2757

PHP mb_encode_mimeheader runs endlessly for some inputs

Published Apr 29, 2024 CVSS 3.1 · 7.5 High EPSS 1.9% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-27701 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.
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00603}

epss

{'score': 0.00444}

Type Values Removed Values Added
First Time appeared Php
Php php
Weaknesses NVD-CWE-noinfo
CPEs cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
Vendors & Products Php
Php php
Type Values Removed Values Added
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.  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.

Sources

Status
PUBLISHED
Assigner
php
Published
Updated
Nov 4, 2025, 5:18 PM
Reserved
Mar 21, 2024, 5:32 AM
Status
Modified
Published
Apr 29, 2024, 4:15 AM
Modified
Jun 17, 2026, 7:25 AM
Severity
Moderate
Public date
Apr 12, 2024, 12:00 AM