🛡️ CVE-2021-21703 — libphp
Description
PHP-FPM memory access in root process leading to privilege escalation
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.
Affected software
CVE-2021-21703 is recorded against 3 packages.
- libphp
- php
- php-min
Timeline and source
Published on 11 August 2025. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
www.openwall.com (Web)
bugs.php.net (Web)
lists.debian.org (Web)
lists.fedoraproject.org (Web)
lists.fedoraproject.org (Web)
lists.fedoraproject.org (Web)
nvd.nist.gov (Web)
security.gentoo.org (Web)
security.netapp.com (Web)
www.debian.org (Web)
www.debian.org (Web)
www.oracle.com (Web)
www.oracle.com (Web)
CVE-2021-21703 on other distributions
Each distribution ships its own build and its own fixed version. Pick the one you run:
Details
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| libphp | — | — |
| php | — | — |
| php-min | — | — |
References
Similar Threats
- Critical CVE-2020-7059
- Critical CVE-2020-7060
- Critical CVE-2020-7061
- High CVE-2020-7062
- Medium CVE-2020-7063
More CVE 2021 advisories
Browse all of CVE 2021 in the advisory index.
Site Security Check
Is libphp part of your stack?
CVE-2021-21703 is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.