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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| PHP Group | PHP | 7.3.x – ≤ 7.3.31, 7.4.x – < 7.4.25, 8.0.X – < 8.0.12 | 7.4.25 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 11 | php7.4 | 7.4.25-1+deb11u1 | DSA-4992-1 |
| Debian 10 | php7.3 | 7.3.31-1~deb10u1 | DSA-4993-1 |
| Debian 9 | php7.0 | 7.0.33-0+deb9u12 | DLA-2794-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | php7.4 | 7.4.3-4ubuntu2.7 | USN-5125-1 |
| Ubuntu 18.04 LTS | php7.2 | 7.2.24-0ubuntu0.18.04.10 | USN-5125-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | php7.0 | 7.0.33-0ubuntu0.16.04.16+esm2 | USN-5125-1 |
| Ubuntu Pro 14.04 LTS | php5 | 5.5.9+dfsg-1ubuntu4.29+esm15 | USN-5125-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8 | apcu-panel +2 | 5.1.18-1.module+el8.3.0+6678+b09f589e | RHSA-2022:1935 |
| RHEL 8 | libzip +2 | 1.6.1-1.module+el8.3.0+6678+b09f589e | RHSA-2022:1935 |
| RHEL 8 | php +25 | 7.4.19-2.module+el8.6.0+13953+0a59ce9f | RHSA-2022:1935 |
| RHEL 8 | php-pear | 1:1.10.12-1.module+el8.3.0+6678+b09f589e | RHSA-2022:1935 |
| RHEL 8 | php-pecl-rrd | 2.0.1-1.module+el8.3.0+6678+b09f589e | RHSA-2022:1935 |
| RHEL 8 | php-pecl-xdebug | 2.9.5-1.module+el8.3.0+6678+b09f589e | RHSA-2022:1935 |
| RHEL 8 | php-pecl-zip | 1.18.2-1.module+el8.3.0+6678+b09f589e | RHSA-2022:1935 |
| RHEL 3 | rh-php73-php +27 | 7.3.33-1.el7 | RHSA-2022:5491 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 8 | apcu-panel +2 | 5.1.18-1.module_el8.6.0+2750+78feabcb | ALSA-2022:1935 |
| AlmaLinux 8 | libzip +2 | 1.6.1-1.module_el8.6.0+2750+78feabcb | ALSA-2022:1935 |
| AlmaLinux 8 | php +25 | 7.4.19-2.module_el8.6.0+2750+78feabcb | ALSA-2022:1935 |
| AlmaLinux 8 | php-pear | 1:1.10.12-1.module_el8.6.0+2750+78feabcb | ALSA-2022:1935 |
| AlmaLinux 8 | php-pecl-rrd | 2.0.1-1.module_el8.6.0+2750+78feabcb | ALSA-2022:1935 |
| AlmaLinux 8 | php-pecl-xdebug | 2.9.5-1.module_el8.6.0+2750+78feabcb | ALSA-2022:1935 |
| AlmaLinux 8 | php-pecl-zip | 1.18.2-1.module_el8.6.0+2750+78feabcb | ALSA-2022:1935 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 8 | libzip | 1.6.1-1.module+el8.4.0+415+e936cba3 | RLSA-2022:1935 |
| Rocky Linux 8 | php | 7.4.19-2.module+el8.6.0+789+2130c178 | RLSA-2022:1935 |
| Rocky Linux 8 | php-pear | 1:1.10.12-1.module+el8.4.0+415+e936cba3 | RLSA-2022:1935 |
| Rocky Linux 8 | php-pecl-apcu | 5.1.18-1.module+el8.4.0+415+e936cba3 | RLSA-2022:1935 |
| Rocky Linux 8 | php-pecl-rrd | 2.0.1-1.module+el8.4.0+414+2e7afcdd | RLSA-2022:1935 |
| Rocky Linux 8 | php-pecl-xdebug | 2.9.5-1.module+el8.4.0+415+e936cba3 | RLSA-2022:1935 |
| Rocky Linux 8 | php-pecl-zip | 1.18.2-1.module+el8.4.0+415+e936cba3 | RLSA-2022:1935 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP4 | php8 +5 | 8.0.24-150400.4.14.1 | SUSE-SU-2022:3661-1 |
| SLES 15 SP3 | php7 | 7.4.6-3.29.1 | SUSE-SU-2022:4069-1, SUSE-SU-2021:3943-1 |
| SLES 15 SP2 | php7 | 7.4.6-3.29.1 | SUSE-SU-2022:4069-1, SUSE-SU-2021:3943-1 |
| SLES 15 SP1 | php7 | 7.2.5-4.89.4 | SUSE-SU-2022:4067-1, SUSE-SU-2022:0679-1 |
| SLES 15 | php7 | 7.2.5-4.89.4 | SUSE-SU-2022:4067-1, SUSE-SU-2022:0679-1 |
Show 13 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP5 | php72 | 7.2.5-1.72.1 | SUSE-SU-2021:3727-1 |
| SLES 12 SP5 | php74 | 7.4.6-1.27.1 | SUSE-SU-2022:4068-1, SUSE-SU-2021:3726-1 |
| SLES 12 | php72 | 7.2.5-1.72.1 | SUSE-SU-2021:3727-1 |
| SLES 12 | php74 | 7.4.6-1.27.1 | SUSE-SU-2022:4068-1, SUSE-SU-2021:3726-1 |
| SLES for SAP 15 SP2 | php7 | 7.4.33-150200.3.46.2 | SUSE-SU-2022:4069-1 |
| SLES for SAP 15 SP1 | php7 | 7.2.5-4.89.4 | SUSE-SU-2022:4067-1, SUSE-SU-2022:0679-1 |
| SLES for SAP 15 | php7 | 7.2.5-4.89.4 | SUSE-SU-2022:4067-1, SUSE-SU-2022:0679-1 |
| SLE HPC 15 SP2 | php7 | 7.4.33-150200.3.46.2 | SUSE-SU-2022:4069-1 |
| SLE HPC 15 SP1 | php7 | 7.2.5-4.89.4 | SUSE-SU-2022:4067-1, SUSE-SU-2022:0679-1 |
| SLE HPC 15 | php7 | 7.2.5-4.89.4 | SUSE-SU-2022:4067-1, SUSE-SU-2022:0679-1 |
| SUSE Manager Server 4.1 | php7 | 7.4.33-150200.3.46.2 | SUSE-SU-2022:4069-1 |
| SUSE Manager Retail Branch Server 4.1 | php7 | 7.4.33-150200.3.46.2 | SUSE-SU-2022:4069-1 |
| SUSE Manager Proxy 4.1 | php7 | 7.4.33-150200.3.46.2 | SUSE-SU-2022:4069-1 |
| SUSE Enterprise Storage 7 | php7 | 7.4.33-150200.3.46.2 | SUSE-SU-2022:4069-1 |
| SUSE Enterprise Storage 6 | php7 | 7.2.5-4.89.4 | SUSE-SU-2022:4067-1, SUSE-SU-2022:0679-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | php7 | 7.4.25-1.1 | openSUSE-SU-2024:11594-1 |
| openSUSE Tumbleweed | php8 | 8.0.12-1.1 | openSUSE-SU-2024:11585-1 |
| openSUSE Leap 15.4 | php7 | 7.2.34-150000.4.103.1 | SUSE-SU-2022:4069-1, SUSE-SU-2022:4067-1 |
| openSUSE Leap 15.4 | php8 +5 | 8.0.24-150400.4.14.1 | SUSE-SU-2022:3661-1 |
| openSUSE Leap 15.3 | php7 +1 | 7.4.6-3.29.1 | openSUSE-SU-2021:3943-1, SUSE-SU-2022:4069-1 |
| openSUSE Leap 15.2 | php7 +1 | 7.4.6-lp152.2.21.1 | openSUSE-SU-2021:1570-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | php81 | 8.1.0_rc5-r0 | — |
| Alpine v3.18 | php81 | 8.1.0_rc5-r0 | — |
| Alpine v3.17 | php81 | 8.1.0_rc5-r0 | — |
| Alpine v3.16 | php8 | 8.0.12-r0 | — |
| Alpine v3.16 | php81 | 8.1.0_rc5-r0 | — |
| Alpine v3.15 | php7 | 7.4.25-r0 | — |
| Alpine v3.15 | php8 | 8.0.12-r0 | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.14 | php7 | 7.4.25-r0 | — |
| Alpine v3.14 | php8 | 8.0.12-r0 | — |
| Alpine v3.13 | php7 | 7.4.25-r0 | — |
| Alpine v3.13 | php8 | 8.0.12-r0 | — |
| Alpine v3.12 | php7 | 7.3.32-r0 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 8 | apcu-panel +2 | 5.1.18-1.module+el8.3.0+7685+72d70b58 | ELSA-2022-1935 |
| Oracle Linux 8 | libzip +2 | 1.6.1-1.module+el8.3.0+7685+72d70b58 | ELSA-2022-1935 |
| Oracle Linux 8 | php +25 | 7.4.19-2.module+el8.6.0+20552+0a59ce9f | ELSA-2022-1935 |
| Oracle Linux 8 | php-pear | 1:1.10.12-1.module+el8.3.0+7685+72d70b58 | ELSA-2022-1935 |
| Oracle Linux 8 | php-pecl-rrd | 2.0.1-1.module+el8.3.0+7685+72d70b58 | ELSA-2022-1935 |
| Oracle Linux 8 | php-pecl-xdebug | 2.9.5-1.module+el8.3.0+7685+72d70b58 | ELSA-2022-1935 |
| Oracle Linux 8 | php-pecl-zip | 1.18.2-1.module+el8.3.0+7685+72d70b58 | ELSA-2022-1935 |
Advisories 26
- ALSA-2022:1935 Moderate: php:7.4 security update AlmaLinux Security Advisories · Oct 29, 2026
- USN-5125-1 php5, php7.0, php7.2, php7.4, php8.0 vulnerability Ubuntu Security Notices (USN) · Jun 29, 2026
- RHSA-2022:5491 Red Hat Security Advisory: rh-php73-php security and bug fix update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2022:1935 Red Hat Security Advisory: php:7.4 security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- DSA-4992-1 php7.4 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-4993-1 php7.3 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-2794-1 php7.0 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- RLSA-2022:1935 Moderate: php:7.4 security update Rocky Linux Security Advisories · Feb 4, 2026
- openSUSE-SU-2021:3943-1 Recommended update for php7 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:4067-1 Security update for php7 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:0679-1 Security update for php7 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:3727-1 Security update for php72 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11585-1 php8-8.0.12-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:3661-1 Security update for php8 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11594-1 php7-7.4.25-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:3943-1 Recommended update for php7 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:1570-1 Recommended update for php7 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:4068-1 Security update for php74 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:4069-1 Security update for php7 SUSE / openSUSE Security Updates · Feb 4, 2026
- FSA-202302 Festo: Several vulnerabilities in FactoryViews CERT@VDE · Feb 2, 2026
- ICSA-26-027-02 Festo Didactic SE MES PC CISA ICS & IT advisories · Jan 27, 2026
- FSA-202402 Several Vulnerabilities in MES PC (Windows 10) CERT@VDE · Dec 8, 2025
- SUSE-SU-2021:3726-1 Security update for php74 SUSE / openSUSE Security Updates · May 2, 2025
- WID-SEC-2023-1737 Juniper Patchday Juli 2023 BSI CERT-Bund (WID) · Jul 12, 2023
- WID-SEC-2022-0586 PHP: Schwachstelle ermöglicht Privilegieneskalation BSI CERT-Bund (WID) · May 23, 2023
- ELSA-2022-1935 Moderate: php:7.4 security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · May 17, 2022
References
- https://bugs.php.net/bug.php?id=81026
- DSA-4992 vendor-advisory
- DSA-4993 vendor-advisory
- [oss-security] 20211026 CVE-2021-21703: PHP-FPM 5.3.7 <= 8.0.12 Local Root mailing-list
- [debian-lts-announce] 20211027 [SECURITY] [DLA 2794-1] php7.0 security update mailing-list
- FEDORA-2021-9f68f5f752 vendor-advisory
- FEDORA-2021-4140b54de2 vendor-advisory
- FEDORA-2021-02d218c3be vendor-advisory
- https://www.oracle.com/security-alerts/cpujan2022.html
- https://security.netapp.com/advisory/ntap-20211118-0003/
- https://www.oracle.com/security-alerts/cpuapr2022.html
- GLSA-202209-20 vendor-advisory