Vulnerability · Published Apr 29, 2024 · Assigned by php

CVE-2024-2757PHP mb_encode_mimeheader runs endlessly for some inputs

High 7.5

In plain English

A high-severity uncontrolled resource consumption in PHP from PHP Group. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.9% (higher than 80% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.9%top 20.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20php838.3.5-r0ALPINE-CVE-2024-2757
Alpine:v3.21php838.3.5-r0ALPINE-CVE-2024-2757
Alpine:v3.22php838.3.5-r0ALPINE-CVE-2024-2757
Alpine:v3.23php838.3.5-r0ALPINE-CVE-2024-2757
Alpine:v3.24php838.3.5-r0ALPINE-CVE-2024-2757
Ubuntu:24.04:LTSphp8.38.3.6-0maysync1UBUNTU-CVE-2024-2757

Affected products (as reported)

VendorProductVersions
PHP Group PHP 8.3.* – before 8.3.5

Weakness: CWE-400 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References