Description
The zend_string_extend function in Zend/zend_string.h in PHP through 7.1.5 does not prevent changes to string objects that result in a negative length, which allows remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact by leveraging a script's use of .= with a long string.
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.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | php7.4 | 7.4.3-4ubuntu2.10 | USN-5300-2 |
| Ubuntu 18.04 LTS | php7.2 | 7.2.24-0ubuntu0.18.04.11 | USN-5300-2 |
Show 1 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+esm3 | USN-5300-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-2023:2903 |
| RHEL 8 | libzip +2 | 1.6.1-1.module+el8.3.0+6678+b09f589e | RHSA-2023:2903 |
| RHEL 8 | php +25 | 7.4.33-1.module+el8.8.0+17865+ef7eddfa | RHSA-2023:2903 |
| RHEL 8 | php-pear | 1:1.10.13-1.module+el8.7.0+15127+a450a8db | RHSA-2023:2903 |
| RHEL 8 | php-pecl-rrd | 2.0.1-1.module+el8.3.0+6678+b09f589e | RHSA-2023:2903 |
| RHEL 8 | php-pecl-xdebug | 2.9.5-1.module+el8.3.0+6678+b09f589e | RHSA-2023:2903 |
| RHEL 8 | php-pecl-zip | 1.18.2-1.module+el8.3.0+6678+b09f589e | RHSA-2023:2903 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 8 | apcu-panel +2 | 5.1.18-1.module_el8.6.0+2750+78feabcb | ALSA-2023:2903 |
| AlmaLinux 8 | libzip +2 | 1.6.1-1.module_el8.6.0+2750+78feabcb | ALSA-2023:2903 |
| AlmaLinux 8 | php +25 | 7.4.33-1.module_el8.8.0+3477+f828cbb0 | ALSA-2023:2903 |
| AlmaLinux 8 | php-pear | 1:1.10.13-1.module_el8.6.0+3268+b150a051 | ALSA-2023:2903 |
| AlmaLinux 8 | php-pecl-rrd | 2.0.1-1.module_el8.6.0+2750+78feabcb | ALSA-2023:2903 |
| AlmaLinux 8 | php-pecl-xdebug | 2.9.5-1.module_el8.6.0+2750+78feabcb | ALSA-2023:2903 |
| AlmaLinux 8 | php-pecl-zip | 1.18.2-1.module_el8.6.0+2750+78feabcb | ALSA-2023:2903 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 8 | libzip | 1.6.1-1.module+el8.10.0+1604+6558efc7 | RLSA-2023:2903 |
| Rocky Linux 8 | php | 7.4.33-1.module+el8.10.0+1604+6558efc7 | RLSA-2023:2903 |
| Rocky Linux 8 | php-pear | 1:1.10.13-1.module+el8.10.0+1604+6558efc7 | RLSA-2023:2903 |
| Rocky Linux 8 | php-pecl-apcu | 5.1.18-1.module+el8.10.0+1604+6558efc7 | RLSA-2023:2903 |
| Rocky Linux 8 | php-pecl-rrd | 2.0.1-1.module+el8.4.0+414+2e7afcdd | RLSA-2023:2903 |
| Rocky Linux 8 | php-pecl-xdebug | 2.9.5-1.module+el8.10.0+1604+6558efc7 | RLSA-2023:2903 |
| Rocky Linux 8 | php-pecl-zip | 1.18.2-1.module+el8.10.0+1604+6558efc7 | RLSA-2023:2903 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP3 | php7 | 7.4.6-3.32.1 | SUSE-SU-2022:4069-1, SUSE-SU-2022:0699-1 |
| SLES 15 SP2 | php7 | 7.4.33-150200.3.46.2 | SUSE-SU-2022:4069-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 |
| SLES 12 SP5 | php72 | 7.2.5-1.75.1 | SUSE-SU-2022:0577-1 |
| SLES 12 SP5 | php74 | 7.4.6-1.33.1 | SUSE-SU-2022:4068-1, SUSE-SU-2022:0530-1 |
Show 12 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 | php72 | 7.2.5-1.75.1 | SUSE-SU-2022:0577-1 |
| SLES 12 | php74 | 7.4.6-1.33.1 | SUSE-SU-2022:4068-1, SUSE-SU-2022:0530-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 Leap 15.4 | php7 | 7.2.34-150000.4.103.1 | SUSE-SU-2022:4069-1, SUSE-SU-2022:4067-1 |
| openSUSE Leap 15.3 | php7 +1 | 7.4.6-3.32.1 | openSUSE-SU-2022:0699-1, SUSE-SU-2022:4069-1 |
Advisories 17
- ALSA-2023:2903 Moderate: php:7.4 security update AlmaLinux Security Advisories · Nov 5, 2026
- RHSA-2023:2903 Red Hat Security Advisory: php:7.4 security update Red Hat Security Advisories (RHSA) · Jun 27, 2026
- USN-5300-1 php7.0 vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- USN-5300-2 php7.2, php7.4 vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- SUSE-SU-2022:4067-1 Security update for php7 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2022:0699-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-2022:0699-1 Security update for php7 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:0577-1 Security update for php72 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:0530-1 Security update for php74 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
- RLSA-2023:2903 Moderate: php:7.4 security update Rocky Linux Security Advisories · Dec 27, 2025
- SSA-455250 SSA-455250: Multiple Vulnerabilities in Palo Alto Networks Virtual NGFW on RUGGEDCOM APE1808 Devices Before V11.1.2-h3 Siemens ProductCERT · May 13, 2025
- ICSA-24-102-04 Siemens RUGGEDCOM APE1808 CISA ICS & IT advisories · May 13, 2025
- WID-SEC-2024-3760 NetApp Data ONTAP: Schwachstelle ermöglicht Denial of Service BSI CERT-Bund (WID) · Dec 29, 2024
- VDE-2023-009 ads-tec: Multiple Vulnerabilities in IRF1000, IRF2000 and IRF3000 CERT@VDE · May 8, 2023
References
- 98518 vdb-entry
- https://bugs.php.net/bug.php?id=74577