Skip to content
OpenAdvisories
Unscored CVE-2017-8923 EUVD-2017-17863GHSA-wrc8-jp87-rq8j

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 nega…

Published May 12, 2017 · Updated Dec 27, 2024 · Assigned by mitre

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.

ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS php7.0 7.0.33-0ubuntu0.16.04.16+esm3 USN-5300-1
ReleasePackageFixed inAdvisory
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 ↗
ReleasePackageFixed inAdvisory
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 ↗
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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

References