7.8high
PHP-FPM memory access in root process leading to privilege escalation
- Severity
- 7.8high CVSS:3.1 by php
- Exploit likelihood
- 1.43% (higher than 73% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- php
- Also known as
- BIT-LIBPHP-2021-21703BIT-PHP-2021-21703BIT-PHP-MIN-2021-21703
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 | CVE List |
| 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 | NVD |
| debian debian_linux | 9.0, 10.0, 11.0 | NVD |
| fedoraproject fedora | 33, 34, 35 | NVD |
| netapp clustered_data_ontap | Not specified | NVD |
| oracle communications_diameter_signaling_router | from 8.0.0.0 up to 8.5.0.2 | NVD |
| 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 | Bitnami Vulnerability Database |
| 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 | Bitnami Vulnerability Database |
| 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 | Bitnami Vulnerability Database |
All scores
| php | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H |
| NVD | 7.0high CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 6.9medium CVSS:2.0 | AV:L/AC:M/Au:N/C:C/I:C/A:C |
| Bitnami Vulnerability Database | high rating |
Classification
What each source says
CVE List
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.
NVD (es)
En PHP versiones 7.3.x hasta 7.3.31 incluyéndola, versiones 7.4.x y por debajo de 7.4.25 y versiones 8.0.x por debajo de 8.0. 12, cuando es ejecutado PHP FPM SAPI con el proceso demonio FPM principal ejecutado como root y los procesos worker hijos ejecutados como usuarios menos privilegiados, es posible que los procesos hijos accedan a la memoria compartida con el proceso principal y escriban en ella, modificándola de forma que causaría que el proceso root realizara lecturas y escrituras de memoria no válidas, que puede ser usado para escalar los privilegios del usuario local sin privilegios al usuario root
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-21703 changed 2024-09-17 | CVE Terms of Use |
| NVD | CVE-2021-21703 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-LIBPHP-2021-21703 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-PHP-2021-21703 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-PHP-MIN-2021-21703 changed 2026-09-08 | Apache-2.0 |