CVE-2024-2757
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.
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
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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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
| Package | Affected | Fixed |
|---|---|---|
php83Alpine:v3.19 |
before 8.3.6-r0 | 8.3.6-r0 |
php83Alpine:v3.20 |
before 8.3.5-r0 | 8.3.5-r0 |
php83Alpine:v3.21 |
before 8.3.5-r0 | 8.3.5-r0 |
php83Alpine:v3.22 |
before 8.3.5-r0 | 8.3.5-r0 |
php83Alpine:v3.23 |
before 8.3.5-r0 | 8.3.5-r0 |
php83Alpine:v3.24 |
before 8.3.5-r0 | 8.3.5-r0 |
phpAzure Linux:3 |
before 8.3.6-1 | 8.3.6-1 |
php83Alpaquita:stream |
8.3.4-r2 up to 8.3.6-r0 | 8.3.6-r0 |
libphpBitnami |
8.3.0 up to 8.3.5 | 8.3.5 |
phpBitnami |
8.3.0 up to 8.3.5 | 8.3.5 |
php-minBitnami |
8.3.0 up to 8.3.5 | 8.3.5 |
php8.3Ubuntu: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 |
php8openSUSE:Tumbleweed From an advisory covering 4 CVEs |
before 8.3.6-1.1 | 8.3.6-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| affected, aliases, references | OSV | |
| first indexed | CVE 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
github.com/php/php-src/security/advisories/GHSA-fjp9-9hwx-59fq
openwall.com/lists/oss-security/2024/04/12/11
security.netapp.com/advisory/ntap-20240510-0011
lists.fedoraproject.org/archives/list/[email protected]/message/KJZK3X6B7FBE32FETDSMRLJXTFTHKWSY
security.alpinelinux.org/vuln/CVE-2024-2757
nvd.nist.gov/vuln/detail/CVE-2024-2757
Show 8 moreShow less
docs.bell-sw.com/security/cves/CVE-2024-2757
github.com/CVEProject/cvelistV5/tree/main/cves/2024/2xxx/CVE-2024-2757.json
ubuntu.com/security/CVE-2024-2757
cve.org/CVERecord?id=CVE-2024-2757
suse.com/security/cve/CVE-2022-31629
suse.com/security/cve/CVE-2024-1874
suse.com/security/cve/CVE-2024-2757
suse.com/security/cve/CVE-2024-3096