Every CVE Search/ Get API key

CVE-2024-2757

PHP mb_encode_mimeheader runs endlessly for some inputs

7.5 HighFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

1.92%Up 1.9 points since Apr 29, 2024
90%50%10%1%

What each source reports

CVE List Score used 7.5

PHP mb_encode_mimeheader runs endlessly for some inputs

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.

Record
CVE-2024-2757
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-400
Updated
2026-11-02
EUVDEUVD-2024-27701 7.5

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.

Record
EUVD-2024-27701
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
NVD 7.5

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.

Record
CVE-2024-2757
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-400
Updated
2026-11-02
OSVALPINE-CVE-2024-2757 7.5

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.

Record
ALPINE-CVE-2024-2757
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-03
OSVBELL-CVE-2024-2757 7.5
Record
BELL-CVE-2024-2757
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSV 7.5

PHP mb_encode_mimeheader runs endlessly for some inputs

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.

Record
CVE-2024-2757
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
Show 6 moreShow less
OSVUBUNTU-CVE-2024-2757 7.5

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.

Record
UBUNTU-CVE-2024-2757
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVAZL-40055 No score

CVE-2024-2757 affecting package php for versions less than 8.3.6-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.

Record
AZL-40055
Updated
2026-11-02
OSVBIT-libphp-2024-2757 No score

PHP mb_encode_mimeheader runs endlessly for some inputs

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.

Record
BIT-libphp-2024-2757
Updated
2026-11-02
OSVBIT-php-2024-2757 No score

PHP mb_encode_mimeheader runs endlessly for some inputs

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.

Record
BIT-php-2024-2757
Updated
2026-11-02
OSVBIT-php-min-2024-2757 No score

PHP mb_encode_mimeheader runs endlessly for some inputs

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.

Record
BIT-php-min-2024-2757
Updated
2026-11-02
OSVopenSUSE-SU-2024:13867-1 No score

php8-8.3.6-1.1 on GA media

These are all security issues fixed in the php8-8.3.6-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:13867-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
php83
Alpine:v3.19
before 8.3.6-r0
8.3.6-r0
php83
Alpine:v3.20
before 8.3.5-r0
8.3.5-r0
php83
Alpine:v3.21
before 8.3.5-r0
8.3.5-r0
php83
Alpine:v3.22
before 8.3.5-r0
8.3.5-r0
php83
Alpine:v3.23
before 8.3.5-r0
8.3.5-r0
php83
Alpine:v3.24
before 8.3.5-r0
8.3.5-r0
php
Azure Linux:3
before 8.3.6-1
8.3.6-1
php83
Alpaquita:stream
8.3.4-r2 up to 8.3.6-r0
8.3.6-r0
libphp
Bitnami
8.3.0 up to 8.3.5
8.3.5
php
Bitnami
8.3.0 up to 8.3.5
8.3.5
php-min
Bitnami
8.3.0 up to 8.3.5
8.3.5
php8.3
Ubuntu:24.04:LTS
before 8.3.6-0maysync1, plus listed versions
8.3.0-18.3.0-1ubuntu18.3.4-18.3.4-1build1
8.3.6-0maysync1
php8
openSUSE:Tumbleweed
From an advisory covering 4 CVEs
before 8.3.6-1.1
8.3.6-1.1

History

History
RecordedChangedSources
affected, facts
affected, aliases, referencesOSV
first indexedCVE List, EUVD, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2024-2757 is a high vulnerability (CVSS 7.5) in Php, published April 12, 2024. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.92%, the 80th percentile. Fixed in php83 8.3.6-r0.

References

Show 8 moreShow less
MoveEnter Open