CVE-2024-2757 PHP mb_encode_mimeheader runs endlessly for some inputs
HighCVSS 7.5
EPSS 1.9%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- PHPUbuntuDebianPHP (language)
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.
Upgrade path
8 packages: 8 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| alpine/php83(Alpine v3.19) | < 8.3.6-r0 | 8.3.6-r0 | Fixed |
| alpine/php83(Alpine v3.20) | < 8.3.5-r0 | 8.3.5-r0 | Fixed |
| alpine/php83(Alpine v3.21) | < 8.3.5-r0 | 8.3.5-r0 | Fixed |
| alpine/php83(Alpine v3.22) | < 8.3.5-r0 | 8.3.5-r0 | Fixed |
| alpine/php83(Alpine v3.23) | < 8.3.5-r0 | 8.3.5-r0 | Fixed |
| alpine/php83(Alpine v3.24) | < 8.3.5-r0 | 8.3.5-r0 | Fixed |
| PHP | < 8.3.5; = 8.3; >= 8.3.0, < 8.3.5 | 8.3.5 | Fixed |
| ubuntu/php8.3(Ubuntu 24.04) | < 8.3.6-0maysync1; = 8.3.0-1; = 8.3.0-1ubuntu1; = 8.3.4-1 +1 more | 8.3.6-0maysync1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| PHP | < 8.3.5 | 8.3.5 |
| PHP | = 8.3 | No fix listed |
| alpine/php83(Alpine:v3.19) | < 8.3.6-r0 | 8.3.6-r0 |
| alpine/php83(Alpine:v3.20) | < 8.3.5-r0 | 8.3.5-r0 |
| alpine/php83(Alpine:v3.21) | < 8.3.5-r0 | 8.3.5-r0 |
| alpine/php83(Alpine:v3.22) | < 8.3.5-r0 | 8.3.5-r0 |
| alpine/php83(Alpine:v3.23) | < 8.3.5-r0 | 8.3.5-r0 |
| alpine/php83(Alpine:v3.24) | < 8.3.5-r0 | 8.3.5-r0 |
| ubuntu/php8.3(Ubuntu:24.04) | < 8.3.6-0maysync1 | 8.3.6-0maysync1 |
| PHP | >= 8.3.0, < 8.3.5 | 8.3.5 |
| ubuntu/php8.3(Ubuntu:24.04) | = 8.3.0-1 | No fix listed |
| ubuntu/php8.3(Ubuntu:24.04) | = 8.3.0-1ubuntu1 | No fix listed |
| ubuntu/php8.3(Ubuntu:24.04) | = 8.3.4-1 | No fix listed |
| ubuntu/php8.3(Ubuntu:24.04) | = 8.3.4-1build1 | No fix listed |
References
- github.com exploit issue-tracking vendor-advisory
- www.openwall.com mailing-list
- security.netapp.com third-party-advisory
- lists.fedoraproject.org
- security.alpinelinux.org vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- www.cve.org issue-tracking
- Debian Security Tracker CVE-2024-2757 vendor-advisory