Skip to content
OpenAdvisories
Low · 3.7 CVE-2019-11046 EUVD-2019-2754GHSA-6c5q-qpjx-9564

Buffer underflow in bc_shift_addsub

Published Dec 23, 2019 · Updated Sep 16, 2024 · Assigned by php

Description

In PHP versions 7.2.x below 7.2.26, 7.3.x below 7.3.13 and 7.4.0, PHP bcmath extension functions on some systems, including Windows, can be tricked into reading beyond the allocated space by supplying it with string containing characters that are identified as numeric by the OS but aren't ASCII numbers. This can read to disclosure of the content of some memory locations.

Affected products

VendorProductAffectedFixed
PHP Group PHP 7.2.x – < 7.2.26, 7.3.x – < 7.3.13, 7.4.x – < 7.4.1 7.2.26

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
Debian 10 php7.3 7.3.14-1~deb10u1 DSA-4626-1
Debian 9 php7.0 7.0.33-0+deb9u7 DSA-4628-1
Debian 8 php5 5.6.40+dfsg-0+deb8u8 DLA-2050-1
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS php7.2 7.2.24-0ubuntu0.18.04.2 USN-4239-1
Ubuntu 16.04 LTS php7.0 7.0.33-0ubuntu0.16.04.9 USN-4239-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 14.04 LTS php5 5.5.9+dfsg-1ubuntu4.29+esm8 USN-4239-1
ReleasePackageFixed inAdvisory
SLES 15 SP1 php7 7.2.5-4.49.1 SUSE-SU-2022:4067-1, SUSE-SU-2020:0101-1
SLES 15 php7 7.2.5-4.49.1 SUSE-SU-2022:4067-1, SUSE-SU-2020:0101-1
SLES 12 SP5 php7 7.0.7-50.91.1 SUSE-SU-2020:0352-1
SLES 12 SP5 php72 7.2.5-1.32.1 SUSE-SU-2020:0267-1
SLES 12 SP4 php5 5.5.14-109.68.1 SUSE-SU-2020:0522-1
SLES 12 SP4 php7 7.0.7-50.91.1 SUSE-SU-2020:0352-1
SLES 12 SP4 php72 7.2.5-1.32.1 SUSE-SU-2020:0267-1
SLES 12 php5 5.5.14-109.68.1 SUSE-SU-2020:0522-1
SLES 12 php7 7.0.7-50.91.1 SUSE-SU-2020:0352-1
SLES 12 php72 7.2.5-1.32.1 SUSE-SU-2020:0267-1
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 11 SP4 php53 5.3.17-112.79.1 SUSE-SU-2020:14289-1
SLES for SAP 15 SP1 php7 7.2.34-150000.4.103.1 SUSE-SU-2022:4067-1
SLES for SAP 15 php7 7.2.34-150000.4.103.1 SUSE-SU-2022:4067-1
SLE HPC 15 SP1 php7 7.2.34-150000.4.103.1 SUSE-SU-2022:4067-1
SLE HPC 15 php7 7.2.34-150000.4.103.1 SUSE-SU-2022:4067-1
SUSE Linux Enterprise Point of Sale 11 SP3 php53 5.3.17-112.79.1 SUSE-SU-2020:14289-1
SUSE Enterprise Storage 6 php7 7.2.34-150000.4.103.1 SUSE-SU-2022:4067-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed php7 7.4.24-1.1 openSUSE-SU-2024:11167-1
openSUSE Tumbleweed php8 8.0.11-1.1 openSUSE-SU-2024:11169-1
openSUSE Leap 15.4 php7 7.2.34-150000.4.103.1 SUSE-SU-2022:4067-1
openSUSE Leap 15.1 php7 +1 7.2.5-lp151.6.19.2 openSUSE-SU-2020:0080-1

Advisories 16

References