Advisories · PHP & Laravel
CVE-2023-0662
High
CVSS 7.5
PHP multipart denial of service
Disclosed 2023 · Last reviewed 2 Dec 2026
A multipart body with a huge number of parts could make PHP spend memory far beyond the configured post size.
What happened
The parser stored each part before applying the limit the administrator expected.
Affected and patched versions
- Affected
- PHP 8.0 before 8.0.28, 8.1 before 8.1.16, and 8.2 before 8.2.3.
- Patched
- Those releases and later.
How to check your server
Check
php -v
How to fix and harden
- Upgrade PHP.
- Set post_max_size to the real upload limit for the site.
Fix
php -v
Sources
Version ranges and fixes follow the vendor advisory. When a distribution backports a fix, trust its security tracker over the upstream version number. New advisories: RSS · JSON