CVE-2024-2757
PHP mb_encode_mimeheader runs endlessly for some inputs
HIGH 7.5
At a glance
- Source
- NVD
- EPSS
- EPSS 1.92 % · percentile 80 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- php
- NVD status
- Modified
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.
Weaknesses (CWE)
- CWE-400 — Uncontrolled Resource Consumption
References
- https://github.com/php/php-src/security/advisories/GHSA-fjp9-9hwx-59fq
- http://www.openwall.com/lists/oss-security/2024/04/12/11
- https://security.netapp.com/advisory/ntap-20240510-0011/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KJZK3X6B7FBE32FETDSMRLJXTFTHKWSY/
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | php |
| CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | NVD · security@php.net (Secondary) |
European references
- ENISA EUVD · EUVD-2024-27701
- GCVE · GCVE-0-2024-2757
CERT-FR advisories
- CERTFR-2024-AVI-0300 — Multiples vulnérabilités dans PHP · cert.ssi.gouv.fr
Affected configurations (NVD CPE)
cpe:2.3:a:php:php:*:*:*:*:*:*:*:*≥ 8.3.0 < 8.3.5
Affected products
| Product | Versions |
|---|---|
| PHP Group · PHP | affected 8.3.* < 8.3.5 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |