SecurityContext

CVE-2021-21703: PHP FPM - Privilege Escalation

  • Cve: CVE-2021-21703
  • Name: PHP FPM - Privilege Escalation
  • 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.
  • Impact: Local attackers can escalate privileges to root by exploiting shared memory access in PHP FPM processes.
  • Remediation: Update PHP to version 7.3.32, 7.4.25, 8.0.12 or later versions.
  • Vulnerability type: broken_access_control
  • Vulnerability impact: privilege_escalation
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7
  • Cvss vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.01426
  • Epss percentile: 0.73512
  • Assignee: [email protected]
  • Published at: 2021-10-25T06:15:06Z
  • Age in days: 1856
  • Modified at: 2026-06-17T03:36:01Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 12
  • Products total: 5
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-21703
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-284Improper Access Control
CWE-787Out-of-bounds Write

Public exploits

UrlSourceAdded date
https://bugs.php.net/bug.php?id=81026nvd2021-10-25

References

Same in every row:

  • Source: nvd
UrlTags
https://bugs.php.net/bug.php?id=81026Exploit, Issue Tracking, Patch, Vendor Advisory
https://www.oracle.com/security-alerts/cpuapr2022.htmlPatch, Vendor Advisory
https://www.oracle.com/security-alerts/cpujan2022.htmlPatch, Vendor Advisory
http://www.openwall.com/lists/oss-security/2021/10/26/7Mailing List, Patch, Third Party Advisory
https://lists.debian.org/debian-lts-announce/2021/10/msg00021.htmlMailing List, Third Party Advisory
https://security.gentoo.org/glsa/202209-20Third Party Advisory
https://security.netapp.com/advisory/ntap-20211118-0003/Third Party Advisory
https://www.debian.org/security/2021/dsa-4992Third Party Advisory
https://www.debian.org/security/2021/dsa-4993Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6PZVLICZUJMXOGWOUWSBAEGIVTF6Y6V3/

Products

Same in every row:

  • Platform bound: no
  • Sources: nvd
ProductAffectedUrl
php:php>= 8.0.0, < 8.0.12; >= 7.4.0, < 7.4.25; >= 7.3.0, <= 7.3.31/v1/products/php/php
debian:debian_linux= 11.0, = 10.0, = 9.0/v1/products/debian/debian_linux
fedoraproject:fedora= 35, = 34, = 33/v1/products/fedoraproject/fedora
netapp:clustered_data_ontapall versions/v1/products/netapp/clustered_data_ontap
oracle:communications_diameter_signaling_router>= 8.0.0.0, <= 8.5.0.2/v1/products/oracle/communications_diameter_signaling_router

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2021-10-25
  • Authentication required: yes
  • Exposed hosts: 6200906
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports