Vulnerability database / CVE-2021-21703
CVE-2021-21703
HIGH 7.0 CVSS 3.1 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.
Published 25 Oct 2021
Last modified 17 Jun 2026 Assigned by security@php.net NVD status Modified Weakness
CWE-284 CWE-787 Sources
NVD JSON Scores
Source Scored by Version Score Vector / decision
NVD
security@php.net (Secondary)
CVSS 3.1
HIGH 7.8
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:HNVD
nvd@nist.gov (Primary)
CVSS 3.1
HIGH 7.0
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HNVD
nvd@nist.gov (Primary)
CVSS 2.0
MEDIUM 6.9
AV:L/AC:M/Au:N/C:C/I:C/A:C
Affected
Source Vendor / ecosystem Product / package Affected versions Fixed in
NVD
php
phpcpe:2.3:a:php:php:*:*:*:*:*:*:*:*
>= 7.3.0, <= 7.3.31
NVD
php
phpcpe:2.3:a:php:php:*:*:*:*:*:*:*:*
>= 7.4.0, < 7.4.25
7.4.25 NVD
php
phpcpe:2.3:a:php:php:*:*:*:*:*:*:*:*
>= 8.0.0, < 8.0.12
8.0.12 NVD
debian
debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
= 9.0
NVD
debian
debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
= 10.0
NVD
debian
debian_linuxcpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
= 11.0
NVD
fedoraproject
fedoracpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*
= 33
NVD
fedoraproject
fedoracpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
= 34
NVD
fedoraproject
fedoracpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
= 35
NVD
netapp
clustered_data_ontapcpe:2.3:a:netapp:clustered_data_ontap:-:*:*:*:*:*:*:*
(no version)
NVD
oracle
communications_diameter_signaling_routercpe:2.3:a:oracle:communications_diameter_signaling_router:*:*:*:*:*:*:*:*
>= 8.0.0.0, <= 8.5.0.2
References
History
25 Nov 2026 20:33 UTC · NVD: first stored (published 25 Oct 2021)