# CVE-2021-21703: PHP-FPM memory access in root process leading to privilege escalation

- Severity: High 7.8 (CVSS:3.1, scored by php) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.43%, higher than 73% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-10-25T05:40:08.576Z
- Modified: 2026-09-08T08:48:24.845Z
- Also known as: BIT-LIBPHP-2021-21703, BIT-PHP-2021-21703, BIT-PHP-MIN-2021-21703
- Weaknesses: CWE-284, CWE-787
- Assigned by: php

## 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.

(As written by CVE List.)

## Affected

- PHP Group PHP: from 7.3.x up to 7.3.31; from 7.4.x before 7.4.25; from 8.0.X before 8.0.12
- php php: from 7.3.0 up to 7.3.31; from 7.4.0 before 7.4.25; from 8.0.0 before 8.0.12
- debian debian_linux: 9.0; 10.0; 11.0
- fedoraproject fedora: 33; 34; 35
- netapp clustered_data_ontap: no versions given
- oracle communications_diameter_signaling_router: from 8.0.0.0 up to 8.5.0.2
- libphp (Bitnami): from 7.3.0 before 7.3.32; from 7.4.0 before 7.4.25; from 8.0.0 before 8.0.12
- php (Bitnami): from 7.3.0 before 7.3.32; from 7.4.0 before 7.4.25; from 8.0.0 before 8.0.12
- php-min (Bitnami): from 7.3.0 before 7.3.32; from 7.4.0 before 7.4.25; from 8.0.0 before 8.0.12

## Every score

- php: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.0 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.9 Medium `AV:L/AC:M/Au:N/C:C/I:C/A:C`
- Bitnami Vulnerability Database: rating High

## References

- <https://bugs.php.net/bug.php?id=81026> (exploit, advisory, issue-tracking, patch, vendor-advisory)
- <https://www.debian.org/security/2021/dsa-4992> (advisory, third-party-advisory, vendor-advisory)
- <https://www.debian.org/security/2021/dsa-4993> (advisory, third-party-advisory, vendor-advisory)
- <http://www.openwall.com/lists/oss-security/2021/10/26/7> (advisory, mailing-list, patch, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2021/10/msg00021.html> (advisory, mailing-list, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JO5RA6YOBGGGKLIA6F6BQRZDDECF5L3R/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PBM3KKB3RY2YPOKNMC4HIH7IH3T3WC74/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6PZVLICZUJMXOGWOUWSBAEGIVTF6Y6V3/> (vendor-advisory, web)
- <https://www.oracle.com/security-alerts/cpujan2022.html> (advisory, patch, vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20211118-0003/> (advisory, third-party-advisory)
- <https://www.oracle.com/security-alerts/cpuapr2022.html> (advisory, patch, vendor-advisory)
- <https://security.gentoo.org/glsa/202209-20> (advisory, third-party-advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-21703> (web)

## Sources

- CVE List: [CVE-2021-21703](https://www.cve.org/CVERecord?id=CVE-2021-21703), CVE Terms of Use, modified 2024-09-17
- NVD: [CVE-2021-21703](https://nvd.nist.gov/vuln/detail/CVE-2021-21703), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-LIBPHP-2021-21703](https://osv.dev/vulnerability/BIT-LIBPHP-2021-21703), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PHP-2021-21703](https://osv.dev/vulnerability/BIT-PHP-2021-21703), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PHP-MIN-2021-21703](https://osv.dev/vulnerability/BIT-PHP-MIN-2021-21703), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-21703 · Whole record: https://cve.day/CVE-2021-21703.json · Rebuilt by cve.day 2026-11-25T22:58:04.740Z
