Am I affected?
CVE-2021-21703
In PHP versions 7.3.x up to and including 7.3.31, 7.4.x below 7.4.25 and 8.0.x below 8.0.12, when running PHP FPM SAPI with main FPM daemon process running as root and child worker processes running as lower-privileged users, it is possible for the child processes to access memory shared with the main process and write to it, modifying it in a way that would cause the root process to conduct invalid memory reads and writes, which can be used to escalate privileges from local unprivileged user to the root user.
Not in the CISA KEV catalog as of the last sync. That means no confirmed exploitation is listed there, not that it is safe.
Exploit probability (FIRST EPSS): 1.43% chance of exploitation activity in the next 30 days (top 27% of all scored CVEs), scored 2026-11-23. EPSS is a likelihood estimate, not proof of attacks.
Check your PHP version
Fixed versions by branch
| Branch | Affected (php.net) | Fixed in |
|---|---|---|
| PHP 8.0 | PHP 8.0 only, 8.0.0 (including) to 8.0.12 (excluding) | 8.0.12 |
| PHP 7.4 | PHP 7.4 only, 7.4.0 (including) to 7.4.25 (excluding) | 7.4.25 |
| PHP 7.3 | PHP 7.3 only, 7.3.0 (including) to 7.3.31 (including) | not stated |
"Fixed in" is shown only when the source gives an exact upper bound. Any later patch in the same branch also has the fix. Linux distributions (Ubuntu, Debian, RHEL) often backport fixes without changing the PHP version number.
Related CVEs
Other PHP CVEs that NVD lists for the same branches.
- CVE-2021-21702 High 7.5 · PHP 8.0, 7.4, 7.3 · 2021-02-15
- CVE-2021-21706 Medium 6.5 · PHP 8.0, 7.4, 7.3 · 2021-10-04
- CVE-2021-21704 Medium 5.9 · PHP 8.0, 7.4, 7.3 · 2021-10-04
- CVE-2021-21707 Medium 5.3 · PHP 8.0, 7.4, 7.3 · 2021-11-29
- CVE-2021-21705 Medium 5.3 · PHP 8.0, 7.4, 7.3 · 2021-10-04
- CVE-2020-7071 Medium 5.3 · PHP 8.0, 7.4, 7.3 · 2021-02-15
Questions
- Which PHP versions are affected by CVE-2021-21703?
- php.net lists these affected ranges: PHP 8.0 only, 8.0.0 (including) to 8.0.12 (excluding); PHP 7.4 only, 7.4.0 (including) to 7.4.25 (excluding); PHP 7.3 only, 7.3.0 (including) to 7.3.31 (including).
- Which PHP version fixes CVE-2021-21703?
- According to php.net, the fix is in PHP 8.0.12, 7.4.25 (upgrade to that release or any later patch in the same branch).
- Does a version check prove my server is safe from CVE-2021-21703?
- No. The SAPI, web server, operating system, loaded extensions and configuration change whether a bug can be reached, and Linux distributions often backport fixes without changing the upstream version number.
Sources: CVE-2021-21703 on NIST NVD and the php.net ChangeLog. NVD data synced 2026-11-24T03:47:46.548Z. See all PHP CVEs in the CVE explorer.