CVE-2021-21703CWE-284CWE-787

PHP-FPM memory access in root process leading to privilege escalation

High · published October 25, 2021

CVSS v3.1
7.8
EPSS
1%
Percentile
72.7
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01426 · 72.7th percentile
Weaknesses
CWE-284 · Improper Access Control; CWE-787 · Out-of-bounds Write
Published
2021-10-25T05:40Z
EPSS history
Timeline
  • 25 OCT 05:40Z
    PHP-FPM memory access in root process leading to privilege escalation
    cvelistv5