Original description
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
- PHP ≥ 7.3.0 ≤ 7.3.31≥ 8.0.0 < 8.0.12≥ 7.4.0 < 7.4.25 Fixed in: 8.0.12, 7.4.25 exact match
Details
- Published
- 2021-10-25
- Last modified
- 2024-09-17
- CVSS vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H- CWE
- CWE-787, CWE-284
- EPSS (30-day exploit probability)
- 1.43% (percentile 73)
References
- cve.org/CVE-2021-21703
- nvd.nist.gov/vuln/detail/CVE-2021-21703
- bugs.php.net/bug.php?id=81026
- www.debian.org/security/2021/dsa-4992
- www.debian.org/security/2021/dsa-4993
- www.openwall.com/lists/oss-security/2021/10/26/7
- lists.debian.org/debian-lts-announce/2021/10/msg00021.html
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/J...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/P...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6...
- www.oracle.com/security-alerts/cpujan2022.html
- security.netapp.com/advisory/ntap-20211118-0003/
- www.oracle.com/security-alerts/cpuapr2022.html
- security.gentoo.org/glsa/202209-20
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.