CVE-2021-21703: PHP-FPM memory access in root process leading to privilege escalation
Vulnerability summary
CVE-2021-21703 is a high (CVSS 7.8) Improper Access Control vulnerability in debian debian_linux. EPSS estimates a 1.43% chance of exploitation in the next 30 days, higher than 72.9% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (reference, Date unknown)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 10 · Related 8Timeline
- 25-10-2021PublishedVulnerability first disclosed.
- 17-09-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 5 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.0HighCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HDiffers
- NVDNIST7.0HighCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HDiffers
- OSV · AlpineEcosystem advisory · calculated7.0HighCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HDiffers
EPSS trend
Probability
1.43%
Chance of exploitation in the next 30 days
Percentile
73%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.43% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundExploit Reference (bugs.php.net)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Debian4 products
- php7.0< 7.0.33-0+deb9u12
- php7.3< 7.3.31-1~deb10u1
- php7.4< 7.4.25-1+deb11u1
- debian_linuxEOL9.0 | 10.0 | 11.0
Suse4 products
- php72&distro=SUSE Linux Enterprise Module for Web and Scripting 12< 7.2.5-1.72.1
- php72&distro=SUSE Linux Enterprise Software Development Kit 12 SP5< 7.2.5-1.72.1
- php74&distro=SUSE Linux Enterprise Module for Web and Scripting 12< 7.4.6-1.27.1
- php74&distro=SUSE Linux Enterprise Software Development Kit 12 SP5< 7.4.6-1.27.1
Ubuntu4 products
- php5< 5.5.9+dfsg-1ubuntu4.29+esm15
- php7.0< 7.0.33-0ubuntu0.16.04.16+esm2
- php7.2< 7.2.24-0ubuntu0.18.04.10
- php7.4< 7.4.3-4ubuntu2.7
Alpine3 products
- php7< 7.3.32-r0 | < 7.4.25-r0
- php8< 8.0.12-r0
- php81< 8.1.0_rc5-r0
Opensuse2 products
- php7&distro=openSUSE Tumbleweed< 7.4.25-1.1
- php8&distro=openSUSE Tumbleweed< 8.0.12-1.1
Fedoraproject1 product
- fedoraEOL33 | 34 | 35
Mageia1 product
- php< 8.0.12-1.mga8
Netapp1 product
Oracle1 product
- communications_diameter_signaling_router≥ 8.0.0.0, ≤ 8.5.0.2
Php1 product
- php≥ 7.3.0, ≤ 7.3.31 | ≥ 7.4.0, < 7.4.25 | ≥ 8.0.0, < 8.0.12
Php group1 product
- php≥ 7.3.x, ≤ 7.3.31 | ≥ 7.4.x, < 7.4.25 | ≥ 8.0.X, < 8.0.12
11 vendors · 23 products
References
27 links- www.openwall.com/lists/oss-security/2021/10/26/7Mailing ListX Refsource MLISTPatchThird Party Advisory
- lists.debian.org/debian-lts-announce/2021/10/msg00021.htmlMailing ListX Refsource MLISTThird Party Advisory