Advisories · PHP & Laravel
CVE-2019-11043
Critical
CVSS 9.8
Actively exploited
PHP-FPM remote code execution behind Nginx
Disclosed 2019 · Last reviewed 2 Dec 2026
A request through a vulnerable Nginx and PHP-FPM pairing could run code as the pool user.
What happened
PATH_INFO handling between Nginx and PHP-FPM let an empty path underflow a buffer.
Affected and patched versions
- Affected
- PHP 7.1.x, 7.2.x, and 7.3.x before 7.1.33, 7.2.24, and 7.3.11, in a particular Nginx plus PHP-FPM layout.
- Patched
- PHP 7.1.33, 7.2.24, 7.3.11, and later. Current 8.x releases are a different line.
How to check your server
Check
php -v
How to fix and harden
- Run php -v.
- PHP 7 pools on those versions need the distro update. PHP 8 is not this bug.
- Keep the Nginx fastcgi split so that PATH_INFO is not derived from an unchecked request.
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